Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the eunomia v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=eunomia.kohls.io
Package v1alpha1 contains API Schema definitions for the eunomia v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=eunomia.kohls.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "eunomia.kohls.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type GitConfig ¶
type GitConfig struct { //+kubebuilder:validation:Pattern=(^$|(((git|ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)))? URI string `json:"uri,omitempty"` Ref string `json:"ref,omitempty"` HTTPProxy string `json:"httpProxy,omitempty"` HTTPSProxy string `json:"httpsProxy,omitempty"` NOProxy string `json:"noProxy,omitempty"` ContextDir string `json:"contextDir,omitempty"` SecretRef string `json:"secretRef,omitempty"` }
GitConfig represents all the infomration necessary to
func (*GitConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitConfig.
func (*GitConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOpsConfig ¶
type GitOpsConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitOpsConfigSpec `json:"spec,omitempty"` Status GitOpsConfigStatus `json:"status,omitempty"` }
GitOpsConfig is the Schema for the gitopsconfigs API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*GitOpsConfig) DeepCopy ¶
func (in *GitOpsConfig) DeepCopy() *GitOpsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsConfig.
func (*GitOpsConfig) DeepCopyInto ¶
func (in *GitOpsConfig) DeepCopyInto(out *GitOpsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitOpsConfig) DeepCopyObject ¶
func (in *GitOpsConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitOpsConfigList ¶
type GitOpsConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitOpsConfig `json:"items"` }
GitOpsConfigList contains a list of GitOpsConfig
func (*GitOpsConfigList) DeepCopy ¶
func (in *GitOpsConfigList) DeepCopy() *GitOpsConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsConfigList.
func (*GitOpsConfigList) DeepCopyInto ¶
func (in *GitOpsConfigList) DeepCopyInto(out *GitOpsConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitOpsConfigList) DeepCopyObject ¶
func (in *GitOpsConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitOpsConfigSpec ¶
type GitOpsConfigSpec struct { // TemplateSource is the location of the templated resources TemplateSource GitConfig `json:"templateSource,omitempty"` // ParameterSource is the location of the parameters, only contextDir is mandatory, if other filed are left blank they are assumed to be the same as ParameterSource ParameterSource GitConfig `json:"parameterSource,omitempty"` // Triggers is an array of triggers that will launch this configuration Triggers []GitOpsTrigger `json:"triggers,omitempty"` // ServiceAccountRef references to the service account under which the template engine job will run, it must exists in the namespace in which this CR is created ServiceAccountRef string `json:"serviceAccountRef,omitempty"` // TemplateEngine, the gitops operator config map contains the list of available template engines, the value used here must exist in that list. Identity (i.e. no resource processing) is the default TemplateProcessorImage string `json:"templateProcessorImage,omitempty"` // ResourceHandlingMode represents how resource creation/update should be handled. Supported values are Apply,Create,Delete,Patch,Replace,None. Default is Apply. // +kubebuilder:validation:Enum=Apply,Create,Delete,Patch,Replace,None ResourceHandlingMode string `json:"resourceHandlingMode,omitempty"` // ResourceDeletionMode represents how resource deletion should be handled. Supported values are Retain,Delete,None. Default is Delete // +kubebuilder:validation:Enum=Retain,Delete,None ResourceDeletionMode string `json:"resourceDeletionMode,omitempty"` // TemplateProcessorArgs references to the run time parameters, we can pass additional arguments/flags to the template processor. TemplateProcessorArgs string `json:"templateProcessorArgs,omitempty"` }
GitOpsConfigSpec defines the desired state of GitOpsConfig +k8s:openapi-gen=true
func (*GitOpsConfigSpec) DeepCopy ¶
func (in *GitOpsConfigSpec) DeepCopy() *GitOpsConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsConfigSpec.
func (*GitOpsConfigSpec) DeepCopyInto ¶
func (in *GitOpsConfigSpec) DeepCopyInto(out *GitOpsConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOpsConfigStatus ¶
type GitOpsConfigStatus struct { State string `json:"state,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` Message string `json:"message,omitempty"` LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` }
GitOpsConfigStatus defines the observed state of GitOpsConfig +k8s:openapi-gen=true
func (*GitOpsConfigStatus) DeepCopy ¶
func (in *GitOpsConfigStatus) DeepCopy() *GitOpsConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsConfigStatus.
func (*GitOpsConfigStatus) DeepCopyInto ¶
func (in *GitOpsConfigStatus) DeepCopyInto(out *GitOpsConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOpsTrigger ¶
type GitOpsTrigger struct { // Type supported types are Change, Periodic, Webhook // +kubebuilder:validation:Enum=Change,Periodic,Webhook Type string `json:"type,omitempty"` // cron expression only valid with the Periodic type Cron string `json:"cron,omitempty"` // webhook secret only valid with webhook type Secret string `json:"secret,omitempty"` }
GitOpsTrigger represents a trigger, possible type values are change, periodic, webhook. If token is used the object must be labeled with the following label: "gitops_config.eunomia.kohls.io/webhook_token: <token>"
func (*GitOpsTrigger) DeepCopy ¶
func (in *GitOpsTrigger) DeepCopy() *GitOpsTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsTrigger.
func (*GitOpsTrigger) DeepCopyInto ¶
func (in *GitOpsTrigger) DeepCopyInto(out *GitOpsTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.