Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ops v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ops.dac.nokia.com
Package v1alpha1 contains API Schema definitions for the ops v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ops.dac.nokia.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "ops.dac.nokia.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type BlacklistContent ¶
type BlacklistContent struct { //EndDate to stop blacklisting EndDate string `yaml:"endDate"` //Identifier from template data to select if a cluster should be blacklisted Identifier string `yaml:"identifier"` Values []string `yaml:"values"` }
BlacklistContent is the file content of a blacklist file
func (*BlacklistContent) DeepCopy ¶
func (in *BlacklistContent) DeepCopy() *BlacklistContent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlacklistContent.
func (*BlacklistContent) DeepCopyInto ¶
func (in *BlacklistContent) DeepCopyInto(out *BlacklistContent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Executor ¶
func (*Executor) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Executor.
func (*Executor) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOps ¶
type GitOps struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitOpsSpec `json:"spec,omitempty"` Status GitOpsStatus `json:"status,omitempty"` }
GitOps is the Schema for the gitops API +k8s:openapi-gen=true
func (*GitOps) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOps.
func (*GitOps) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitOps) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitOpsList ¶
type GitOpsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitOps `json:"items"` }
GitOpsList contains a list of GitOps
func (*GitOpsList) DeepCopy ¶
func (in *GitOpsList) DeepCopy() *GitOpsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsList.
func (*GitOpsList) DeepCopyInto ¶
func (in *GitOpsList) DeepCopyInto(out *GitOpsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitOpsList) DeepCopyObject ¶
func (in *GitOpsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitOpsSpec ¶
type GitOpsSpec struct { //Repostory is the Git repository to operate on Repository string `json:"repository"` //Branch is the git branch to operate on Branch string `json:"branch",omitempty` //RootFolder is the root folder to start parsing yaml templates from in Repository RootFolder string `json:"rootFolder"` //User to pull from the Repository User string `json:"user"` //Password to pull from the repository Password string `json:"password"` //Templating defines if templating shall be done pre deploy *Templating `json:"templating,omitempty"` //Reporting of updates through third-party plugin using a gRPC go-plugin *Reporting `json:"reporting,omitempty"` }
GitOpsSpec defines the desired state of GitOps
func (*GitOpsSpec) DeepCopy ¶
func (in *GitOpsSpec) DeepCopy() *GitOpsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsSpec.
func (*GitOpsSpec) DeepCopyInto ¶
func (in *GitOpsSpec) DeepCopyInto(out *GitOpsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOpsStatus ¶
type GitOpsStatus struct { RootFolder string `json:"rootFolder"` Updated string `json:"lastUpdate"` Hash string `json:"gitHash,omitempty"` Branch string `json:"branch"` FailedClones int `json:"failedClones,omitempty"` }
GitOpsStatus defines the observed state of GitOps
func (*GitOpsStatus) DeepCopy ¶
func (in *GitOpsStatus) DeepCopy() *GitOpsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOpsStatus.
func (*GitOpsStatus) DeepCopyInto ¶
func (in *GitOpsStatus) DeepCopyInto(out *GitOpsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Reporting ¶
type Reporting struct { //URL is the address of the GRPC server where to send report URL string `json"url"` //3rd party collector, the collector shall write its result in /tmp/update_result.yaml Collector string `json:"collector"` }
Reporting contains details about what should be reported and by which plugin
func (*Reporting) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Reporting.
func (*Reporting) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateDataSource ¶
type TemplateDataSource struct { //TemplateDataFile relative to the root dir of repository TemplateDataFile []string `json:"templateDataFile"` //BlackListFile BlackListFile string `json:"blacklistFile,omitempty"` }
TemplateDataSource contains information about the source for template data
func (*TemplateDataSource) DeepCopy ¶
func (in *TemplateDataSource) DeepCopy() *TemplateDataSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateDataSource.
func (*TemplateDataSource) DeepCopyInto ¶
func (in *TemplateDataSource) DeepCopyInto(out *TemplateDataSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Templating ¶
type Templating struct { //Enabled Enabled bool `json:"enabled"` //SourceFolder is the folder containing source data for templating. //The folder is skipped from kubernetes yaml parsing SourceFolder string `json:"templateDataFolder,omitempty"` //Source Source *TemplateDataSource `json:"templateDataSource"` //Executor used to generate the template data source file *Executor `json:"preExecutor"` }
func (*Templating) DeepCopy ¶
func (in *Templating) DeepCopy() *Templating
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Templating.
func (*Templating) DeepCopyInto ¶
func (in *Templating) DeepCopyInto(out *Templating)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.