Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1 v1alpha1 API group +kubebuilder:object:generate=true +groupName=v1.edp.epam.com
Index ¶
- Variables
- type ApplicationDestination
- type ApplicationReconciliationStatus
- type ApplicationSource
- type ApplicationSourceDirectory
- type ApplicationSourceHelm
- type ApplicationSourceJsonnet
- type ApplicationSourceKustomize
- type ApplicationSourcePlugin
- type ApplicationSpec
- type ApplicationStatus
- type ArgoApplication
- type ArgoApplicationList
- type Backoff
- type Env
- type EnvEntry
- type HelmFileParameter
- type HelmParameter
- type Info
- type JsonnetVar
- type KustomizeImage
- type KustomizeImages
- type ResourceIgnoreDifferences
- type RetryStrategy
- type SyncOptions
- type SyncPolicy
- type SyncPolicyAutomated
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "v1.edp.epam.com", 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 ApplicationDestination ¶
type ApplicationDestination struct {
// Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API
Server string `json:"server,omitempty" protobuf:"bytes,1,opt,name=server"`
// Namespace specifies the target namespace for the application's resources.
// The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace
Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
// Name is an alternate way of specifying the target cluster by its symbolic name
Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
}
ApplicationDestination holds information about the application's destination
func (*ApplicationDestination) DeepCopy ¶
func (in *ApplicationDestination) DeepCopy() *ApplicationDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationDestination.
func (*ApplicationDestination) DeepCopyInto ¶
func (in *ApplicationDestination) DeepCopyInto(out *ApplicationDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationReconciliationStatus ¶
type ApplicationReconciliationStatus string
const ( ApplicationReconciliationStatusSuccess ApplicationReconciliationStatus = "success" ApplicationReconciliationStatusError ApplicationReconciliationStatus = "error" )
type ApplicationSource ¶
type ApplicationSource struct {
// RepoURL is the URL to the repository (Git or Helm) that contains the application manifests
RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
// Path is a directory path within the Git repository, and is only valid for applications sourced from Git.
Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"`
// TargetRevision defines the revision of the source to sync the application to.
// In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.
// In case of Helm, this is a semver tag for the Chart's version.
TargetRevision string `json:"targetRevision,omitempty" protobuf:"bytes,4,opt,name=targetRevision"`
// Helm holds helm specific options
Helm *ApplicationSourceHelm `json:"helm,omitempty" protobuf:"bytes,7,opt,name=helm"`
// Kustomize holds kustomize specific options
Kustomize *ApplicationSourceKustomize `json:"kustomize,omitempty" protobuf:"bytes,8,opt,name=kustomize"`
// Directory holds path/directory specific options
Directory *ApplicationSourceDirectory `json:"directory,omitempty" protobuf:"bytes,10,opt,name=directory"`
// ConfigManagementPlugin holds config management plugin specific options
Plugin *ApplicationSourcePlugin `json:"plugin,omitempty" protobuf:"bytes,11,opt,name=plugin"`
// Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.
Chart string `json:"chart,omitempty" protobuf:"bytes,12,opt,name=chart"`
}
ApplicationSource contains all required information about the source of an application
func (*ApplicationSource) DeepCopy ¶
func (in *ApplicationSource) DeepCopy() *ApplicationSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSource.
func (*ApplicationSource) DeepCopyInto ¶
func (in *ApplicationSource) DeepCopyInto(out *ApplicationSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSourceDirectory ¶
type ApplicationSourceDirectory struct {
// Recurse specifies whether to scan a directory recursively for manifests
Recurse bool `json:"recurse,omitempty" protobuf:"bytes,1,opt,name=recurse"`
// Jsonnet holds options specific to Jsonnet
Jsonnet ApplicationSourceJsonnet `json:"jsonnet,omitempty" protobuf:"bytes,2,opt,name=jsonnet"`
// Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation
Exclude string `json:"exclude,omitempty" protobuf:"bytes,3,opt,name=exclude"`
// Include contains a glob pattern to match paths against that should be explicitly included during manifest generation
Include string `json:"include,omitempty" protobuf:"bytes,4,opt,name=include"`
}
ApplicationSourceDirectory holds options for applications of type plain YAML or Jsonnet
func (*ApplicationSourceDirectory) DeepCopy ¶
func (in *ApplicationSourceDirectory) DeepCopy() *ApplicationSourceDirectory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceDirectory.
func (*ApplicationSourceDirectory) DeepCopyInto ¶
func (in *ApplicationSourceDirectory) DeepCopyInto(out *ApplicationSourceDirectory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSourceHelm ¶
type ApplicationSourceHelm struct {
// ValuesFiles is a list of Helm value files to use when generating a template
ValueFiles []string `json:"valueFiles,omitempty" protobuf:"bytes,1,opt,name=valueFiles"`
// Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation
Parameters []HelmParameter `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"`
// ReleaseName is the Helm release name to use. If omitted it will use the application name
ReleaseName string `json:"releaseName,omitempty" protobuf:"bytes,3,opt,name=releaseName"`
// Values specifies Helm values to be passed to helm template, typically defined as a block
Values string `json:"values,omitempty" protobuf:"bytes,4,opt,name=values"`
// FileParameters are file parameters to the helm template
FileParameters []HelmFileParameter `json:"fileParameters,omitempty" protobuf:"bytes,5,opt,name=fileParameters"`
// Version is the Helm version to use for templating ("3")
Version string `json:"version,omitempty" protobuf:"bytes,6,opt,name=version"`
// PassCredentials pass credentials to all domains (Helm's --pass-credentials)
PassCredentials bool `json:"passCredentials,omitempty" protobuf:"bytes,7,opt,name=passCredentials"`
// IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values
IgnoreMissingValueFiles bool `json:"ignoreMissingValueFiles,omitempty" protobuf:"bytes,8,opt,name=ignoreMissingValueFiles"`
// SkipCrds skips custom resource definition installation step (Helm's --skip-crds)
SkipCrds bool `json:"skipCrds,omitempty" protobuf:"bytes,9,opt,name=skipCrds"`
}
ApplicationSourceHelm holds helm specific options
func (*ApplicationSourceHelm) DeepCopy ¶
func (in *ApplicationSourceHelm) DeepCopy() *ApplicationSourceHelm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceHelm.
func (*ApplicationSourceHelm) DeepCopyInto ¶
func (in *ApplicationSourceHelm) DeepCopyInto(out *ApplicationSourceHelm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSourceJsonnet ¶
type ApplicationSourceJsonnet struct {
// ExtVars is a list of Jsonnet External Variables
ExtVars []JsonnetVar `json:"extVars,omitempty" protobuf:"bytes,1,opt,name=extVars"`
// TLAS is a list of Jsonnet Top-level Arguments
TLAs []JsonnetVar `json:"tlas,omitempty" protobuf:"bytes,2,opt,name=tlas"`
// Additional library search dirs
Libs []string `json:"libs,omitempty" protobuf:"bytes,3,opt,name=libs"`
}
ApplicationSourceJsonnet holds options specific to applications of type Jsonnet
func (*ApplicationSourceJsonnet) DeepCopy ¶
func (in *ApplicationSourceJsonnet) DeepCopy() *ApplicationSourceJsonnet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceJsonnet.
func (*ApplicationSourceJsonnet) DeepCopyInto ¶
func (in *ApplicationSourceJsonnet) DeepCopyInto(out *ApplicationSourceJsonnet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSourceKustomize ¶
type ApplicationSourceKustomize struct {
// NamePrefix is a prefix appended to resources for Kustomize apps
NamePrefix string `json:"namePrefix,omitempty" protobuf:"bytes,1,opt,name=namePrefix"`
// NameSuffix is a suffix appended to resources for Kustomize apps
NameSuffix string `json:"nameSuffix,omitempty" protobuf:"bytes,2,opt,name=nameSuffix"`
// Images is a list of Kustomize image override specifications
Images KustomizeImages `json:"images,omitempty" protobuf:"bytes,3,opt,name=images"`
// CommonLabels is a list of additional labels to add to rendered manifests
CommonLabels map[string]string `json:"commonLabels,omitempty" protobuf:"bytes,4,opt,name=commonLabels"`
// Version controls which version of Kustomize to use for rendering manifests
Version string `json:"version,omitempty" protobuf:"bytes,5,opt,name=version"`
// CommonAnnotations is a list of additional annotations to add to rendered manifests
CommonAnnotations map[string]string `json:"commonAnnotations,omitempty" protobuf:"bytes,6,opt,name=commonAnnotations"`
// ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps
ForceCommonLabels bool `json:"forceCommonLabels,omitempty" protobuf:"bytes,7,opt,name=forceCommonLabels"`
// ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps
ForceCommonAnnotations bool `json:"forceCommonAnnotations,omitempty" protobuf:"bytes,8,opt,name=forceCommonAnnotations"`
}
ApplicationSourceKustomize holds options specific to an Application source specific to Kustomize
func (*ApplicationSourceKustomize) DeepCopy ¶
func (in *ApplicationSourceKustomize) DeepCopy() *ApplicationSourceKustomize
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourceKustomize.
func (*ApplicationSourceKustomize) DeepCopyInto ¶
func (in *ApplicationSourceKustomize) DeepCopyInto(out *ApplicationSourceKustomize)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSourcePlugin ¶
type ApplicationSourcePlugin struct {
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
Env `json:"env,omitempty" protobuf:"bytes,2,opt,name=env"`
}
ApplicationSourcePlugin holds options specific to config management plugins
func (*ApplicationSourcePlugin) DeepCopy ¶
func (in *ApplicationSourcePlugin) DeepCopy() *ApplicationSourcePlugin
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSourcePlugin.
func (*ApplicationSourcePlugin) DeepCopyInto ¶
func (in *ApplicationSourcePlugin) DeepCopyInto(out *ApplicationSourcePlugin)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSpec ¶
type ApplicationSpec struct {
// Source is a reference to the location of the application's manifests or chart
Source ApplicationSource `json:"source" protobuf:"bytes,1,opt,name=source"`
// Destination is a reference to the target Kubernetes server and namespace
Destination ApplicationDestination `json:"destination" protobuf:"bytes,2,name=destination"`
// Project is a reference to the project this application belongs to.
// The empty string means that application belongs to the 'default' project.
Project string `json:"project" protobuf:"bytes,3,name=project"`
// SyncPolicy controls when and how a sync will be performed
SyncPolicy *SyncPolicy `json:"syncPolicy,omitempty" protobuf:"bytes,4,name=syncPolicy"`
// IgnoreDifferences is a list of resources and their fields which should be ignored during comparison
IgnoreDifferences []ResourceIgnoreDifferences `json:"ignoreDifferences,omitempty" protobuf:"bytes,5,name=ignoreDifferences"`
// Info contains a list of information (URLs, email addresses, and plain text) that relates to the application
Info []Info `json:"info,omitempty" protobuf:"bytes,6,name=info"`
// RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for informational purposes as well as for rollbacks to previous versions.
// This should only be changed in exceptional circumstances.
// Setting to zero will store no history. This will reduce storage used.
// Increasing will increase the space used to store the history, so we do not recommend increasing it.
// Default is 10.
RevisionHistoryLimit *int64 `json:"revisionHistoryLimit,omitempty" protobuf:"bytes,7,name=revisionHistoryLimit"`
}
ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision.
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationStatus ¶
type ApplicationStatus struct {
// Status contains the result of reconciliation
// +optional
Status ApplicationReconciliationStatus `json:"status,omitempty"`
// Error show detailed error message if reconciliation fails
// +optional
Error string `json:"error,omitempty"`
}
ApplicationStatus contains status information for the application
func (*ApplicationStatus) DeepCopy ¶
func (in *ApplicationStatus) DeepCopy() *ApplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationStatus.
func (*ApplicationStatus) DeepCopyInto ¶
func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArgoApplication ¶
type ArgoApplication struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" mapstructure:",squash"`
Spec ApplicationSpec `json:"spec,omitempty"`
Status ApplicationStatus `json:"status,omitempty"`
}
ArgoApplication is the Schema for the argoapplications API
func (*ArgoApplication) DeepCopy ¶
func (in *ArgoApplication) DeepCopy() *ArgoApplication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoApplication.
func (*ArgoApplication) DeepCopyInto ¶
func (in *ArgoApplication) DeepCopyInto(out *ArgoApplication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArgoApplication) DeepCopyObject ¶
func (in *ArgoApplication) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArgoApplicationList ¶
type ArgoApplicationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ArgoApplication `json:"items"`
}
ArgoApplicationList contains a list of ArgoApplication
func (*ArgoApplicationList) DeepCopy ¶
func (in *ArgoApplicationList) DeepCopy() *ArgoApplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoApplicationList.
func (*ArgoApplicationList) DeepCopyInto ¶
func (in *ArgoApplicationList) DeepCopyInto(out *ArgoApplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArgoApplicationList) DeepCopyObject ¶
func (in *ArgoApplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Backoff ¶
type Backoff struct {
// Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h")
Duration string `json:"duration,omitempty" protobuf:"bytes,1,opt,name=duration"`
// Factor is a factor to multiply the base duration after each failed retry
Factor *int64 `json:"factor,omitempty" protobuf:"bytes,2,name=factor"`
// MaxDuration is the maximum amount of time allowed for the backoff strategy
MaxDuration string `json:"maxDuration,omitempty" protobuf:"bytes,3,opt,name=maxDuration"`
}
Backoff is the backoff strategy to use on subsequent retries for failing syncs
func (*Backoff) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backoff.
func (*Backoff) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Env ¶
type Env []*EnvEntry
Env is a list of environment variable entries
func (Env) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Env.
func (Env) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvEntry ¶
type EnvEntry struct {
// Name is the name of the variable, usually expressed in uppercase
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Value is the value of the variable
Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}
EnvEntry represents an entry in the application's environment
func (*EnvEntry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvEntry.
func (*EnvEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmFileParameter ¶
type HelmFileParameter struct {
// Name is the name of the Helm parameter
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// Path is the path to the file containing the values for the Helm parameter
Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"`
}
HelmFileParameter is a file parameter that's passed to helm template during manifest generation
func (*HelmFileParameter) DeepCopy ¶
func (in *HelmFileParameter) DeepCopy() *HelmFileParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmFileParameter.
func (*HelmFileParameter) DeepCopyInto ¶
func (in *HelmFileParameter) DeepCopyInto(out *HelmFileParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmParameter ¶
type HelmParameter struct {
// Name is the name of the Helm parameter
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// Value is the value for the Helm parameter
Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
// ForceString determines whether to tell Helm to interpret booleans and numbers as strings
ForceString bool `json:"forceString,omitempty" protobuf:"bytes,3,opt,name=forceString"`
}
HelmParameter is a parameter that's passed to helm template during manifest generation
func (*HelmParameter) DeepCopy ¶
func (in *HelmParameter) DeepCopy() *HelmParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmParameter.
func (*HelmParameter) DeepCopyInto ¶
func (in *HelmParameter) DeepCopyInto(out *HelmParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Info ¶
type Info struct {
Name string `json:"name" protobuf:"bytes,1,name=name"`
Value string `json:"value" protobuf:"bytes,2,name=value"`
}
func (*Info) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Info.
func (*Info) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JsonnetVar ¶
type JsonnetVar struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
Code bool `json:"code,omitempty" protobuf:"bytes,3,opt,name=code"`
}
JsonnetVar represents a variable to be passed to jsonnet during manifest generation
func (*JsonnetVar) DeepCopy ¶
func (in *JsonnetVar) DeepCopy() *JsonnetVar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JsonnetVar.
func (*JsonnetVar) DeepCopyInto ¶
func (in *JsonnetVar) DeepCopyInto(out *JsonnetVar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KustomizeImage ¶
type KustomizeImage string
KustomizeImage represents a Kustomize image definition in the format [old_image_name=]<image_name>:<image_tag>
type KustomizeImages ¶
type KustomizeImages []KustomizeImage
KustomizeImages is a list of Kustomize images
func (KustomizeImages) DeepCopy ¶
func (in KustomizeImages) DeepCopy() KustomizeImages
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KustomizeImages.
func (KustomizeImages) DeepCopyInto ¶
func (in KustomizeImages) DeepCopyInto(out *KustomizeImages)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceIgnoreDifferences ¶
type ResourceIgnoreDifferences struct {
Group string `json:"group,omitempty" protobuf:"bytes,1,opt,name=group"`
Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"`
JSONPointers []string `json:"jsonPointers,omitempty" protobuf:"bytes,5,opt,name=jsonPointers"`
JQPathExpressions []string `json:"jqPathExpressions,omitempty" protobuf:"bytes,6,opt,name=jqPathExpressions"`
// ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the
// desired state defined in the SCM and won't be displayed in diffs
ManagedFieldsManagers []string `json:"managedFieldsManagers,omitempty" protobuf:"bytes,7,opt,name=managedFieldsManagers"`
}
ResourceIgnoreDifferences contains resource filter and list of json paths which should be ignored during comparison with live state.
func (*ResourceIgnoreDifferences) DeepCopy ¶
func (in *ResourceIgnoreDifferences) DeepCopy() *ResourceIgnoreDifferences
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceIgnoreDifferences.
func (*ResourceIgnoreDifferences) DeepCopyInto ¶
func (in *ResourceIgnoreDifferences) DeepCopyInto(out *ResourceIgnoreDifferences)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RetryStrategy ¶
type RetryStrategy struct {
// Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed.
Limit int64 `json:"limit,omitempty" protobuf:"bytes,1,opt,name=limit"`
// Backoff controls how to backoff on subsequent retries of failed syncs
Backoff *Backoff `json:"backoff,omitempty" protobuf:"bytes,2,opt,name=backoff,casttype=Backoff"`
}
RetryStrategy contains information about the strategy to apply when a sync failed
func (*RetryStrategy) DeepCopy ¶
func (in *RetryStrategy) DeepCopy() *RetryStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryStrategy.
func (*RetryStrategy) DeepCopyInto ¶
func (in *RetryStrategy) DeepCopyInto(out *RetryStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncOptions ¶
type SyncOptions []string
func (SyncOptions) DeepCopy ¶
func (in SyncOptions) DeepCopy() SyncOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncOptions.
func (SyncOptions) DeepCopyInto ¶
func (in SyncOptions) DeepCopyInto(out *SyncOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncPolicy ¶
type SyncPolicy struct {
// Automated will keep an application synced to the target revision
Automated *SyncPolicyAutomated `json:"automated,omitempty" protobuf:"bytes,1,opt,name=automated"`
// Options allow you to specify whole app sync-options
SyncOptions SyncOptions `json:"syncOptions,omitempty" protobuf:"bytes,2,opt,name=syncOptions"`
// Retry controls failed sync retry behavior
Retry *RetryStrategy `json:"retry,omitempty" protobuf:"bytes,3,opt,name=retry"`
}
SyncPolicy controls when a sync will be performed in response to updates in git
func (*SyncPolicy) DeepCopy ¶
func (in *SyncPolicy) DeepCopy() *SyncPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncPolicy.
func (*SyncPolicy) DeepCopyInto ¶
func (in *SyncPolicy) DeepCopyInto(out *SyncPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncPolicyAutomated ¶
type SyncPolicyAutomated struct {
// Prune specifies whether to delete resources from the cluster that are not found in the sources anymore as part of automated sync (default: false)
Prune bool `json:"prune,omitempty" protobuf:"bytes,1,opt,name=prune"`
// SelfHeal specifies whether to revert resources back to their desired state upon modification in the cluster (default: false)
SelfHeal bool `json:"selfHeal,omitempty" protobuf:"bytes,2,opt,name=selfHeal"`
// AllowEmpty allows apps have zero live resources (default: false)
AllowEmpty bool `json:"allowEmpty,omitempty" protobuf:"bytes,3,opt,name=allowEmpty"`
}
SyncPolicyAutomated controls the behavior of an automated sync
func (*SyncPolicyAutomated) DeepCopy ¶
func (in *SyncPolicyAutomated) DeepCopy() *SyncPolicyAutomated
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncPolicyAutomated.
func (*SyncPolicyAutomated) DeepCopyInto ¶
func (in *SyncPolicyAutomated) DeepCopyInto(out *SyncPolicyAutomated)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.