Documentation ¶
Overview ¶
Package v2 contains resources types for version v2 of the operators.coreos.com API group.
Package v2 contains API Schema definitions for the operator v2 API group.
Index ¶
Constants ¶
const ( // Upgradeable indicates that the operator is upgradeable Upgradeable string = "Upgradeable" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "operators.coreos.com", Version: "v2"} // SchemeGroupVersion is required for compatibility with client generation. SchemeGroupVersion = GroupVersion // 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 ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type OperatorCondition ¶
type OperatorCondition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec OperatorConditionSpec `json:"spec,omitempty"` Status OperatorConditionStatus `json:"status,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient +kubebuilder:storageversion +kubebuilder:resource:shortName=condition,categories=olm +kubebuilder:subresource:status OperatorCondition is a Custom Resource of type `OperatorCondition` which is used to convey information to OLM about the state of an operator.
func (*OperatorCondition) DeepCopy ¶
func (in *OperatorCondition) DeepCopy() *OperatorCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorCondition.
func (*OperatorCondition) DeepCopyInto ¶
func (in *OperatorCondition) DeepCopyInto(out *OperatorCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OperatorCondition) DeepCopyObject ¶
func (in *OperatorCondition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OperatorConditionList ¶
type OperatorConditionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []OperatorCondition `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object OperatorConditionList represents a list of Conditions.
func (*OperatorConditionList) DeepCopy ¶
func (in *OperatorConditionList) DeepCopy() *OperatorConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConditionList.
func (*OperatorConditionList) DeepCopyInto ¶
func (in *OperatorConditionList) DeepCopyInto(out *OperatorConditionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OperatorConditionList) DeepCopyObject ¶
func (in *OperatorConditionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OperatorConditionSpec ¶
type OperatorConditionSpec struct { ServiceAccounts []string `json:"serviceAccounts,omitempty"` Deployments []string `json:"deployments,omitempty"` Overrides []metav1.Condition `json:"overrides,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` }
OperatorConditionSpec allows an operator to report state to OLM and provides cluster admin with the ability to manually override state reported by the operator.
func (*OperatorConditionSpec) DeepCopy ¶
func (in *OperatorConditionSpec) DeepCopy() *OperatorConditionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConditionSpec.
func (*OperatorConditionSpec) DeepCopyInto ¶
func (in *OperatorConditionSpec) DeepCopyInto(out *OperatorConditionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorConditionStatus ¶
OperatorConditionStatus allows OLM to convey which conditions have been observed.
func (*OperatorConditionStatus) DeepCopy ¶
func (in *OperatorConditionStatus) DeepCopy() *OperatorConditionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConditionStatus.
func (*OperatorConditionStatus) DeepCopyInto ¶
func (in *OperatorConditionStatus) DeepCopyInto(out *OperatorConditionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.