Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=application.unikorn-cloud.org
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ApplicationSet
- func (in *ApplicationSet) DeepCopy() *ApplicationSet
- func (in *ApplicationSet) DeepCopyInto(out *ApplicationSet)
- func (in *ApplicationSet) DeepCopyObject() runtime.Object
- func (c *ApplicationSet) Paused() bool
- func (c *ApplicationSet) ResourceLabels() (labels.Set, error)
- func (c *ApplicationSet) StatusConditionRead(t unikornv1core.ConditionType) (*unikornv1core.Condition, error)
- func (c *ApplicationSet) StatusConditionWrite(t unikornv1core.ConditionType, status corev1.ConditionStatus, ...)
- type ApplicationSetList
- type ApplicationSetSpec
- type ApplicationSetStatus
Constants ¶
const ( // GroupName is the Kubernetes API group our resources belong to. GroupName = "application.unikorn-cloud.org" // GroupVersion is the version of our custom resources. GroupVersion = "v1alpha1" // Group is group/version of our resources. Group = GroupName + "/" + GroupVersion )
Variables ¶
var ( // ErrMissingLabel is raised when an expected label is not present on // a resource. ErrMissingLabel = errors.New("expected label is missing") // ErrApplicationLookup is raised when the named application is not // present in an application bundle bundle. ErrApplicationLookup = errors.New("failed to lookup an application") )
var ( // SchemeGroupVersion defines the GV of our resources. //nolint:gochecknoglobals SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion} // SchemeBuilder creates a mapping between GVK and type. //nolint:gochecknoglobals SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds our GVK to resource mappings to an existing scheme. //nolint:gochecknoglobals AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource maps a resource type to a group resource.
Types ¶
type ApplicationSet ¶
type ApplicationSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSetSpec `json:"spec"` Status ApplicationSetStatus `json:"status,omitempty"` }
ApplicationSet defines a Helm application. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Namespaced,categories=unikorn +kubebuilder:printcolumn:name="display name",type="string",JSONPath=".metadata.labels['unikorn-cloud\\.org/name']" +kubebuilder:printcolumn:name="age",type="date",JSONPath=".metadata.creationTimestamp"
func (*ApplicationSet) DeepCopy ¶
func (in *ApplicationSet) DeepCopy() *ApplicationSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSet.
func (*ApplicationSet) DeepCopyInto ¶
func (in *ApplicationSet) DeepCopyInto(out *ApplicationSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationSet) DeepCopyObject ¶
func (in *ApplicationSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ApplicationSet) Paused ¶
func (c *ApplicationSet) Paused() bool
Paused implements the ReconcilePauser interface.
func (*ApplicationSet) ResourceLabels ¶
func (c *ApplicationSet) ResourceLabels() (labels.Set, error)
ResourceLabels generates a set of labels to uniquely identify the resource if it were to be placed in a single global namespace.
func (*ApplicationSet) StatusConditionRead ¶
func (c *ApplicationSet) StatusConditionRead(t unikornv1core.ConditionType) (*unikornv1core.Condition, error)
StatusConditionRead scans the status conditions for an existing condition whose type matches.
func (*ApplicationSet) StatusConditionWrite ¶
func (c *ApplicationSet) StatusConditionWrite(t unikornv1core.ConditionType, status corev1.ConditionStatus, reason unikornv1core.ConditionReason, message string)
StatusConditionWrite either adds or updates a condition in the cluster manager status. If the condition, status and message match an existing condition the update is ignored.
type ApplicationSetList ¶
type ApplicationSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationSet `json:"items"` }
ApplicationSetList defines a list of Helm applications. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ApplicationSetList) DeepCopy ¶
func (in *ApplicationSetList) DeepCopy() *ApplicationSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSetList.
func (*ApplicationSetList) DeepCopyInto ¶
func (in *ApplicationSetList) DeepCopyInto(out *ApplicationSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationSetList) DeepCopyObject ¶
func (in *ApplicationSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationSetSpec ¶
type ApplicationSetSpec struct { // Pause, if true, will inhibit reconciliation. Pause bool `json:"pause,omitempty"` }
func (*ApplicationSetSpec) DeepCopy ¶
func (in *ApplicationSetSpec) DeepCopy() *ApplicationSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSetSpec.
func (*ApplicationSetSpec) DeepCopyInto ¶
func (in *ApplicationSetSpec) DeepCopyInto(out *ApplicationSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSetStatus ¶
type ApplicationSetStatus struct { // Current service state of the resource. Conditions []unikornv1core.Condition `json:"conditions,omitempty"` }
func (*ApplicationSetStatus) DeepCopy ¶
func (in *ApplicationSetStatus) DeepCopy() *ApplicationSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSetStatus.
func (*ApplicationSetStatus) DeepCopyInto ¶
func (in *ApplicationSetStatus) DeepCopyInto(out *ApplicationSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.