Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the kimup v1alpha1 API group +kubebuilder:object:generate=true +groupName=kimup.cloudavenue.io
Index ¶
- Variables
- type AlertConfig
- type AlertConfigList
- type AlertConfigSpec
- type AlertConfigStatus
- type AlertCoreSpec
- type AlertCoreStatus
- type AlertDiscordSpec
- type AlertEmailSpec
- type Image
- func (in *Image) DeepCopy() *Image
- func (in *Image) DeepCopyInto(out *Image)
- func (in *Image) DeepCopyObject() runtime.Object
- func (i *Image) GetImageWithTag() string
- func (i *Image) GetImageWithoutTag() string
- func (i *Image) GetTag() string
- func (i *Image) ImageIsEqual(image string) bool
- func (i *Image) SetStatusResult(result ImageStatusLastSync)
- func (i *Image) SetStatusTag(tag string)
- func (i *Image) SetStatusTime(time string)
- type ImageAction
- type ImageList
- type ImageRule
- type ImageSpec
- type ImageStatus
- type ImageStatusLastSync
- type ImageTrigger
- type Kimup
- type KimupExtraSpec
- type KimupInstanceSpec
- type KimupList
- type KimupProbeSpec
- type KimupSpec
- type KimupStatus
- type ValueFromSource
- type ValueOrValueFrom
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kimup.cloudavenue.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 AlertConfig ¶
type AlertConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertConfigSpec `json:"spec,omitempty"` Status AlertConfigStatus `json:"status,omitempty"` }
func (*AlertConfig) DeepCopy ¶
func (in *AlertConfig) DeepCopy() *AlertConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConfig.
func (*AlertConfig) DeepCopyInto ¶
func (in *AlertConfig) DeepCopyInto(out *AlertConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertConfig) DeepCopyObject ¶
func (in *AlertConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertConfigList ¶
type AlertConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlertConfig `json:"items"` }
func (*AlertConfigList) DeepCopy ¶
func (in *AlertConfigList) DeepCopy() *AlertConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConfigList.
func (*AlertConfigList) DeepCopyInto ¶
func (in *AlertConfigList) DeepCopyInto(out *AlertConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertConfigList) DeepCopyObject ¶
func (in *AlertConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertConfigSpec ¶
type AlertConfigSpec struct { // +kubebuilder:validation:Optional Discord *AlertDiscordSpec `json:"discord,omitempty"` // +kubebuilder:validation:Optional Email *AlertEmailSpec `json:"email,omitempty"` }
func (*AlertConfigSpec) DeepCopy ¶
func (in *AlertConfigSpec) DeepCopy() *AlertConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConfigSpec.
func (*AlertConfigSpec) DeepCopyInto ¶
func (in *AlertConfigSpec) DeepCopyInto(out *AlertConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertConfigStatus ¶
type AlertConfigStatus struct{}
AlertDiscordStatus defines the observed state of AlertDiscord
func (*AlertConfigStatus) DeepCopy ¶
func (in *AlertConfigStatus) DeepCopy() *AlertConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConfigStatus.
func (*AlertConfigStatus) DeepCopyInto ¶
func (in *AlertConfigStatus) DeepCopyInto(out *AlertConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertCoreSpec ¶
type AlertCoreSpec struct{}
func (*AlertCoreSpec) DeepCopy ¶
func (in *AlertCoreSpec) DeepCopy() *AlertCoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertCoreSpec.
func (*AlertCoreSpec) DeepCopyInto ¶
func (in *AlertCoreSpec) DeepCopyInto(out *AlertCoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertCoreStatus ¶
type AlertCoreStatus struct {
Synced bool `json:"synced"`
}
func (*AlertCoreStatus) DeepCopy ¶
func (in *AlertCoreStatus) DeepCopy() *AlertCoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertCoreStatus.
func (*AlertCoreStatus) DeepCopyInto ¶
func (in *AlertCoreStatus) DeepCopyInto(out *AlertCoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertDiscordSpec ¶
type AlertDiscordSpec struct { // +kubebuilder:validation:Required WebhookURL ValueOrValueFrom `json:"webhookURL"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Schemaless // +kubebuilder:validation:Type=string TemplateBody string `json:"templateBody,omitempty"` }
AlertDiscordSpec defines the desired state of AlertDiscord
func (*AlertDiscordSpec) DeepCopy ¶
func (in *AlertDiscordSpec) DeepCopy() *AlertDiscordSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDiscordSpec.
func (*AlertDiscordSpec) DeepCopyInto ¶
func (in *AlertDiscordSpec) DeepCopyInto(out *AlertDiscordSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertEmailSpec ¶
type AlertEmailSpec struct { // +kubebuilder:validation:Required // +kubebuilder:description:Host specifies the SMTP server to connect to. Host ValueOrValueFrom `json:"host"` // +kubebuilder:validation:Optional // +kubebuilder:description:Port specifies the port to connect to the SMTP server. // +kubebuilder:default:25 Port ValueOrValueFrom `json:"port,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:Username specifies the username to use when connecting to the SMTP server. Username ValueOrValueFrom `json:"username,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:Password specifies the password to use when connecting to the SMTP server. Password ValueOrValueFrom `json:"password,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:SMTP authentication method. // +kubebuilder:default:Unknown // +kubebuilder:validation:Enum=Unknown;Plain;Login;CRAMMD5;None;OAuth2 Auth string `json:"auth,omitempty"` // +kubebuilder:validation:Required // +kubebuilder:description:From specifies the email address to use as the sender. FromAddress string `json:"fromAddress,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:FromName specifies the name to use as the sender. FromName string `json:"fromName,omitempty"` // +kubebuilder:validation:Required // +kubebuilder:description:List of recipient e-mails. ToAddress []string `json:"toAddress,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:The client host name sent to the SMTP server during HELLO phase. If set to "auto" it will use the OS hostname. // +kubebuilder:default:auto ClientHost string `json:"clientHost,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:Encryption method // +kubebuilder:default:Auto // +kubebuilder:validation:Enum=Auto;None;ExplicitTLS;ImplicitTLS Encryption string `json:"encryption,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:Whether the message being sent is in HTML format. // +kubebuilder:default:false UseHTML bool `json:"useHTML,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description:Whether to use the STARTTLS command (if the server supports it). // +kubebuilder:default:true UseStartTLS bool `json:"useStartTLS,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Schemaless // +kubebuilder:validation:Type=string TemplateSubject string `json:"templateSubject,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Schemaless // +kubebuilder:validation:Type=string TemplateBody string `json:"templateBody,omitempty"` }
AlertEmailSpec defines the desired state of AlertEmail
func (*AlertEmailSpec) DeepCopy ¶
func (in *AlertEmailSpec) DeepCopy() *AlertEmailSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertEmailSpec.
func (*AlertEmailSpec) DeepCopyInto ¶
func (in *AlertEmailSpec) DeepCopyInto(out *AlertEmailSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageSpec `json:"spec,omitempty"` Status ImageStatus `json:"status,omitempty"` }
Image is the Schema for the images API +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.image` +kubebuilder:printcolumn:name="Tag",type=string,JSONPath=`.status.tag` +kubebuilder:printcolumn:name="Last-Result",type=string,JSONPath=`.status.result` +kubebuilder:printcolumn:name="Last-Sync",type=date,JSONPath=`.status.time`
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Image) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Image) GetImageWithTag ¶
GetImageWithTag returns the image name with the tag
func (*Image) GetImageWithoutTag ¶
GetImageWithoutTag returns the image name without the tag
func (*Image) ImageIsEqual ¶
ImageIsEqual checks if the provided image string is equal to the image specified in the Image struct. The provided image string can be in the format of "image:tag" or just "image". This function compares only the image name, ignoring any tags. It returns true if the image names are equal, and false otherwise.
func (*Image) SetStatusResult ¶ added in v0.1.0
func (i *Image) SetStatusResult(result ImageStatusLastSync)
SetStatusExecution sets the status execution of the image
func (*Image) SetStatusTag ¶
SetStatusTag sets the status tag of the image
func (*Image) SetStatusTime ¶ added in v0.1.0
SetStatusTime sets the status time of the image
type ImageAction ¶
type ImageAction struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=apply;request-approval;alert-discord Type string `json:"type"` // +kubebuilder:validation:Optional Data ValueOrValueFrom `json:"data,omitempty"` }
ImageAction
func (*ImageAction) DeepCopy ¶
func (in *ImageAction) DeepCopy() *ImageAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageAction.
func (*ImageAction) DeepCopyInto ¶
func (in *ImageAction) DeepCopyInto(out *ImageAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageList ¶
type ImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Image `json:"items"` }
ImageList contains a list of Image
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageRule ¶
type ImageRule struct { // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=calver-major;calver-minor;calver-patch;calver-prerelease;semver-major;semver-minor;semver-patch;regex;always Type rules.Name `json:"type"` // +kubebuilder:validation:Optional Value string `json:"value,omitempty"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Actions []ImageAction `json:"actions"` }
ImageRule
func (*ImageRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRule.
func (*ImageRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageSpec ¶
type ImageSpec struct { // +kubebuilder:validation:Required Image string `json:"image"` // +kubebuilder:validation:Optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:=false // +kubebuilder:example:=true InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:="latest" // +kubebuilder:example:="v1.2.0" BaseTag string `json:"baseTag,omitempty"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Triggers []ImageTrigger `json:"triggers"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Rules []ImageRule `json:"rules"` }
ImageSpec defines the desired state of Image
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatus ¶
type ImageStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Tag string `json:"tag"` Result ImageStatusLastSync `json:"result"` Time string `json:"time"` }
ImageStatus defines the observed state of Image
func (*ImageStatus) DeepCopy ¶
func (in *ImageStatus) DeepCopy() *ImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.
func (*ImageStatus) DeepCopyInto ¶
func (in *ImageStatus) DeepCopyInto(out *ImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatusLastSync ¶ added in v0.1.0
type ImageStatusLastSync string
const ( // Status of the image when it is last sync success. ImageStatusLastSyncSuccess ImageStatusLastSync = "Success" // Status of the image when it is last sync is scheduled. ImageStatusLastSyncScheduled ImageStatusLastSync = "Scheduled" // Status of the image when an error occurred. ImageStatusLastSyncError ImageStatusLastSync = "Error" // Status of the image when it is last sync get error. ImageStatusLastSyncErrorGetImage ImageStatusLastSync = "GetImageError" // Status of the image when it is last sync error secrets. ImageStatusLastSyncErrorPullSecrets ImageStatusLastSync = "PullSecretsError" // Status of the image when it is last sync error registry. ImageStatusLastSyncErrorRegistry ImageStatusLastSync = "RegistryError" // Status of the image when it is last sync error tags. ImageStatusLastSyncErrorTags ImageStatusLastSync = "TagsError" // Status of the image when it is last sync error get rule. ImageStatusLastSyncErrorGetRule ImageStatusLastSync = "GetRuleError" // Status of the image when it is last sync error action. ImageStatusLastSyncErrorAction ImageStatusLastSync = "ActionError" )
type ImageTrigger ¶
type ImageTrigger struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=crontab;webhook Type triggers.Name `json:"type"` // +kubebuilder:validation:Optional Value string `json:"value"` }
ImageTrigger
func (*ImageTrigger) DeepCopy ¶
func (in *ImageTrigger) DeepCopy() *ImageTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageTrigger.
func (*ImageTrigger) DeepCopyInto ¶
func (in *ImageTrigger) DeepCopyInto(out *ImageTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Kimup ¶
type Kimup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired state of Kimup Spec KimupSpec `json:"spec,omitempty"` // Status defines the observed state of Kimup Status KimupStatus `json:"status,omitempty"` }
+kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` Kimup is the Schema for the kimups API. Permit to manage the Kimup instances (Controller).
func (*Kimup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kimup.
func (*Kimup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kimup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KimupExtraSpec ¶
type KimupExtraSpec struct { // +kubebuilder:validation:Optional // +kubebuilder:description: Manage the metrics settings // +kubebuilder:default:={enabled:true} // Metrics is a map of settings that will be used to configure the metrics probe. If not set, the probe will be enabled. Metrics KimupProbeSpec `json:"metrics,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Manage the healthz settings // +kubebuilder:default:={enabled:true} // Healthz is a map of settings that will be used to configure the healthz probe. If not set, the probe will be enabled. Healthz KimupProbeSpec `json:"healthz,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Manage the log level settings // +kubebuilder:default:=info // +kubebuilder:validation:Enum=debug;info;warn;error;fatal;panic;trace // LogLevel is a string that will be used to configure the log level of the Kimup instance. If not set, the info log level will be used. LogLevel string `json:"logLevel,omitempty"` }
func (*KimupExtraSpec) DeepCopy ¶
func (in *KimupExtraSpec) DeepCopy() *KimupExtraSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupExtraSpec.
func (*KimupExtraSpec) DeepCopyInto ¶
func (in *KimupExtraSpec) DeepCopyInto(out *KimupExtraSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KimupInstanceSpec ¶
type KimupInstanceSpec struct { // +kubebuilder:validation:Required // +kubebuilder:description: Kimup instance name // The name of the Kimup instance in the suffix of the resource names. Name string `json:"name"` // +kubebuilder:validation:Optional // +kubebuilder:description: Kimup container image // Image of the Kimup container. If not set, the default image will be used. Image string `json:"image,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Annotations to add to the Kimup pods. // Annotations is a key value map that will be added to the Kimup pods. Annotations map[string]string `json:"annotations,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Labels to add to the Kimup pods. // Labels is a key value map that will be added to the Kimup pods. Labels map[string]string `json:"labels,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Env variables to add to the Kimup pods. // Env is a list of key value pairs that will be added to the Kimup pods. Env []corev1.EnvVar `json:"env,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Kimup container resource limits. // Resources is a map of resource requirements that will be added to the Kimup pods. Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Affinity settings for the Kimup pods. // Affinity is a map of affinity settings that will be added to the Kimup pods. Affinity *corev1.Affinity `json:"affinity,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Node selector for the Kimup pods. // NodeSelector is a map of node selector settings that will be added to the Kimup pods. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Tolerations for the Kimup pods. // Tolerations is a list of tolerations that will be added to the Kimup pods. Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: TopologySpreadConstraints for the Kimup pods. // TopologySpreadConstraints is a list of constraints that will be added to the Kimup pods. TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Service account name for the Kimup pods. // +kubebuilder:default:=kimup // ServiceAccountName is the name of the service account that will be used by the Kimup pods. ServiceAccountName string `json:"serviceAccountName,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Priority class name for the Kimup pods. // PriorityClassName is the name of the priority class that will be used by the Kimup pods. PriorityClassName string `json:"priorityClassName,omitempty"` }
func (*KimupInstanceSpec) DeepCopy ¶
func (in *KimupInstanceSpec) DeepCopy() *KimupInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupInstanceSpec.
func (*KimupInstanceSpec) DeepCopyInto ¶
func (in *KimupInstanceSpec) DeepCopyInto(out *KimupInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KimupList ¶
type KimupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Kimup `json:"items"` }
KimupList contains a list of Kimup
func (*KimupList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupList.
func (*KimupList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KimupList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KimupProbeSpec ¶
type KimupProbeSpec struct { // +kubebuilder:validation:Optional // +kubebuilder:default:=true // +kubebuilder:description: Enable or disable the probe // Enabled is a boolean that enables or disables the probe. If not set, the probe will be enabled. Enabled bool `json:"enabled,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Manage the port settings // Port is the port number where the probe will be exposed. If not set, the default port will be used. See https://pkg.go.dev/github.com/orange-cloudavenue/kube-image-updater@v0.0.1/internal/models#pkg-variables. Port int32 `json:"port,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Manage the path settings // Path is the path where the probe will be exposed. If not set, the default path will be used. See https://pkg.go.dev/github.com/orange-cloudavenue/kube-image-updater@v0.0.1/internal/models#pkg-variables. Path string `json:"path,omitempty"` }
func (*KimupProbeSpec) DeepCopy ¶
func (in *KimupProbeSpec) DeepCopy() *KimupProbeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupProbeSpec.
func (*KimupProbeSpec) DeepCopyInto ¶
func (in *KimupProbeSpec) DeepCopyInto(out *KimupProbeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KimupSpec ¶
type KimupSpec struct { // +kubebuilder:validation:Required // +kubebuilder:description: Kimup instance name // The name of the Kimup instance in the suffix of the resource names. Name string `json:"name"` // +kubebuilder:validation:Optional // +kubebuilder:description: Kimup container image // Image of the Kimup container. If not set, the default image will be used. Image string `json:"image,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Annotations to add to the Kimup pods. // Annotations is a key value map that will be added to the Kimup pods. Annotations map[string]string `json:"annotations,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Labels to add to the Kimup pods. // Labels is a key value map that will be added to the Kimup pods. Labels map[string]string `json:"labels,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Env variables to add to the Kimup pods. // Env is a list of key value pairs that will be added to the Kimup pods. Env []corev1.EnvVar `json:"env,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Kimup container resource limits. // Resources is a map of resource requirements that will be added to the Kimup pods. Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Affinity settings for the Kimup pods. // Affinity is a map of affinity settings that will be added to the Kimup pods. Affinity *corev1.Affinity `json:"affinity,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Node selector for the Kimup pods. // NodeSelector is a map of node selector settings that will be added to the Kimup pods. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Tolerations for the Kimup pods. // Tolerations is a list of tolerations that will be added to the Kimup pods. Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: TopologySpreadConstraints for the Kimup pods. // TopologySpreadConstraints is a list of constraints that will be added to the Kimup pods. TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Service account name for the Kimup pods. // +kubebuilder:default:=kimup // ServiceAccountName is the name of the service account that will be used by the Kimup pods. ServiceAccountName string `json:"serviceAccountName,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:description: Priority class name for the Kimup pods. // PriorityClassName is the name of the priority class that will be used by the Kimup pods. PriorityClassName string `json:"priorityClassName,omitempty"` KimupExtraSpec `json:",inline"` }
KimupSpec defines the desired state of Kimup
func (*KimupSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupSpec.
func (*KimupSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KimupStatus ¶
type KimupStatus struct { // Status of the Kimup Instance // It can be one of the following: // - "ready": The kimup instance is ready to serve requests // - "resources-created": The Kimup instance resources were created but not yet configured State string `json:"state,omitempty"` }
Status defines the observed state of Kimup
func (*KimupStatus) DeepCopy ¶
func (in *KimupStatus) DeepCopy() *KimupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KimupStatus.
func (*KimupStatus) DeepCopyInto ¶
func (in *KimupStatus) DeepCopyInto(out *KimupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueFromSource ¶
type ValueFromSource struct { // SecretKeyRef is a reference to a field in a secret. // +optional SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"` // ConfigMapKeyRef is a reference to a field in a config map. // +optional ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` // AlertConfigRef is a reference to a field in an alert configuration. // +optional AlertConfigRef *corev1.LocalObjectReference `json:"alertConfigRef,omitempty"` }
ValueFromSource is a reference to a field in a secret or config map.
func (*ValueFromSource) DeepCopy ¶
func (in *ValueFromSource) DeepCopy() *ValueFromSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFromSource.
func (*ValueFromSource) DeepCopyInto ¶
func (in *ValueFromSource) DeepCopyInto(out *ValueFromSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueOrValueFrom ¶
type ValueOrValueFrom struct { // Value is a string value to assign to the key. // if ValueFrom is specified, this value is ignored. // +optional Value string `json:"value,omitempty"` // ValueFrom is a reference to a field in a secret or config map. // +optional ValueFrom *ValueFromSource `json:"valueFrom,omitempty"` }
func (*ValueOrValueFrom) DeepCopy ¶
func (in *ValueOrValueFrom) DeepCopy() *ValueOrValueFrom
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueOrValueFrom.
func (*ValueOrValueFrom) DeepCopyInto ¶
func (in *ValueOrValueFrom) DeepCopyInto(out *ValueOrValueFrom)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.