Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the gitops v1alpha1 API group +kubebuilder:object:generate=true +groupName=gitops.kpt.dev
Index ¶
- Variables
- type ClusterDiscovery
- type ClusterRef
- type ClusterSourceGCPFleet
- type ClusterSourceKind
- type ClusterSourceType
- type ClusterStatus
- type ClusterTargetSelector
- type GitHubSelector
- type GitHubSource
- type GitInfo
- type GitLabSelector
- type GitLabSource
- type MatcherType
- type Metadata
- type OCISelector
- type OCISource
- type OciInfo
- type PackageSourceType
- type PackageStatus
- type PackageToClusterMatcher
- type PackagesConfig
- type PauseAfterWave
- type ProgressiveRolloutStrategy
- type ProgressiveRolloutStrategyList
- type ProgressiveRolloutStrategySpec
- type ProgressiveRolloutStrategyStatus
- type RemoteSync
- type RemoteSyncList
- type RemoteSyncSpec
- type RemoteSyncStatus
- type RepoSyncTemplate
- type Rollout
- type RolloutList
- type RolloutSpec
- type RolloutStatus
- type RolloutStrategy
- type RootSyncTemplate
- type SecretReference
- type StrategyAllAtOnce
- type StrategyProgressive
- type StrategyRollingUpdate
- type StrategyType
- type SyncSpec
- type SyncTemplate
- type SyncTemplateType
- type Template
- type Wave
- type WaveStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "gitops.kpt.dev", 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 ClusterDiscovery ¶
type ClusterDiscovery struct { SourceType ClusterSourceType `json:"sourceType"` GCPFleet *ClusterSourceGCPFleet `json:"gcpFleet,omitempty"` Kind *ClusterSourceKind `json:"kind,omitempty"` }
ClusterDiscovery represents configuration needed to discover clusters.
func (*ClusterDiscovery) DeepCopy ¶
func (in *ClusterDiscovery) DeepCopy() *ClusterDiscovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDiscovery.
func (*ClusterDiscovery) DeepCopyInto ¶
func (in *ClusterDiscovery) DeepCopyInto(out *ClusterDiscovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRef ¶
type ClusterRef struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Namespace string `json:"namespace"` Name string `json:"name"` }
ClusterReference contains the identify information need to refer a cluster.
func (*ClusterRef) DeepCopy ¶
func (in *ClusterRef) DeepCopy() *ClusterRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRef.
func (*ClusterRef) DeepCopyInto ¶
func (in *ClusterRef) DeepCopyInto(out *ClusterRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRef) GetAPIVersion ¶
func (r *ClusterRef) GetAPIVersion() string
func (*ClusterRef) GetKind ¶
func (r *ClusterRef) GetKind() string
func (*ClusterRef) GetName ¶
func (r *ClusterRef) GetName() string
func (*ClusterRef) GetNamespace ¶
func (r *ClusterRef) GetNamespace() string
type ClusterSourceGCPFleet ¶
type ClusterSourceGCPFleet struct {
ProjectIds []string `json:"projectIds"`
}
ClusterSourceGCPFleet represents configuration needed to discover gcp fleet clusters.
func (*ClusterSourceGCPFleet) DeepCopy ¶
func (in *ClusterSourceGCPFleet) DeepCopy() *ClusterSourceGCPFleet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSourceGCPFleet.
func (*ClusterSourceGCPFleet) DeepCopyInto ¶
func (in *ClusterSourceGCPFleet) DeepCopyInto(out *ClusterSourceGCPFleet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSourceKind ¶
type ClusterSourceKind struct { // Namespace where configmaps corresponding to kind clusters live // defaults to `kind-clusters` Namespace string `json:"namespace,omitempty"` }
ClusterSourceKind contains configuration needed to discover kind clusters.
func (*ClusterSourceKind) DeepCopy ¶
func (in *ClusterSourceKind) DeepCopy() *ClusterSourceKind
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSourceKind.
func (*ClusterSourceKind) DeepCopyInto ¶
func (in *ClusterSourceKind) DeepCopyInto(out *ClusterSourceKind)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSourceType ¶
type ClusterSourceType string
+kubebuilder:validation:Enum=KCC;GCPFleet;Kind
const ( KCC ClusterSourceType = "KCC" GCPFleet ClusterSourceType = "GCPFleet" KindCluster ClusterSourceType = "Kind" )
different types of cluster sources
type ClusterStatus ¶
type ClusterStatus struct { Name string `json:"name"` PackageStatus PackageStatus `json:"packageStatus"` }
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTargetSelector ¶
type ClusterTargetSelector struct {
Selector *metav1.LabelSelector `json:"selector,omitempty"`
}
func (*ClusterTargetSelector) DeepCopy ¶
func (in *ClusterTargetSelector) DeepCopy() *ClusterTargetSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTargetSelector.
func (*ClusterTargetSelector) DeepCopyInto ¶
func (in *ClusterTargetSelector) DeepCopyInto(out *ClusterTargetSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubSelector ¶
type GitHubSelector struct { Org string `json:"org"` Repo string `json:"repo"` Directory string `json:"directory,omitempty"` Revision string `json:"revision,omitempty"` Branch string `json:"branch,omitempty"` SecretRef SecretReference `json:"secretRef,omitempty"` }
GitHubSelector defines the selector to apply to packages in GitHub.
func (*GitHubSelector) DeepCopy ¶
func (in *GitHubSelector) DeepCopy() *GitHubSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubSelector.
func (*GitHubSelector) DeepCopyInto ¶
func (in *GitHubSelector) DeepCopyInto(out *GitHubSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubSource ¶
type GitHubSource struct {
Selector GitHubSelector `json:"selector"`
}
GitHubSource defines the packages source in GitHub.
func (*GitHubSource) DeepCopy ¶
func (in *GitHubSource) DeepCopy() *GitHubSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubSource.
func (*GitHubSource) DeepCopyInto ¶
func (in *GitHubSource) DeepCopyInto(out *GitHubSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitInfo ¶
type GitInfo struct { Repo string `json:"repo"` Branch string `json:"branch,omitempty"` Revision string `json:"revision,omitempty"` Dir string `json:"dir,omitempty"` Period metav1.Duration `json:"period,omitempty"` Auth string `json:"auth"` GCPServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` Proxy string `json:"proxy,omitempty"` SecretRef SecretReference `json:"secretRef,omitempty"` NoSSLVerify bool `json:"noSSLVerify,omitempty"` }
func (*GitInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitInfo.
func (*GitInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitLabSelector ¶
type GitLabSelector struct { // ProjectID is the numerical identifier of the GitLab project // It will not be specified if selection involves multiple projects ProjectID string `json:"projectID,omitempty"` // Directory refers to the subdirectory path in the project Directory string `json:"directory,omitempty"` // Revision refers to the branch, tag of the GitLab repo Revision string `json:"revision,omitempty"` // Branch refers to the branch Branch string `json:"branch,omitempty"` }
GitLabSelector defines how to select packages in GitLab.
func (*GitLabSelector) DeepCopy ¶
func (in *GitLabSelector) DeepCopy() *GitLabSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabSelector.
func (*GitLabSelector) DeepCopyInto ¶
func (in *GitLabSelector) DeepCopyInto(out *GitLabSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitLabSource ¶
type GitLabSource struct { // SecretReference is the reference to a kubernetes secret // that contains GitLab access token SecretRef SecretReference `json:"secretRef,omitempty"` // Selector defines the package selector in GitLab. Selector GitLabSelector `json:"selector"` }
GitLabSource defines the packages source in GitLab.
func (*GitLabSource) DeepCopy ¶
func (in *GitLabSource) DeepCopy() *GitLabSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabSource.
func (*GitLabSource) DeepCopyInto ¶
func (in *GitLabSource) DeepCopyInto(out *GitLabSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MatcherType ¶
type MatcherType string
+kubebuilder:validation:Enum=AllClusters;Custom
const ( MatchAllClusters MatcherType = "AllClusters" CustomMatcher MatcherType = "Custom" )
type Metadata ¶
type Metadata struct { Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
Metadata specifies labels and annotations to add to the RSync object.
func (*Metadata) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.
func (*Metadata) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCISelector ¶
type OCISelector struct { // image is the OCI image repository URL for the package to sync from. // e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. // The image can be pulled by TAG or by DIGEST if it is specified in PACKAGE_NAME. // - Pull by tag: `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME:TAG`. // - Pull by digest: `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME@sha256:DIGEST`. // If neither TAG nor DIGEST is specified, it pulls with the `latest` tag by default. // Required Image string `json:"image"` // dir is the absolute path of the directory that contains // the local resources. Default: the root directory of the image. // Note (droot): We will extend `Dir` to express variants of a package at some point. // +optional Dir string `json:"dir,omitempty"` }
Selector represent info on how to select OCI packages.
func (*OCISelector) DeepCopy ¶
func (in *OCISelector) DeepCopy() *OCISelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCISelector.
func (*OCISelector) DeepCopyInto ¶
func (in *OCISelector) DeepCopyInto(out *OCISelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCISource ¶
type OCISource struct { // Selector contains config to select OCI packages Selector OCISelector `json:"selector"` }
OCISource defines configuration to discover OCI packages.
func (*OCISource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCISource.
func (*OCISource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OciInfo ¶
type OciInfo struct { // image is the OCI image repository URL for the package to sync from. // e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. // The image can be pulled by TAG or by DIGEST if it is specified in PACKAGE_NAME. // - Pull by tag: `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME:TAG`. // - Pull by digest: `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME@sha256:DIGEST`. // If neither TAG nor DIGEST is specified, it pulls with the `latest` tag by default. Image string `json:"image,omitempty"` // dir is the absolute path of the directory that contains // the local resources. Default: the root directory of the image. // +optional Dir string `json:"dir,omitempty"` // period is the time duration between consecutive syncs. Default: 15s. // Note to developers that customers specify this value using // string (https://golang.org/pkg/time/#Duration.String) like "3s" // in their Custom Resource YAML. However, time.Duration is at a nanosecond // granularity, and it is easy to introduce a bug where it looks like the // code is dealing with seconds but its actually nanoseconds (or vice versa). // +optional Period metav1.Duration `json:"period,omitempty"` // auth is the type of secret configured for access to the OCI package. // Must be one of gcenode, gcpserviceaccount, or none. // The validation of this is case-sensitive. Required. // // +kubebuilder:validation:Enum=gcenode;gcpserviceaccount;none Auth string `json:"auth"` // gcpServiceAccountEmail specifies the GCP service account used to annotate // the RootSync/RepoSync controller Kubernetes Service Account. // Note: The field is used when secretType: gcpServiceAccount. GCPServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` }
Oci contains configuration specific to importing resources from an OCI package. This definition is copied from https://github.com/GoogleContainerTools/kpt-config-sync/blob/main/pkg/api/configsync/v1beta1/ociconfig.go
func (*OciInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OciInfo.
func (*OciInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageSourceType ¶
type PackageSourceType string
+kubebuilder:validation:Enum=GitHub;GitLab;OCI
const ( GitHub PackageSourceType = "GitHub" GitLab PackageSourceType = "GitLab" OCI PackageSourceType = "OCI" )
type PackageStatus ¶
type PackageStatus struct { PackageID string `json:"packageId"` SyncStatus string `json:"syncStatus"` Status string `json:"status"` }
func (*PackageStatus) DeepCopy ¶
func (in *PackageStatus) DeepCopy() *PackageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageStatus.
func (*PackageStatus) DeepCopyInto ¶
func (in *PackageStatus) DeepCopyInto(out *PackageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageToClusterMatcher ¶
type PackageToClusterMatcher struct { Type MatcherType `json:"type"` MatchExpression string `json:"matchExpression,omitempty"` }
func (*PackageToClusterMatcher) DeepCopy ¶
func (in *PackageToClusterMatcher) DeepCopy() *PackageToClusterMatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageToClusterMatcher.
func (*PackageToClusterMatcher) DeepCopyInto ¶
func (in *PackageToClusterMatcher) DeepCopyInto(out *PackageToClusterMatcher)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackagesConfig ¶
type PackagesConfig struct { SourceType PackageSourceType `json:"sourceType"` // TODO(droot): Change Github and Gitlab to pointers because // One of the the following will be non-nil to follow OneOf semantics. GitHub GitHubSource `json:"github,omitempty"` GitLab GitLabSource `json:"gitlab,omitempty"` OciSource *OCISource `json:"oci,omitempty"` }
PackagesConfig defines the packages the Rollout should deploy.
func (*PackagesConfig) DeepCopy ¶
func (in *PackagesConfig) DeepCopy() *PackagesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackagesConfig.
func (*PackagesConfig) DeepCopyInto ¶
func (in *PackagesConfig) DeepCopyInto(out *PackagesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PauseAfterWave ¶
type PauseAfterWave struct { // WaveName represents name of the wave defined in the ProgressiveRolloutStrategy. WaveName string `json:"waveName"` }
func (*PauseAfterWave) DeepCopy ¶
func (in *PauseAfterWave) DeepCopy() *PauseAfterWave
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PauseAfterWave.
func (*PauseAfterWave) DeepCopyInto ¶
func (in *PauseAfterWave) DeepCopyInto(out *PauseAfterWave)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProgressiveRolloutStrategy ¶
type ProgressiveRolloutStrategy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProgressiveRolloutStrategySpec `json:"spec,omitempty"` Status ProgressiveRolloutStrategyStatus `json:"status,omitempty"` }
ProgressiveRolloutStrategy is the Schema for the progressiverolloutstrategies API
func (*ProgressiveRolloutStrategy) DeepCopy ¶
func (in *ProgressiveRolloutStrategy) DeepCopy() *ProgressiveRolloutStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProgressiveRolloutStrategy.
func (*ProgressiveRolloutStrategy) DeepCopyInto ¶
func (in *ProgressiveRolloutStrategy) DeepCopyInto(out *ProgressiveRolloutStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProgressiveRolloutStrategy) DeepCopyObject ¶
func (in *ProgressiveRolloutStrategy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProgressiveRolloutStrategyList ¶
type ProgressiveRolloutStrategyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProgressiveRolloutStrategy `json:"items"` }
ProgressiveRolloutStrategyList contains a list of ProgressiveRolloutStrategy
func (*ProgressiveRolloutStrategyList) DeepCopy ¶
func (in *ProgressiveRolloutStrategyList) DeepCopy() *ProgressiveRolloutStrategyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProgressiveRolloutStrategyList.
func (*ProgressiveRolloutStrategyList) DeepCopyInto ¶
func (in *ProgressiveRolloutStrategyList) DeepCopyInto(out *ProgressiveRolloutStrategyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProgressiveRolloutStrategyList) DeepCopyObject ¶
func (in *ProgressiveRolloutStrategyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProgressiveRolloutStrategySpec ¶
type ProgressiveRolloutStrategySpec struct { // Description is a user friendly description of this rollout strategy. Description string `json:"description,omitempty"` // Waves defines an order set of waves of rolling updates. Waves []Wave `json:"waves"` }
ProgressiveRolloutStrategySpec defines the desired state of ProgressiveRolloutStrategy
func (*ProgressiveRolloutStrategySpec) DeepCopy ¶
func (in *ProgressiveRolloutStrategySpec) DeepCopy() *ProgressiveRolloutStrategySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProgressiveRolloutStrategySpec.
func (*ProgressiveRolloutStrategySpec) DeepCopyInto ¶
func (in *ProgressiveRolloutStrategySpec) DeepCopyInto(out *ProgressiveRolloutStrategySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProgressiveRolloutStrategyStatus ¶
type ProgressiveRolloutStrategyStatus struct { }
ProgressiveRolloutStrategyStatus defines the observed state of ProgressiveRolloutStrategy
func (*ProgressiveRolloutStrategyStatus) DeepCopy ¶
func (in *ProgressiveRolloutStrategyStatus) DeepCopy() *ProgressiveRolloutStrategyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProgressiveRolloutStrategyStatus.
func (*ProgressiveRolloutStrategyStatus) DeepCopyInto ¶
func (in *ProgressiveRolloutStrategyStatus) DeepCopyInto(out *ProgressiveRolloutStrategyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteSync ¶
type RemoteSync struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RemoteSyncSpec `json:"spec,omitempty"` Status RemoteSyncStatus `json:"status,omitempty"` }
RemoteSync is the Schema for the remotesyncs API
func (*RemoteSync) DeepCopy ¶
func (in *RemoteSync) DeepCopy() *RemoteSync
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSync.
func (*RemoteSync) DeepCopyInto ¶
func (in *RemoteSync) DeepCopyInto(out *RemoteSync)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoteSync) DeepCopyObject ¶
func (in *RemoteSync) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RemoteSyncList ¶
type RemoteSyncList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RemoteSync `json:"items"` }
RemoteSyncList contains a list of RemoteSync
func (*RemoteSyncList) DeepCopy ¶
func (in *RemoteSyncList) DeepCopy() *RemoteSyncList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncList.
func (*RemoteSyncList) DeepCopyInto ¶
func (in *RemoteSyncList) DeepCopyInto(out *RemoteSyncList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoteSyncList) DeepCopyObject ¶
func (in *RemoteSyncList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RemoteSyncSpec ¶
type RemoteSyncSpec struct { // ClusterReference contains the identify information need to refer a cluster. ClusterRef ClusterRef `json:"clusterRef,omitempty"` Template *Template `json:"template,omitempty"` Type SyncTemplateType `json:"type,omitempty"` }
RemoteSyncSpec defines the desired state of RemoteSync
func (*RemoteSyncSpec) DeepCopy ¶
func (in *RemoteSyncSpec) DeepCopy() *RemoteSyncSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncSpec.
func (*RemoteSyncSpec) DeepCopyInto ¶
func (in *RemoteSyncSpec) DeepCopyInto(out *RemoteSyncSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteSyncStatus ¶
type RemoteSyncStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions describes the reconciliation state of the object. Conditions []metav1.Condition `json:"conditions,omitempty"` // SyncStatus describes the observed state of external sync. SyncStatus string `json:"syncStatus,omitempty"` // Internal only. SyncCreated describes if the external sync has been created. SyncCreated bool `json:"syncCreated"` }
RemoteSyncStatus defines the observed state of RemoteSync
func (*RemoteSyncStatus) DeepCopy ¶
func (in *RemoteSyncStatus) DeepCopy() *RemoteSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSyncStatus.
func (*RemoteSyncStatus) DeepCopyInto ¶
func (in *RemoteSyncStatus) DeepCopyInto(out *RemoteSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepoSyncTemplate ¶
type RepoSyncTemplate struct { SourceFormat string `json:"sourceFormat,omitempty"` Git *GitInfo `json:"git,omitempty"` Oci *OciInfo `json:"oci,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` }
RepoSyncTemplate represent the sync template for RepoSync.
func (*RepoSyncTemplate) DeepCopy ¶
func (in *RepoSyncTemplate) DeepCopy() *RepoSyncTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoSyncTemplate.
func (*RepoSyncTemplate) DeepCopyInto ¶
func (in *RepoSyncTemplate) DeepCopyInto(out *RepoSyncTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rollout ¶
type Rollout struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RolloutSpec `json:"spec,omitempty"` Status RolloutStatus `json:"status,omitempty"` }
Rollout is the Schema for the rollouts API
func (*Rollout) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rollout.
func (*Rollout) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rollout) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Rollout) GetSyncTemplateType ¶
func (rollout *Rollout) GetSyncTemplateType() SyncTemplateType
type RolloutList ¶
type RolloutList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Rollout `json:"items"` }
RolloutList contains a list of Rollout
func (*RolloutList) DeepCopy ¶
func (in *RolloutList) DeepCopy() *RolloutList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutList.
func (*RolloutList) DeepCopyInto ¶
func (in *RolloutList) DeepCopyInto(out *RolloutList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RolloutList) DeepCopyObject ¶
func (in *RolloutList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RolloutSpec ¶
type RolloutSpec struct { // Description is a user friendly description of this Rollout. Description string `json:"description,omitempty"` // Clusters specifies the source for discovering the clusters. Clusters ClusterDiscovery `json:"clusters"` // Packages source for this Rollout. Packages PackagesConfig `json:"packages"` // Targets specifies the clusters that will receive the KRM config packages. Targets ClusterTargetSelector `json:"targets,omitempty"` // PackageToTargetMatcher specifies the clusters that will receive a specific package. PackageToTargetMatcher PackageToClusterMatcher `json:"packageToTargetMatcher"` // SyncTemplate defines the type and attributes for the RSync object used to syncing the packages. SyncTemplate *SyncTemplate `json:"syncTemplate,omitempty"` // Strategy specifies the rollout strategy to use for this rollout. Strategy RolloutStrategy `json:"strategy"` }
RolloutSpec defines the desired state of Rollout
func (*RolloutSpec) DeepCopy ¶
func (in *RolloutSpec) DeepCopy() *RolloutSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutSpec.
func (*RolloutSpec) DeepCopyInto ¶
func (in *RolloutSpec) DeepCopyInto(out *RolloutSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStatus ¶
type RolloutStatus struct { ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions describes the reconciliation state of the object. Conditions []metav1.Condition `json:"conditions,omitempty"` Overall string `json:"overall,omitempty"` WaveStatuses []WaveStatus `json:"waveStatuses,omitempty"` ClusterStatuses []ClusterStatus `json:"clusterStatuses,omitempty"` }
RolloutStatus defines the observed state of Rollout
func (*RolloutStatus) DeepCopy ¶
func (in *RolloutStatus) DeepCopy() *RolloutStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStatus.
func (*RolloutStatus) DeepCopyInto ¶
func (in *RolloutStatus) DeepCopyInto(out *RolloutStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategy ¶
type RolloutStrategy struct { Type StrategyType `json:"type"` AllAtOnce *StrategyAllAtOnce `json:"allAtOnce,omitempty"` RollingUpdate *StrategyRollingUpdate `json:"rollingUpdate,omitempty"` Progressive *StrategyProgressive `json:"progressive,omitempty"` }
func (*RolloutStrategy) DeepCopy ¶
func (in *RolloutStrategy) DeepCopy() *RolloutStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy.
func (*RolloutStrategy) DeepCopyInto ¶
func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RootSyncTemplate ¶
type RootSyncTemplate struct { SourceFormat string `json:"sourceFormat,omitempty"` Git *GitInfo `json:"git,omitempty"` Oci *OciInfo `json:"oci,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` }
RootSyncTemplate represent the sync template for RootSync.
func (*RootSyncTemplate) DeepCopy ¶
func (in *RootSyncTemplate) DeepCopy() *RootSyncTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootSyncTemplate.
func (*RootSyncTemplate) DeepCopyInto ¶
func (in *RootSyncTemplate) DeepCopyInto(out *RootSyncTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretReference ¶
type SecretReference struct { // Name represents the secret name Name string `json:"name,omitempty"` }
SecretReference contains the reference to the secret
func (*SecretReference) DeepCopy ¶
func (in *SecretReference) DeepCopy() *SecretReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
func (*SecretReference) DeepCopyInto ¶
func (in *SecretReference) DeepCopyInto(out *SecretReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StrategyAllAtOnce ¶
type StrategyAllAtOnce struct{}
func (*StrategyAllAtOnce) DeepCopy ¶
func (in *StrategyAllAtOnce) DeepCopy() *StrategyAllAtOnce
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyAllAtOnce.
func (*StrategyAllAtOnce) DeepCopyInto ¶
func (in *StrategyAllAtOnce) DeepCopyInto(out *StrategyAllAtOnce)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StrategyProgressive ¶
type StrategyProgressive struct { // Name of the ProgressiveRolloutStrategy to use. Name string `json:"name"` // Namespace of the ProgressiveRolloutStrategy to use. Namespace string `json:"namespace"` // PauseAfterWave represents the highest wave the strategy will deploy. PauseAfterWave PauseAfterWave `json:"pauseAfterWave,omitempty"` }
StrategyProgressive defines the progressive rollout strategy to use.
func (*StrategyProgressive) DeepCopy ¶
func (in *StrategyProgressive) DeepCopy() *StrategyProgressive
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyProgressive.
func (*StrategyProgressive) DeepCopyInto ¶
func (in *StrategyProgressive) DeepCopyInto(out *StrategyProgressive)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StrategyRollingUpdate ¶
type StrategyRollingUpdate struct {
MaxConcurrent int64 `json:"maxConcurrent"`
}
func (*StrategyRollingUpdate) DeepCopy ¶
func (in *StrategyRollingUpdate) DeepCopy() *StrategyRollingUpdate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyRollingUpdate.
func (*StrategyRollingUpdate) DeepCopyInto ¶
func (in *StrategyRollingUpdate) DeepCopyInto(out *StrategyRollingUpdate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StrategyType ¶
type StrategyType string
+kubebuilder:validation:Enum=AllAtOnce;RollingUpdate;Progressive
const ( AllAtOnce StrategyType = "AllAtOnce" RollingUpdate StrategyType = "RollingUpdate" Progressive StrategyType = "Progressive" )
type SyncSpec ¶
type SyncSpec struct { SourceType string `json:"sourceType,omitempty"` SourceFormat string `json:"sourceFormat,omitempty"` Git *GitInfo `json:"git,omitempty"` Oci *OciInfo `json:"oci,omitempty"` }
func (*SyncSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncSpec.
func (*SyncSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncTemplate ¶
type SyncTemplate struct { Type SyncTemplateType `json:"type"` RootSync *RootSyncTemplate `json:"rootSync,omitempty"` RepoSync *RepoSyncTemplate `json:"repoSync,omitempty"` }
SyncTemplate defines the configuration for RSync templates.
func (*SyncTemplate) DeepCopy ¶
func (in *SyncTemplate) DeepCopy() *SyncTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncTemplate.
func (*SyncTemplate) DeepCopyInto ¶
func (in *SyncTemplate) DeepCopyInto(out *SyncTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncTemplateType ¶
type SyncTemplateType string
+kubebuilder:validation:Enum=RootSync;RepoSync
const ( TemplateTypeRootSync SyncTemplateType = "RootSync" TemplateTypeRepoSync SyncTemplateType = "RepoSync" )
different types of sync templates.
type Template ¶
type Template struct { Spec *SyncSpec `json:"spec,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` }
func (*Template) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Wave ¶
type Wave struct { // Name identifies the wave. Name string `json:"name"` Description string `json:"description,omitempty"` // MaxConcurrent specifies maximum number of concurrent updates to be performed in this wave. MaxConcurrent int64 `json:"maxConcurrent"` // Targets specifies the clusters that are part of this wave. Targets ClusterTargetSelector `json:"targets,omitempty"` }
Wave represents a group of rolling updates in a progressive rollout. It is also referred as steps, stages or phases of a progressive rollout.
func (*Wave) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Wave.
func (*Wave) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WaveStatus ¶
type WaveStatus struct { Name string `json:"name"` Status string `json:"status"` Paused bool `json:"paused,omitempty"` ClusterStatuses []ClusterStatus `json:"clusterStatuses,omitempty"` }
func (*WaveStatus) DeepCopy ¶
func (in *WaveStatus) DeepCopy() *WaveStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WaveStatus.
func (*WaveStatus) DeepCopyInto ¶
func (in *WaveStatus) DeepCopyInto(out *WaveStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.