Documentation ¶
Overview ¶
Package v1 contains resources types for version v1 of the operators.autoscaling.openshift.io API group.
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ClusterResourceOverride
- type ClusterResourceOverrideCondition
- type ClusterResourceOverrideConditionType
- type ClusterResourceOverrideList
- type ClusterResourceOverrideResourceHash
- type ClusterResourceOverrideResources
- type ClusterResourceOverrideSpec
- type ClusterResourceOverrideStatus
- type DeploymentOverrides
- type PodResourceOverride
- type PodResourceOverrideSpec
- func (in *PodResourceOverrideSpec) DeepCopy() *PodResourceOverrideSpec
- func (in *PodResourceOverrideSpec) DeepCopyInto(out *PodResourceOverrideSpec)
- func (in *PodResourceOverrideSpec) Hash() string
- func (in *PodResourceOverrideSpec) String() string
- func (in *PodResourceOverrideSpec) Validate() error
Constants ¶
const ( InvalidParameters = "InvalidParameters" ConfigurationCheckFailed = "ConfigurationCheckFailed" CertNotAvailable = "CertNotAvailable" CannotSetReference = "CannotSetReference" CannotGenerateCert = "CannotGenerateCert" InternalError = "InternalError" AdmissionWebhookNotAvailable = "AdmissionWebhookNotAvailable" DeploymentNotReady = "DeploymentNotReady" )
const ( // GroupName GroupName = "operator.autoscaling.openshift.io" // GroupVersion is the group version used in this package. GroupVersion = "v1" )
const (
ClusterResourceOverrideKind = "ClusterResourceOverride"
)
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterResourceOverride ¶
type ClusterResourceOverride struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterResourceOverrideSpec `json:"spec,omitempty"` Status ClusterResourceOverrideStatus `json:"status,omitempty"` }
func (*ClusterResourceOverride) DeepCopy ¶
func (in *ClusterResourceOverride) DeepCopy() *ClusterResourceOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverride.
func (*ClusterResourceOverride) DeepCopyInto ¶
func (in *ClusterResourceOverride) DeepCopyInto(out *ClusterResourceOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceOverride) DeepCopyObject ¶
func (in *ClusterResourceOverride) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterResourceOverride) IsTimeToRotateCert ¶
func (in *ClusterResourceOverride) IsTimeToRotateCert() bool
type ClusterResourceOverrideCondition ¶
type ClusterResourceOverrideCondition struct { // Type is the type of ClusterResourceOverride condition. Type ClusterResourceOverrideConditionType `json:"type" description:"type of ClusterResourceOverride condition"` // Status is the status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"` // Reason is a one-word CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"` // Message is a human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"` // LastTransitionTime is the last time the condition transit from one status to another // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another" hash:"ignore"` }
func (*ClusterResourceOverrideCondition) DeepCopy ¶
func (in *ClusterResourceOverrideCondition) DeepCopy() *ClusterResourceOverrideCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideCondition.
func (*ClusterResourceOverrideCondition) DeepCopyInto ¶
func (in *ClusterResourceOverrideCondition) DeepCopyInto(out *ClusterResourceOverrideCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceOverrideConditionType ¶
type ClusterResourceOverrideConditionType string
const ( InstallReadinessFailure ClusterResourceOverrideConditionType = "InstallReadinessFailure" Available ClusterResourceOverrideConditionType = "Available" )
type ClusterResourceOverrideList ¶
type ClusterResourceOverrideList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterResourceOverride `json:"items"` }
ClusterResourceOverrideList contains a list of IngressControllers.
func (*ClusterResourceOverrideList) DeepCopy ¶
func (in *ClusterResourceOverrideList) DeepCopy() *ClusterResourceOverrideList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideList.
func (*ClusterResourceOverrideList) DeepCopyInto ¶
func (in *ClusterResourceOverrideList) DeepCopyInto(out *ClusterResourceOverrideList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceOverrideList) DeepCopyObject ¶
func (in *ClusterResourceOverrideList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceOverrideResourceHash ¶
type ClusterResourceOverrideResourceHash struct { Configuration string `json:"configuration,omitempty"` ServingCert string `json:"servingCert,omitempty"` }
func (*ClusterResourceOverrideResourceHash) DeepCopy ¶
func (in *ClusterResourceOverrideResourceHash) DeepCopy() *ClusterResourceOverrideResourceHash
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideResourceHash.
func (*ClusterResourceOverrideResourceHash) DeepCopyInto ¶
func (in *ClusterResourceOverrideResourceHash) DeepCopyInto(out *ClusterResourceOverrideResourceHash)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceOverrideResources ¶
type ClusterResourceOverrideResources struct { // ConfigurationRef points to the ConfigMap that contains the parameters for // ClusterResourceOverride admission webhook. ConfigurationRef *corev1.ObjectReference `json:"configurationRef,omitempty"` // ServiceCAConfigMapRef points to the ConfigMap that is injected with a // data item (key "service-ca.crt") containing the PEM-encoded CA signing bundle. ServiceCAConfigMapRef *corev1.ObjectReference `json:"serviceCAConfigMapRef,omitempty"` // ServiceRef points to the Service object that exposes the ClusterResourceOverride // webhook admission server to the cluster. // This service is annotated with `service.beta.openshift.io/serving-cert-secret-name` // so that service-ca operator can issue a signed serving certificate/key pair. ServiceRef *corev1.ObjectReference `json:"serviceRef,omitempty"` // ServiceCertSecretRef points to the Secret object which is created by the // service-ca operator and contains the signed serving certificate/key pair. ServiceCertSecretRef *corev1.ObjectReference `json:"serviceCertSecretRef,omitempty"` // DeploymentRef points to the Deployment object of the ClusterResourceOverride // admission webhook server. DeploymentRef *corev1.ObjectReference `json:"deploymentRef,omitempty"` // APiServiceRef points to the APIService object related to the ClusterResourceOverride // admission webhook server. APiServiceRef *corev1.ObjectReference `json:"apiServiceRef,omitempty"` // APiServiceRef points to the APIService object related to the ClusterResourceOverride // admission webhook server. MutatingWebhookConfigurationRef *corev1.ObjectReference `json:"mutatingWebhookConfigurationRef,omitempty"` }
func (*ClusterResourceOverrideResources) DeepCopy ¶
func (in *ClusterResourceOverrideResources) DeepCopy() *ClusterResourceOverrideResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideResources.
func (*ClusterResourceOverrideResources) DeepCopyInto ¶
func (in *ClusterResourceOverrideResources) DeepCopyInto(out *ClusterResourceOverrideResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceOverrideSpec ¶
type ClusterResourceOverrideSpec struct { PodResourceOverride PodResourceOverride `json:"podResourceOverride"` // +optional DeploymentOverrides DeploymentOverrides `json:"deploymentOverrides,omitempty"` }
func (*ClusterResourceOverrideSpec) DeepCopy ¶
func (in *ClusterResourceOverrideSpec) DeepCopy() *ClusterResourceOverrideSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideSpec.
func (*ClusterResourceOverrideSpec) DeepCopyInto ¶
func (in *ClusterResourceOverrideSpec) DeepCopyInto(out *ClusterResourceOverrideSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceOverrideSpec) Hash ¶
func (in *ClusterResourceOverrideSpec) Hash() string
type ClusterResourceOverrideStatus ¶
type ClusterResourceOverrideStatus struct { // Resources is a set of resources associated with the operand. Resources ClusterResourceOverrideResources `json:"resources,omitempty"` Hash ClusterResourceOverrideResourceHash `json:"hash,omitempty"` Conditions []ClusterResourceOverrideCondition `json:"conditions,omitempty" hash:"set"` Version string `json:"version,omitempty"` Image string `json:"image,omitempty"` // CertsRotateAt is the time the serving certs will be rotated at. // +optional CertsRotateAt metav1.Time `json:"certsRotateAt,omitempty"` }
func (*ClusterResourceOverrideStatus) DeepCopy ¶
func (in *ClusterResourceOverrideStatus) DeepCopy() *ClusterResourceOverrideStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideStatus.
func (*ClusterResourceOverrideStatus) DeepCopyInto ¶
func (in *ClusterResourceOverrideStatus) DeepCopyInto(out *ClusterResourceOverrideStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentOverrides ¶
type DeploymentOverrides struct { // Override the NodeSelector for the deployment's pods. This allows, for example, for the ClusterResourceOverride // to be run on non-master nodes. // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Override the Tolerations of the deployment's pods. This allows, for example, for the ClusterResourceOverride // to be run on non-master nodes with a specific taint. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // Override the number of replicas for the deployment. // +optional Replicas *int32 `json:"replicas,omitempty"` }
DeploymentOverrides defines fields that can be overridden for a given deployment.
func (*DeploymentOverrides) Hash ¶
func (in *DeploymentOverrides) Hash() string
func (*DeploymentOverrides) String ¶
func (in *DeploymentOverrides) String() string
func (*DeploymentOverrides) Validate ¶
func (in *DeploymentOverrides) Validate() error
type PodResourceOverride ¶
type PodResourceOverride struct { metav1.TypeMeta `json:",inline"` Spec PodResourceOverrideSpec `json:"spec,omitempty"` }
PodResourceOverride is the configuration for the admission controller which overrides user-provided container request/limit values.
func (*PodResourceOverride) DeepCopy ¶
func (in *PodResourceOverride) DeepCopy() *PodResourceOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceOverride.
func (*PodResourceOverride) DeepCopyInto ¶
func (in *PodResourceOverride) DeepCopyInto(out *PodResourceOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodResourceOverrideSpec ¶
type PodResourceOverrideSpec struct { // ForceSelinuxRelabel (if true) label pods with spc_t if they have a PVC ForceSelinuxRelabel bool `json:"forceSelinuxRelabel"` // LimitCPUToMemoryPercent (if > 0) overrides the CPU limit to a ratio of the memory limit; // 100% overrides CPU to 1 core per 1GiB of RAM. This is done before overriding the CPU request. LimitCPUToMemoryPercent int64 `json:"limitCPUToMemoryPercent"` // CPURequestToLimitPercent (if > 0) overrides CPU request to a percentage of CPU limit CPURequestToLimitPercent int64 `json:"cpuRequestToLimitPercent"` // MemoryRequestToLimitPercent (if > 0) overrides memory request to a percentage of memory limit MemoryRequestToLimitPercent int64 `json:"memoryRequestToLimitPercent"` }
PodResourceOverrideSpec is the configuration for the ClusterResourceOverride admission controller which overrides user-provided container request/limit values.
func (*PodResourceOverrideSpec) DeepCopy ¶
func (in *PodResourceOverrideSpec) DeepCopy() *PodResourceOverrideSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodResourceOverrideSpec.
func (*PodResourceOverrideSpec) DeepCopyInto ¶
func (in *PodResourceOverrideSpec) DeepCopyInto(out *PodResourceOverrideSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodResourceOverrideSpec) Hash ¶
func (in *PodResourceOverrideSpec) Hash() string
func (*PodResourceOverrideSpec) String ¶
func (in *PodResourceOverrideSpec) String() string
func (*PodResourceOverrideSpec) Validate ¶
func (in *PodResourceOverrideSpec) Validate() error