Documentation ¶
Index ¶
Constants ¶
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" OperatorStatusTypeAvailable = "Available" OperatorStatusTypeMigrating = "Migrating" OperatorStatusTypeSyncSuccessful = "SyncSuccessful" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "operator.openshift.io", Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
This section is empty.
Types ¶
type ConditionStatus ¶
type ConditionStatus string
type GenerationHistory ¶
type GenerationHistory struct { // group is the group of the thing you're tracking Group string `json:"group"` // resource is the resource type of the thing you're tracking Resource string `json:"resource"` // namespace is where the thing you're tracking is Namespace string `json:"namespace"` // name is the name of the thing you're tracking Name string `json:"name"` // lastGeneration is the last generation of the workload controller involved LastGeneration int64 `json:"lastGeneration"` }
func (*GenerationHistory) DeepCopy ¶
func (in *GenerationHistory) DeepCopy() *GenerationHistory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenerationHistory.
func (*GenerationHistory) DeepCopyInto ¶
func (in *GenerationHistory) DeepCopyInto(out *GenerationHistory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoggingConfig ¶
type LoggingConfig struct { // level is passed to glog. Level int64 `json:"level"` // vmodule is passed to glog. Vmodule string `json:"vmodule"` }
func (*LoggingConfig) DeepCopy ¶
func (in *LoggingConfig) DeepCopy() *LoggingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingConfig.
func (*LoggingConfig) DeepCopyInto ¶
func (in *LoggingConfig) DeepCopyInto(out *LoggingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagementState ¶
type ManagementState string
const ( // Managed means that the operator is actively managing its resources and trying to keep the component active Managed ManagementState = "Managed" // Unmanaged means that the operator is not taking any action related to the component Unmanaged ManagementState = "Unmanaged" // Removed means that the operator is actively managing its resources and trying to remove all traces of the component Removed ManagementState = "Removed" )
type OperatorCondition ¶
type OperatorCondition struct { Type string `json:"type"` Status ConditionStatus `json:"status"` LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
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.
type OperatorSpec ¶
type OperatorSpec struct { // managementState indicates whether and how the operator should manage the component ManagementState ManagementState `json:"managementState"` // imagePullSpec is the image to use for the component. ImagePullSpec string `json:"imagePullSpec"` // version is the desired state in major.minor.micro-patch. Usually patch is ignored. Version string `json:"version"` // logging contains glog parameters for the component pods. It's always a command line arg for the moment Logging LoggingConfig `json:"logging,omitempty"` }
func (*OperatorSpec) DeepCopy ¶
func (in *OperatorSpec) DeepCopy() *OperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorSpec.
func (*OperatorSpec) DeepCopyInto ¶
func (in *OperatorSpec) DeepCopyInto(out *OperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorStatus ¶
type OperatorStatus struct { // observedGeneration is the last generation change you've dealt with ObservedGeneration int64 `json:"observedGeneration,omitempty"` // conditions is a list of conditions and their status Conditions []OperatorCondition `json:"conditions,omitempty"` // state indicates what the operator has observed to be its current operational status. State ManagementState `json:"state,omitempty"` // taskSummary is a high level summary of what the controller is currently attempting to do. It is high-level, human-readable // and not guaranteed in any way. (I needed this for debugging and realized it made a great summary). TaskSummary string `json:"taskSummary,omitempty"` // currentVersionAvailability is availability information for the current version. If it is unmanged or removed, this doesn't exist. CurrentAvailability *VersionAvailablity `json:"currentVersionAvailability,omitempty"` // targetVersionAvailability is availability information for the target version if we are migrating TargetAvailability *VersionAvailablity `json:"targetVersionAvailability,omitempty"` }
func (*OperatorStatus) DeepCopy ¶
func (in *OperatorStatus) DeepCopy() *OperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
func (*OperatorStatus) DeepCopyInto ¶
func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VersionAvailablity ¶
type VersionAvailablity struct { // version is the level this availability applies to Version string `json:"version"` // updatedReplicas indicates how many replicas are at the desired state UpdatedReplicas int32 `json:"updatedReplicas"` // readyReplicas indicates how many replicas are ready and at the desired state ReadyReplicas int32 `json:"readyReplicas"` // errors indicates what failures are associated with the operator trying to manage this version Errors []string `json:"errors"` // generations allows an operator to track what the generation of "important" resources was the last time we updated them Generations []GenerationHistory `json:"generations"` }
VersionAvailablity gives information about the synchronization and operational status of a particular version of the component
func (*VersionAvailablity) DeepCopy ¶
func (in *VersionAvailablity) DeepCopy() *VersionAvailablity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionAvailablity.
func (*VersionAvailablity) DeepCopyInto ¶
func (in *VersionAvailablity) DeepCopyInto(out *VersionAvailablity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.