Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the dhcp v1alpha1 API group +kubebuilder:object:generate=true +groupName=addons.managed.openshift.io
Index ¶
- Constants
- Variables
- type Addon
- type AddonInstallOLMAllNamespaces
- type AddonInstallOLMCommon
- type AddonInstallOLMOwnNamespace
- type AddonInstallSpec
- type AddonInstallType
- type AddonList
- type AddonNamespace
- type AddonOperator
- type AddonOperatorList
- type AddonOperatorSpec
- type AddonOperatorStatus
- type AddonPhase
- type AddonSpec
- type AddonStatus
Constants ¶
const (
// Available condition indicates that all resources for the Addon are reconciled and healthy
Available = "Available"
)
const (
DefaultAddonOperatorName = "addon-operator"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "addons.managed.openshift.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Addon ¶
type Addon struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AddonSpec `json:"spec,omitempty"` // +kubebuilder:default={phase:Pending} Status AddonStatus `json:"status,omitempty"` }
Addon is the Schema for the Addons API +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Addon) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addon.
func (*Addon) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Addon) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonInstallOLMAllNamespaces ¶ added in v0.3.0
type AddonInstallOLMAllNamespaces struct {
AddonInstallOLMCommon `json:",inline"`
}
AllNamespaces specific Addon installation parameters.
func (*AddonInstallOLMAllNamespaces) DeepCopy ¶ added in v0.3.0
func (in *AddonInstallOLMAllNamespaces) DeepCopy() *AddonInstallOLMAllNamespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonInstallOLMAllNamespaces.
func (*AddonInstallOLMAllNamespaces) DeepCopyInto ¶ added in v0.3.0
func (in *AddonInstallOLMAllNamespaces) DeepCopyInto(out *AddonInstallOLMAllNamespaces)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonInstallOLMCommon ¶ added in v0.3.0
type AddonInstallOLMCommon struct { // Namespace to install the Addon into. // +kubebuilder:validation:MinLength=1 Namespace string `json:"namespace"` // Defines the CatalogSource image. // Please only use digests and no tags here! // +kubebuilder:validation:MinLength=1 CatalogSourceImage string `json:"catalogSourceImage"` // Channel for the Subscription object. // +kubebuilder:validation:MinLength=1 Channel string `json:"channel"` // Name of the package to install via OLM. // OLM will resove this package name to install the matching bundle. // +kubebuilder:validation:MinLength=1 PackageName string `json:"packageName"` }
Common Addon installation parameters.
func (*AddonInstallOLMCommon) DeepCopy ¶ added in v0.3.0
func (in *AddonInstallOLMCommon) DeepCopy() *AddonInstallOLMCommon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonInstallOLMCommon.
func (*AddonInstallOLMCommon) DeepCopyInto ¶ added in v0.3.0
func (in *AddonInstallOLMCommon) DeepCopyInto(out *AddonInstallOLMCommon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonInstallOLMOwnNamespace ¶ added in v0.3.0
type AddonInstallOLMOwnNamespace struct {
AddonInstallOLMCommon `json:",inline"`
}
OwnNamespace specific Addon installation parameters.
func (*AddonInstallOLMOwnNamespace) DeepCopy ¶ added in v0.3.0
func (in *AddonInstallOLMOwnNamespace) DeepCopy() *AddonInstallOLMOwnNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonInstallOLMOwnNamespace.
func (*AddonInstallOLMOwnNamespace) DeepCopyInto ¶ added in v0.3.0
func (in *AddonInstallOLMOwnNamespace) DeepCopyInto(out *AddonInstallOLMOwnNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonInstallSpec ¶
type AddonInstallSpec struct { // Type of installation. // +kubebuilder:validation:Enum={"OLMOwnNamespace","OLMAllNamespaces"} Type AddonInstallType `json:"type"` // OLMAllNamespaces config parameters. Present only if Type = OLMAllNamespaces. OLMAllNamespaces *AddonInstallOLMAllNamespaces `json:"olmAllNamespaces,omitempty"` // OLMOwnNamespace config parameters. Present only if Type = OLMOwnNamespace. OLMOwnNamespace *AddonInstallOLMOwnNamespace `json:"olmOwnNamespace,omitempty"` }
AddonInstallSpec defines the desired Addon installation type.
func (*AddonInstallSpec) DeepCopy ¶
func (in *AddonInstallSpec) DeepCopy() *AddonInstallSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonInstallSpec.
func (*AddonInstallSpec) DeepCopyInto ¶
func (in *AddonInstallSpec) DeepCopyInto(out *AddonInstallSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonInstallType ¶
type AddonInstallType string
const ( // All namespaces on the cluster (default) // installs the Operator in the default openshift-operators namespace to // watch and be made available to all namespaces in the cluster. // Maps directly to the OLM default install mode "all namespaces". OLMAllNamespaces AddonInstallType = "OLMAllNamespaces" // Installs the operator into a specific namespace. // The Operator will only watch and be made available for use in this single namespace. // Maps directly to the OLM install mode "specific namespace" OLMOwnNamespace AddonInstallType = "OLMOwnNamespace" )
type AddonList ¶
type AddonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Addon `json:"items"` }
AddonList contains a list of Addon +kubebuilder:object:root=true
func (*AddonList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonList.
func (*AddonList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonNamespace ¶
type AddonNamespace struct { // Name of the KubernetesNamespace. // +kubebuilder:validation:MinLength=1 Name string `json:"name"` }
func (*AddonNamespace) DeepCopy ¶
func (in *AddonNamespace) DeepCopy() *AddonNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonNamespace.
func (*AddonNamespace) DeepCopyInto ¶
func (in *AddonNamespace) DeepCopyInto(out *AddonNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonOperator ¶ added in v0.4.0
type AddonOperator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AddonOperatorSpec `json:"spec,omitempty"` // +kubebuilder:default={phase:Pending} Status AddonOperatorStatus `json:"status,omitempty"` }
AddonOperator is the Schema for the AddonOperator API +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*AddonOperator) DeepCopy ¶ added in v0.4.0
func (in *AddonOperator) DeepCopy() *AddonOperator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonOperator.
func (*AddonOperator) DeepCopyInto ¶ added in v0.4.0
func (in *AddonOperator) DeepCopyInto(out *AddonOperator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonOperator) DeepCopyObject ¶ added in v0.4.0
func (in *AddonOperator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonOperatorList ¶ added in v0.4.0
type AddonOperatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AddonOperator `json:"items"` }
AddonOperatorList contains a list of AddonOperators +kubebuilder:object:root=true
func (*AddonOperatorList) DeepCopy ¶ added in v0.4.0
func (in *AddonOperatorList) DeepCopy() *AddonOperatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonOperatorList.
func (*AddonOperatorList) DeepCopyInto ¶ added in v0.4.0
func (in *AddonOperatorList) DeepCopyInto(out *AddonOperatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonOperatorList) DeepCopyObject ¶ added in v0.4.0
func (in *AddonOperatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonOperatorSpec ¶ added in v0.4.0
type AddonOperatorSpec struct { }
AddonOperatorSpec defines the desired state of Addon operator.
func (*AddonOperatorSpec) DeepCopy ¶ added in v0.4.0
func (in *AddonOperatorSpec) DeepCopy() *AddonOperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonOperatorSpec.
func (*AddonOperatorSpec) DeepCopyInto ¶ added in v0.4.0
func (in *AddonOperatorSpec) DeepCopyInto(out *AddonOperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonOperatorStatus ¶ added in v0.4.0
type AddonOperatorStatus struct { // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions is a list of status conditions ths object is in. Conditions []metav1.Condition `json:"conditions,omitempty"` // Timestamp of the last reported status check // +optional LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime"` // DEPRECATED: This field is not part of any API contract // it will go away as soon as kubectl can print conditions! // Human readable status - please use .Conditions from code Phase AddonPhase `json:"phase,omitempty"` }
AddonOperatorStatus defines the observed state of Addon
func (*AddonOperatorStatus) DeepCopy ¶ added in v0.4.0
func (in *AddonOperatorStatus) DeepCopy() *AddonOperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonOperatorStatus.
func (*AddonOperatorStatus) DeepCopyInto ¶ added in v0.4.0
func (in *AddonOperatorStatus) DeepCopyInto(out *AddonOperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonPhase ¶
type AddonPhase string
const ( PhasePending AddonPhase = "Pending" PhaseReady AddonPhase = "Ready" PhaseTerminating AddonPhase = "Terminating" PhaseError AddonPhase = "Error" )
Well-known Addon Phases for printing a Status in kubectl, see deprecation notice in AddonStatus for details.
type AddonSpec ¶
type AddonSpec struct { // Human readable name for this addon. // +kubebuilder:validation:MinLength=1 DisplayName string `json:"displayName"` // Defines a list of Kubernetes Namespaces that belong to this Addon. // Namespaces listed here will be created prior to installation of the Addon and // will be removed from the cluster when the Addon is deleted. // Collisions with existing Namespaces are NOT allowed. Namespaces []AddonNamespace `json:"namespaces,omitempty"` // Defines how an Addon is installed. // This field is immutable. Install AddonInstallSpec `json:"install"` }
AddonSpec defines the desired state of Addon.
func (*AddonSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonSpec.
func (*AddonSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonStatus ¶
type AddonStatus struct { // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions is a list of status conditions ths object is in. Conditions []metav1.Condition `json:"conditions,omitempty"` // DEPRECATED: This field is not part of any API contract // it will go away as soon as kubectl can print conditions! // Human readable status - please use .Conditions from code Phase AddonPhase `json:"phase,omitempty"` }
AddonStatus defines the observed state of Addon
func (*AddonStatus) DeepCopy ¶
func (in *AddonStatus) DeepCopy() *AddonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonStatus.
func (*AddonStatus) DeepCopyInto ¶
func (in *AddonStatus) DeepCopyInto(out *AddonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.