Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the gitops v1alpha1 API group +kubebuilder:object:generate=true +groupName=gitops.turbonomic.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "gitops.turbonomic.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 CommitMode ¶
type CommitMode string
CommitMode describes how Turbonomic events will be processed. +kubebuilder:validation:Enum=direct;request
const ( // Actions will produce commit directly within the underlying repository without creating a pull/merge request DirectCommit CommitMode = "direct" // Actions will result in a pull/merge request being creating within the underlying repository RequestCommit CommitMode = "request" )
type Configuration ¶
type Configuration struct { // Specifies the GitOps commit mode. // Valid values are: // - "direct": actions will produce commit directly within the underlying repository without creating a pull/merge request; // - "request": actions will result in a pull/merge request being creating within the underlying repository CommitMode CommitMode `json:"commitMode"` // Specifies the credentials for the underlying repository (CURRENTLY UNSUPPORTED) // +optional Credentials Credentials `json:"credentials,omitempty"` // A regular expression against which applications will be checked. Application names that match the supplied expression // will use the configuration supplied here. // NOTE: the selector property is prioritzed over the whitelist. Selector string `json:"selector,omitempty"` // A whitelist list of application names to which the configuration should apply. // NOTE: the selector property is prioritzed over the whitelist. // +kubebuilder:validation:MinItems:=1 Whitelist []string `json:"whitelist,omitempty"` }
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Credentials ¶
type Credentials struct { // Specifies the email address of the user from which commits/PRs will be created // +kubebuilder:validation:Format=email Email string `json:"email"` // Specifies the name of the secret containing credentials for the repository SecretName string `json:"secretName"` // Specifies the namespace in which the secret containing the credentials exists SecretNamespace string `json:"secretNamespace"` // Specifies the username from which commits/PRs will be created by Username string `json:"username"` }
func (*Credentials) DeepCopy ¶
func (in *Credentials) DeepCopy() *Credentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credentials.
func (*Credentials) DeepCopyInto ¶
func (in *Credentials) DeepCopyInto(out *Credentials)
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
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 { // Overrides the default GitOps configuration with custom configuration for the specified app(s). // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems:=1 Configuration []Configuration `json:"config"` }
GitOpsSpec defines the desired state of GitOps configuration
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 { }
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.