v1

package
v0.0.0-...-930f216 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 contains resources types for version v1 of the operators.openshift.io API group.

Package v1 contains API Schema definitions for the runoncedurationoverride v1 API group +k8s:deepcopy-gen=package,register +groupName=operator.openshift.io

Index

Constants

View Source
const (
	InvalidParameters            = "InvalidParameters"
	ConfigurationCheckFailed     = "ConfigurationCheckFailed"
	CertNotAvailable             = "CertNotAvailable"
	CannotSetReference           = "CannotSetReference"
	CannotGenerateCert           = "CannotGenerateCert"
	InternalError                = "InternalError"
	AdmissionWebhookNotAvailable = "AdmissionWebhookNotAvailable"
	DeploymentNotReady           = "DeploymentNotReady"
)
View Source
const (
	// GroupName
	GroupName = "operator.openshift.io"
	// GroupVersion is the group version used in this package.
	GroupVersion = "v1"
)
View Source
const (
	RunOnceDurationOverrideKind = "RunOnceDurationOverride"
)

Variables

View Source
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
)
View Source
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 RunOnceDurationOverride

type RunOnceDurationOverride struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// spec holds user settable values for configuration
	// +required
	Spec RunOnceDurationOverrideSpec `json:"spec,omitempty"`
	// status holds observed values from the cluster. They may not be overridden.
	// +optional
	Status RunOnceDurationOverrideStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:shortName=rodoo,scope=Cluster

func (*RunOnceDurationOverride) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverride.

func (*RunOnceDurationOverride) DeepCopyInto

func (in *RunOnceDurationOverride) DeepCopyInto(out *RunOnceDurationOverride)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunOnceDurationOverride) DeepCopyObject

func (in *RunOnceDurationOverride) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RunOnceDurationOverride) IsTimeToRotateCert

func (in *RunOnceDurationOverride) IsTimeToRotateCert() bool

type RunOnceDurationOverrideCondition

type RunOnceDurationOverrideCondition struct {
	// Type is the type of RunOnceDurationOverride condition.
	Type RunOnceDurationOverrideConditionType `json:"type" description:"type of RunOnceDurationOverride 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 (*RunOnceDurationOverrideCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideCondition.

func (*RunOnceDurationOverrideCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunOnceDurationOverrideConditionType

type RunOnceDurationOverrideConditionType string
const (
	InstallReadinessFailure RunOnceDurationOverrideConditionType = "InstallReadinessFailure"
	Available               RunOnceDurationOverrideConditionType = "Available"
)

type RunOnceDurationOverrideConfig

type RunOnceDurationOverrideConfig struct {
	metav1.TypeMeta `json:",inline"`
	Spec            RunOnceDurationOverrideConfigSpec `json:"spec,omitempty"`
}

RunOnceDurationOverrideConfig is the configuration for the admission controller which overrides activeDeadlineSeconds for pods with restartPolicy set to Never or OnFailure. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type RunOnceDurationOverrideConfigSpec

type RunOnceDurationOverrideConfigSpec struct {
	// ActiveDeadlineSeconds (if > 0) overrides activeDeadlineSeconds field of pod;
	// if pod's restartPolicy is set to Never or OnFailure.
	ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds"`
}

func (*RunOnceDurationOverrideConfigSpec) Hash

func (*RunOnceDurationOverrideConfigSpec) String

func (*RunOnceDurationOverrideConfigSpec) Validate

type RunOnceDurationOverrideList

type RunOnceDurationOverrideList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RunOnceDurationOverride `json:"items"`
}

RunOnceDurationOverrideList contains a list of IngressControllers.

func (*RunOnceDurationOverrideList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideList.

func (*RunOnceDurationOverrideList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunOnceDurationOverrideList) DeepCopyObject

func (in *RunOnceDurationOverrideList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RunOnceDurationOverrideResourceHash

type RunOnceDurationOverrideResourceHash struct {
	Configuration string `json:"configuration,omitempty"`
	ServingCert   string `json:"servingCert,omitempty"`
}

func (*RunOnceDurationOverrideResourceHash) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideResourceHash.

func (*RunOnceDurationOverrideResourceHash) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunOnceDurationOverrideResources

type RunOnceDurationOverrideResources struct {
	// ConfigurationRef points to the ConfigMap that contains the parameters for
	// RunOnceDurationOverride 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 RunOnceDurationOverride
	// 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 RunOnceDurationOverride
	// admission webhook server.
	DeploymentRef *corev1.ObjectReference `json:"deploymentRef,omitempty"`

	// APiServiceRef points to the APIService object related to the RunOnceDurationOverride
	// admission webhook server.
	APiServiceRef *corev1.ObjectReference `json:"apiServiceRef,omitempty"`

	// APiServiceRef points to the APIService object related to the RunOnceDurationOverride
	// admission webhook server.
	MutatingWebhookConfigurationRef *corev1.ObjectReference `json:"mutatingWebhookConfigurationRef,omitempty"`
}

func (*RunOnceDurationOverrideResources) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideResources.

func (*RunOnceDurationOverrideResources) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunOnceDurationOverrideSpec

type RunOnceDurationOverrideSpec struct {
	RunOnceDurationOverrideConfig RunOnceDurationOverrideConfig `json:"runOnceDurationOverride"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RunOnceDurationOverrideSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideSpec.

func (*RunOnceDurationOverrideSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunOnceDurationOverrideStatus

type RunOnceDurationOverrideStatus struct {
	// Resources is a set of resources associated with the operand.
	Resources  RunOnceDurationOverrideResources    `json:"resources,omitempty"`
	Hash       RunOnceDurationOverrideResourceHash `json:"hash,omitempty"`
	Conditions []RunOnceDurationOverrideCondition  `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 (*RunOnceDurationOverrideStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunOnceDurationOverrideStatus.

func (*RunOnceDurationOverrideStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL