Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the fluxcd v1 API group +kubebuilder:object:generate=true +groupName=fluxcd.controlplane.io
Index ¶
- Constants
- Variables
- type Cluster
- type CommonMetadata
- type Component
- type ComponentImage
- type Dependency
- type Distribution
- type FluxComponentStatus
- type FluxDistributionStatus
- type FluxInstance
- func (in *FluxInstance) DeepCopy() *FluxInstance
- func (in *FluxInstance) DeepCopyInto(out *FluxInstance)
- func (in *FluxInstance) DeepCopyObject() runtime.Object
- func (in *FluxInstance) GetArtifactInterval() time.Duration
- func (in *FluxInstance) GetCluster() Cluster
- func (in *FluxInstance) GetComponents() []string
- func (in *FluxInstance) GetConditions() []metav1.Condition
- func (in *FluxInstance) GetDistribution() Distribution
- func (in *FluxInstance) GetInterval() time.Duration
- func (in *FluxInstance) GetMigrateResources() bool
- func (in *FluxInstance) GetTimeout() time.Duration
- func (in *FluxInstance) GetWait() bool
- func (in *FluxInstance) IsDisabled() bool
- func (in *FluxInstance) SetConditions(conditions []metav1.Condition)
- type FluxInstanceList
- type FluxInstanceSpec
- type FluxInstanceStatus
- type FluxReconcilerStats
- type FluxReconcilerStatus
- type FluxReport
- func (in *FluxReport) DeepCopy() *FluxReport
- func (in *FluxReport) DeepCopyInto(out *FluxReport)
- func (in *FluxReport) DeepCopyObject() runtime.Object
- func (in *FluxReport) GetConditions() []metav1.Condition
- func (in *FluxReport) GetInterval() time.Duration
- func (in *FluxReport) IsDisabled() bool
- func (in *FluxReport) SetConditions(conditions []metav1.Condition)
- type FluxReportList
- type FluxReportSpec
- type FluxReportStatus
- type FluxSyncStatus
- type InputProvider
- type InputProviderReference
- type Kustomize
- type ResourceInventory
- type ResourceRef
- type ResourceSet
- func (in *ResourceSet) DeepCopy() *ResourceSet
- func (in *ResourceSet) DeepCopyInto(out *ResourceSet)
- func (in *ResourceSet) DeepCopyObject() runtime.Object
- func (in *ResourceSet) GetConditions() []metav1.Condition
- func (in *ResourceSet) GetInputs() ([]map[string]any, error)
- func (in *ResourceSet) GetInterval() time.Duration
- func (in *ResourceSet) GetTimeout() time.Duration
- func (in *ResourceSet) IsDisabled() bool
- func (in *ResourceSet) SetConditions(conditions []metav1.Condition)
- type ResourceSetInput
- type ResourceSetInputFilter
- type ResourceSetInputProvider
- func (in *ResourceSetInputProvider) DeepCopy() *ResourceSetInputProvider
- func (in *ResourceSetInputProvider) DeepCopyInto(out *ResourceSetInputProvider)
- func (in *ResourceSetInputProvider) DeepCopyObject() runtime.Object
- func (in *ResourceSetInputProvider) GetConditions() []metav1.Condition
- func (in *ResourceSetInputProvider) GetDefaultInputs() (map[string]any, error)
- func (in *ResourceSetInputProvider) GetInputs() ([]map[string]any, error)
- func (in *ResourceSetInputProvider) GetInterval() time.Duration
- func (in *ResourceSetInputProvider) GetTimeout() time.Duration
- func (in *ResourceSetInputProvider) IsDisabled() bool
- func (in *ResourceSetInputProvider) SetConditions(conditions []metav1.Condition)
- type ResourceSetInputProviderList
- type ResourceSetInputProviderSpec
- type ResourceSetInputProviderStatus
- type ResourceSetList
- type ResourceSetSpec
- type ResourceSetStatus
- type Sharding
- type Storage
- type Sync
Constants ¶
const ( EnabledValue = "enabled" DisabledValue = "disabled" ReconciliationDisabledReason = "ReconciliationDisabled" ReconciliationDisabledMessage = "Reconciliation is disabled" )
const ( DefaultInstanceName = "flux" DefaultNamespace = "flux-system" FluxInstanceKind = "FluxInstance" OutdatedReason = "OutdatedVersion" )
const ( FluxReportKind = "FluxReport" ReportIntervalEvnKey = "REPORTING_INTERVAL" )
const ( ResourceSetInputProviderKind = "ResourceSetInputProvider" InputProviderGitHubBranch = "GitHubBranch" InputProviderGitHubPullRequest = "GitHubPullRequest" InputProviderGitLabBranch = "GitLabBranch" InputProviderGitLabMergeRequest = "GitLabMergeRequest" )
const (
ResourceSetKind = "ResourceSet"
)
Variables ¶
var ( Finalizer = fmt.Sprintf("%s/finalizer", GroupVersion.Group) ReconcileAnnotation = fmt.Sprintf("%s/reconcile", GroupVersion.Group) ReconcileEveryAnnotation = fmt.Sprintf("%s/reconcileEvery", GroupVersion.Group) ReconcileArtifactEveryAnnotation = fmt.Sprintf("%s/reconcileArtifactEvery", GroupVersion.Group) ReconcileTimeoutAnnotation = fmt.Sprintf("%s/reconcileTimeout", GroupVersion.Group) PruneAnnotation = fmt.Sprintf("%s/prune", GroupVersion.Group) RevisionAnnotation = fmt.Sprintf("%s/revision", GroupVersion.Group) CopyFromAnnotation = fmt.Sprintf("%s/copyFrom", GroupVersion.Group) )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "fluxcd.controlplane.io", Version: "v1"} // 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 Cluster ¶
type Cluster struct { // Domain is the cluster domain used for generating the FQDN of services. // Defaults to 'cluster.local'. // +kubebuilder:default:=cluster.local // +required Domain string `json:"domain"` // Multitenant enables the multitenancy lockdown. // +optional Multitenant bool `json:"multitenant,omitempty"` // TenantDefaultServiceAccount is the name of the service account // to use as default when the multitenant lockdown is enabled. // Defaults to the 'default' service account from the tenant namespace. // +optional TenantDefaultServiceAccount string `json:"tenantDefaultServiceAccount,omitempty"` // NetworkPolicy restricts network access to the current namespace. // Defaults to true. // +kubebuilder:default:=true // +required NetworkPolicy bool `json:"networkPolicy"` // Type specifies the distro of the Kubernetes cluster. // Defaults to 'kubernetes'. // +kubebuilder:validation:Enum:=kubernetes;openshift;aws;azure;gcp // +kubebuilder:default:=kubernetes // +optional Type string `json:"type,omitempty"` }
Cluster is the specification for the Kubernetes cluster.
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommonMetadata ¶ added in v0.11.0
type CommonMetadata struct { // Annotations to be added to the object's metadata. // +optional Annotations map[string]string `json:"annotations,omitempty"` // Labels to be added to the object's metadata. // +optional Labels map[string]string `json:"labels,omitempty"` }
CommonMetadata defines the common labels and annotations.
func (*CommonMetadata) DeepCopy ¶ added in v0.11.0
func (in *CommonMetadata) DeepCopy() *CommonMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonMetadata.
func (*CommonMetadata) DeepCopyInto ¶ added in v0.11.0
func (in *CommonMetadata) DeepCopyInto(out *CommonMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Component ¶
type Component string
Component is the name of a controller to install. +kubebuilder:validation:Enum:=source-controller;kustomize-controller;helm-controller;notification-controller;image-reflector-controller;image-automation-controller
type ComponentImage ¶ added in v0.1.0
type ComponentImage struct { // Name of the component. // +required Name string `json:"name"` // Repository address of the container image. // +required Repository string `json:"repository"` // Tag of the container image. // +required Tag string `json:"tag"` // Digest of the container image. // +optional Digest string `json:"digest,omitempty"` }
ComponentImage represents a container image used by a component.
func (*ComponentImage) DeepCopy ¶ added in v0.1.0
func (in *ComponentImage) DeepCopy() *ComponentImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentImage.
func (*ComponentImage) DeepCopyInto ¶ added in v0.1.0
func (in *ComponentImage) DeepCopyInto(out *ComponentImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Dependency ¶ added in v0.14.0
type Dependency struct { // APIVersion of the resource to depend on. // +required APIVersion string `json:"apiVersion"` // Kind of the resource to depend on. // +required Kind string `json:"kind"` // Name of the resource to depend on. // +required Name string `json:"name"` // Namespace of the resource to depend on. // +optional Namespace string `json:"namespace,omitempty"` // Ready checks if the resource Ready status condition is true. // +optional Ready bool `json:"ready,omitempty"` // ReadyExpr checks if the resource satisfies the given CEL expression. // The expression replaces the default readiness check and // is only evaluated if Ready is set to 'true'. // +optional ReadyExpr string `json:"readyExpr,omitempty"` }
Dependency defines a ResourceSet dependency on a Kubernetes resource.
func (*Dependency) DeepCopy ¶ added in v0.14.0
func (in *Dependency) DeepCopy() *Dependency
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dependency.
func (*Dependency) DeepCopyInto ¶ added in v0.14.0
func (in *Dependency) DeepCopyInto(out *Dependency)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Distribution ¶
type Distribution struct { // Version semver expression e.g. '2.x', '2.3.x'. // +required Version string `json:"version"` // Registry address to pull the distribution images from // e.g. 'ghcr.io/fluxcd'. // +required Registry string `json:"registry"` // ImagePullSecret is the name of the Kubernetes secret // to use for pulling images. // +optional ImagePullSecret string `json:"imagePullSecret,omitempty"` // Artifact is the URL to the OCI artifact containing // the latest Kubernetes manifests for the distribution, // e.g. 'oci://ghcr.io/controlplaneio-fluxcd/flux-operator-manifests:latest'. // +kubebuilder:validation:Pattern="^oci://.*$" // +optional Artifact string `json:"artifact,omitempty"` // ArtifactPullSecret is the name of the Kubernetes secret // to use for pulling the Kubernetes manifests for the distribution specified in the Artifact field. // +optional ArtifactPullSecret string `json:"artifactPullSecret,omitempty"` }
Distribution specifies the version and container registry to pull images from.
func (*Distribution) DeepCopy ¶
func (in *Distribution) DeepCopy() *Distribution
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Distribution.
func (*Distribution) DeepCopyInto ¶
func (in *Distribution) DeepCopyInto(out *Distribution)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxComponentStatus ¶ added in v0.6.0
type FluxComponentStatus struct { // Name is the name of the Flux component. // +required Name string `json:"name"` // Ready is the readiness status of the Flux component. // +required Ready bool `json:"ready"` // Status is a human-readable message indicating details // about the Flux component observed state. // +required Status string `json:"status"` // Image is the container image of the Flux component. // +required Image string `json:"image"` }
FluxComponentStatus defines the observed state of a Flux component.
func (*FluxComponentStatus) DeepCopy ¶ added in v0.6.0
func (in *FluxComponentStatus) DeepCopy() *FluxComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxComponentStatus.
func (*FluxComponentStatus) DeepCopyInto ¶ added in v0.6.0
func (in *FluxComponentStatus) DeepCopyInto(out *FluxComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxDistributionStatus ¶ added in v0.6.0
type FluxDistributionStatus struct { // Entitlement is the entitlement verification status. // +required Entitlement string `json:"entitlement"` // Status is a human-readable message indicating details // about the distribution observed state. // +required Status string `json:"status"` // Version is the version of the Flux instance. // +optional Version string `json:"version,omitempty"` // ManagedBy is the name of the operator managing the Flux instance. // +optional ManagedBy string `json:"managedBy,omitempty"` }
FluxDistributionStatus defines the version information of the Flux instance.
func (*FluxDistributionStatus) DeepCopy ¶ added in v0.6.0
func (in *FluxDistributionStatus) DeepCopy() *FluxDistributionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxDistributionStatus.
func (*FluxDistributionStatus) DeepCopyInto ¶ added in v0.6.0
func (in *FluxDistributionStatus) DeepCopyInto(out *FluxDistributionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxInstance ¶
type FluxInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FluxInstanceSpec `json:"spec,omitempty"` Status FluxInstanceStatus `json:"status,omitempty"` }
FluxInstance is the Schema for the fluxinstances API
func (*FluxInstance) DeepCopy ¶
func (in *FluxInstance) DeepCopy() *FluxInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxInstance.
func (*FluxInstance) DeepCopyInto ¶
func (in *FluxInstance) DeepCopyInto(out *FluxInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluxInstance) DeepCopyObject ¶
func (in *FluxInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FluxInstance) GetArtifactInterval ¶ added in v0.12.0
func (in *FluxInstance) GetArtifactInterval() time.Duration
GetArtifactInterval returns the interval at which the distribution artifact should be reconciled. If no interval is set, the default is 10 minutes.
func (*FluxInstance) GetCluster ¶
func (in *FluxInstance) GetCluster() Cluster
GetCluster returns the cluster specification with defaults.
func (*FluxInstance) GetComponents ¶
func (in *FluxInstance) GetComponents() []string
GetComponents returns the components to install with defaults.
func (*FluxInstance) GetConditions ¶
func (in *FluxInstance) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*FluxInstance) GetDistribution ¶
func (in *FluxInstance) GetDistribution() Distribution
GetDistribution returns the distribution specification with defaults.
func (*FluxInstance) GetInterval ¶
func (in *FluxInstance) GetInterval() time.Duration
GetInterval returns the interval at which the object should be reconciled. If no interval is set, the default is 60 minutes.
func (*FluxInstance) GetMigrateResources ¶ added in v0.10.0
func (in *FluxInstance) GetMigrateResources() bool
GetMigrateResources returns the migration configuration with defaults.
func (*FluxInstance) GetTimeout ¶
func (in *FluxInstance) GetTimeout() time.Duration
GetTimeout returns the timeout for the reconciliation process. If no timeout is set, the default is 5 minutes.
func (*FluxInstance) GetWait ¶ added in v0.10.0
func (in *FluxInstance) GetWait() bool
GetWait returns the wait configuration with defaults.
func (*FluxInstance) IsDisabled ¶ added in v0.3.0
func (in *FluxInstance) IsDisabled() bool
IsDisabled returns true if the object has the reconcile annotation set to 'disabled'.
func (*FluxInstance) SetConditions ¶
func (in *FluxInstance) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type FluxInstanceList ¶
type FluxInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FluxInstance `json:"items"` }
FluxInstanceList contains a list of FluxInstance
func (*FluxInstanceList) DeepCopy ¶
func (in *FluxInstanceList) DeepCopy() *FluxInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxInstanceList.
func (*FluxInstanceList) DeepCopyInto ¶
func (in *FluxInstanceList) DeepCopyInto(out *FluxInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluxInstanceList) DeepCopyObject ¶
func (in *FluxInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluxInstanceSpec ¶
type FluxInstanceSpec struct { // Distribution specifies the version and container registry to pull images from. // +required Distribution Distribution `json:"distribution"` // Components is the list of controllers to install. // Defaults to all controllers. // +optional Components []Component `json:"components,omitempty"` // CommonMetadata specifies the common labels and annotations that are // applied to all resources. Any existing label or annotation will be // overridden if its key matches a common one. // +optional CommonMetadata *CommonMetadata `json:"commonMetadata,omitempty"` // Cluster holds the specification of the Kubernetes cluster. // +optional Cluster *Cluster `json:"cluster,omitempty"` // Sharding holds the specification of the sharding configuration. // +optional Sharding *Sharding `json:"sharding,omitempty"` // Storage holds the specification of the source-controller // persistent volume claim. // +optional Storage *Storage `json:"storage,omitempty"` // Kustomize holds a set of patches that can be applied to the // Flux installation, to customize the way Flux operates. // +optional Kustomize *Kustomize `json:"kustomize,omitempty"` // Wait instructs the controller to check the health of all the reconciled // resources. Defaults to true. // +kubebuilder:default:=true // +optional Wait *bool `json:"wait,omitempty"` // MigrateResources instructs the controller to migrate the Flux custom resources // from the previous version to the latest API version specified in the CRD. // Defaults to true. // +kubebuilder:default:=true // +optional MigrateResources *bool `json:"migrateResources,omitempty"` // Sync specifies the source for the cluster sync operation. // When set, a Flux source (GitRepository, OCIRepository or Bucket) // and Flux Kustomization are created to sync the cluster state // with the source repository. // +optional Sync *Sync `json:"sync,omitempty"` }
FluxInstanceSpec defines the desired state of FluxInstance
func (*FluxInstanceSpec) DeepCopy ¶
func (in *FluxInstanceSpec) DeepCopy() *FluxInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxInstanceSpec.
func (*FluxInstanceSpec) DeepCopyInto ¶
func (in *FluxInstanceSpec) DeepCopyInto(out *FluxInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxInstanceStatus ¶
type FluxInstanceStatus struct { meta.ReconcileRequestStatus `json:",inline"` // Conditions contains the readiness conditions of the object. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // LastAttemptedRevision is the version and digest of the // distribution config that was last attempted to reconcile. // +optional LastAttemptedRevision string `json:"lastAttemptedRevision,omitempty"` // LastAppliedRevision is the version and digest of the // distribution config that was last reconcile. // +optional LastAppliedRevision string `json:"lastAppliedRevision,omitempty"` // LastArtifactRevision is the digest of the last pulled // distribution artifact. // +optional LastArtifactRevision string `json:"lastArtifactRevision,omitempty"` // Components contains the container images used by the components. // +optional Components []ComponentImage `json:"components,omitempty"` // Inventory contains a list of Kubernetes resource object references // last applied on the cluster. // +optional Inventory *ResourceInventory `json:"inventory,omitempty"` }
FluxInstanceStatus defines the observed state of FluxInstance
func (*FluxInstanceStatus) DeepCopy ¶
func (in *FluxInstanceStatus) DeepCopy() *FluxInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxInstanceStatus.
func (*FluxInstanceStatus) DeepCopyInto ¶
func (in *FluxInstanceStatus) DeepCopyInto(out *FluxInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxReconcilerStats ¶ added in v0.6.0
type FluxReconcilerStats struct { // Running is the number of reconciled // resources in the Running state. // +required Running int `json:"running"` // Failing is the number of reconciled // resources in the Failing state. // +required Failing int `json:"failing"` // Suspended is the number of reconciled // resources in the Suspended state. // +required Suspended int `json:"suspended"` // TotalSize is the total size of the artifacts in storage. // +optional TotalSize string `json:"totalSize,omitempty"` }
FluxReconcilerStats defines the reconcile statistics.
func (*FluxReconcilerStats) DeepCopy ¶ added in v0.6.0
func (in *FluxReconcilerStats) DeepCopy() *FluxReconcilerStats
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReconcilerStats.
func (*FluxReconcilerStats) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReconcilerStats) DeepCopyInto(out *FluxReconcilerStats)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxReconcilerStatus ¶ added in v0.6.0
type FluxReconcilerStatus struct { // APIVersion is the API version of the Flux resource. // +required APIVersion string `json:"apiVersion"` // Kind is the kind of the Flux resource. // +required Kind string `json:"kind"` // Stats is the reconcile statics of the Flux resource kind. // +optional Stats FluxReconcilerStats `json:"stats,omitempty"` }
FluxReconcilerStatus defines the observed state of a Flux reconciler.
func (*FluxReconcilerStatus) DeepCopy ¶ added in v0.6.0
func (in *FluxReconcilerStatus) DeepCopy() *FluxReconcilerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReconcilerStatus.
func (*FluxReconcilerStatus) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReconcilerStatus) DeepCopyInto(out *FluxReconcilerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxReport ¶ added in v0.6.0
type FluxReport struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FluxReportSpec `json:"spec,omitempty"` Status FluxReportStatus `json:"status,omitempty"` }
FluxReport is the Schema for the fluxreports API.
func (*FluxReport) DeepCopy ¶ added in v0.6.0
func (in *FluxReport) DeepCopy() *FluxReport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReport.
func (*FluxReport) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReport) DeepCopyInto(out *FluxReport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluxReport) DeepCopyObject ¶ added in v0.6.0
func (in *FluxReport) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FluxReport) GetConditions ¶ added in v0.6.0
func (in *FluxReport) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*FluxReport) GetInterval ¶ added in v0.6.0
func (in *FluxReport) GetInterval() time.Duration
GetInterval returns the interval at which the object should be reconciled. If the annotation is not set, the interval is read from the REPORTING_INTERVAL environment variable. If the variable is not set, the default interval is 5 minutes.
func (*FluxReport) IsDisabled ¶ added in v0.6.0
func (in *FluxReport) IsDisabled() bool
IsDisabled returns true if the object has the reconcile annotation set to 'disabled'.
func (*FluxReport) SetConditions ¶ added in v0.6.0
func (in *FluxReport) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type FluxReportList ¶ added in v0.6.0
type FluxReportList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FluxReport `json:"items"` }
FluxReportList contains a list of FluxReport.
func (*FluxReportList) DeepCopy ¶ added in v0.6.0
func (in *FluxReportList) DeepCopy() *FluxReportList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReportList.
func (*FluxReportList) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReportList) DeepCopyInto(out *FluxReportList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluxReportList) DeepCopyObject ¶ added in v0.6.0
func (in *FluxReportList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluxReportSpec ¶ added in v0.6.0
type FluxReportSpec struct { // Distribution is the version information of the Flux installation. // +required Distribution FluxDistributionStatus `json:"distribution"` // ComponentsStatus is the status of the Flux controller deployments. // +optional ComponentsStatus []FluxComponentStatus `json:"components,omitempty"` // ReconcilersStatus is the list of Flux reconcilers and // their statistics grouped by API kind. // +optional ReconcilersStatus []FluxReconcilerStatus `json:"reconcilers,omitempty"` // SyncStatus is the status of the cluster sync // Source and Kustomization resources. // +optional SyncStatus *FluxSyncStatus `json:"sync,omitempty"` }
FluxReportSpec defines the observed state of a Flux installation.
func (*FluxReportSpec) DeepCopy ¶ added in v0.6.0
func (in *FluxReportSpec) DeepCopy() *FluxReportSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReportSpec.
func (*FluxReportSpec) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReportSpec) DeepCopyInto(out *FluxReportSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxReportStatus ¶ added in v0.6.0
type FluxReportStatus struct { meta.ReconcileRequestStatus `json:",inline"` // Conditions contains the readiness conditions of the object. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` }
FluxReportStatus defines the readiness of a FluxReport.
func (*FluxReportStatus) DeepCopy ¶ added in v0.6.0
func (in *FluxReportStatus) DeepCopy() *FluxReportStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxReportStatus.
func (*FluxReportStatus) DeepCopyInto ¶ added in v0.6.0
func (in *FluxReportStatus) DeepCopyInto(out *FluxReportStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxSyncStatus ¶ added in v0.6.0
type FluxSyncStatus struct { // ID is the identifier of the sync. // +required ID string `json:"id"` // Path is the kustomize path of the sync. // +optional Path string `json:"path,omitempty"` // Ready is the readiness status of the sync. // +required Ready bool `json:"ready"` // Status is a human-readable message indicating details // about the sync observed state. // +required Status string `json:"status"` // Source is the URL of the source repository. // +optional Source string `json:"source,omitempty"` }
FluxSyncStatus defines the observed state of the cluster sync.
func (*FluxSyncStatus) DeepCopy ¶ added in v0.6.0
func (in *FluxSyncStatus) DeepCopy() *FluxSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxSyncStatus.
func (*FluxSyncStatus) DeepCopyInto ¶ added in v0.6.0
func (in *FluxSyncStatus) DeepCopyInto(out *FluxSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InputProvider ¶ added in v0.14.0
type InputProvider interface { GetInputs() ([]map[string]any, error) GetNamespace() string GetName() string GroupVersionKind() schema.GroupVersionKind }
InputProvider is the interface that the ResourceSet input providers must implement.
+k8s:deepcopy-gen=false
type InputProviderReference ¶ added in v0.14.0
type InputProviderReference struct { // APIVersion of the input provider resource. // When not set, the APIVersion of the ResourceSet is used. // +optional APIVersion string `json:"apiVersion,omitempty"` // Kind of the input provider resource. // +kubebuilder:validation:Enum=ResourceSetInputProvider // +required Kind string `json:"kind"` // Name of the input provider resource. // +required Name string `json:"name"` }
func (*InputProviderReference) DeepCopy ¶ added in v0.14.0
func (in *InputProviderReference) DeepCopy() *InputProviderReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InputProviderReference.
func (*InputProviderReference) DeepCopyInto ¶ added in v0.14.0
func (in *InputProviderReference) DeepCopyInto(out *InputProviderReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Kustomize ¶
type Kustomize struct { // Strategic merge and JSON patches, defined as inline YAML objects, // capable of targeting objects based on kind, label and annotation selectors. // +optional Patches []kustomize.Patch `json:"patches,omitempty"` }
Kustomize holds a set of patches that can be applied to the Flux installation, to customize the way Flux operates.
func (*Kustomize) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kustomize.
func (*Kustomize) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceInventory ¶
type ResourceInventory struct { // Entries of Kubernetes resource object references. Entries []ResourceRef `json:"entries"` }
ResourceInventory contains a list of Kubernetes resource object references that have been applied.
func (*ResourceInventory) DeepCopy ¶
func (in *ResourceInventory) DeepCopy() *ResourceInventory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInventory.
func (*ResourceInventory) DeepCopyInto ¶
func (in *ResourceInventory) DeepCopyInto(out *ResourceInventory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRef ¶
type ResourceRef struct { // ID is the string representation of the Kubernetes resource object's metadata, // in the format '<namespace>_<name>_<group>_<kind>'. ID string `json:"id"` // Version is the API version of the Kubernetes resource object's kind. Version string `json:"v"` }
ResourceRef contains the information necessary to locate a resource within a cluster.
func (*ResourceRef) DeepCopy ¶
func (in *ResourceRef) DeepCopy() *ResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.
func (*ResourceRef) DeepCopyInto ¶
func (in *ResourceRef) DeepCopyInto(out *ResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSet ¶ added in v0.14.0
type ResourceSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSetSpec `json:"spec,omitempty"` Status ResourceSetStatus `json:"status,omitempty"` }
ResourceSet is the Schema for the ResourceSets API.
func (*ResourceSet) DeepCopy ¶ added in v0.14.0
func (in *ResourceSet) DeepCopy() *ResourceSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSet.
func (*ResourceSet) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSet) DeepCopyInto(out *ResourceSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSet) DeepCopyObject ¶ added in v0.14.0
func (in *ResourceSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceSet) GetConditions ¶ added in v0.14.0
func (in *ResourceSet) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*ResourceSet) GetInputs ¶ added in v0.14.0
func (in *ResourceSet) GetInputs() ([]map[string]any, error)
GetInputs returns the ResourceSet in-line inputs as a list of maps.
func (*ResourceSet) GetInterval ¶ added in v0.14.0
func (in *ResourceSet) GetInterval() time.Duration
GetInterval returns the interval at which the object should be reconciled. If no interval is set, the default is 60 minutes.
func (*ResourceSet) GetTimeout ¶ added in v0.14.0
func (in *ResourceSet) GetTimeout() time.Duration
GetTimeout returns the timeout for the reconciliation process. If no timeout is set, the default is 5 minutes.
func (*ResourceSet) IsDisabled ¶ added in v0.14.0
func (in *ResourceSet) IsDisabled() bool
IsDisabled returns true if the object has the reconcile annotation set to 'disabled'.
func (*ResourceSet) SetConditions ¶ added in v0.14.0
func (in *ResourceSet) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type ResourceSetInput ¶ added in v0.14.0
type ResourceSetInput map[string]*apiextensionsv1.JSON
ResourceSetInput defines the key-value pairs of the ResourceSet input.
func (ResourceSetInput) DeepCopy ¶ added in v0.14.0
func (in ResourceSetInput) DeepCopy() ResourceSetInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInput.
func (ResourceSetInput) DeepCopyInto ¶ added in v0.14.0
func (in ResourceSetInput) DeepCopyInto(out *ResourceSetInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetInputFilter ¶ added in v0.14.0
type ResourceSetInputFilter struct { // IncludeBranch specifies the regular expression to filter the branches // that the input provider should include. // +optional IncludeBranch string `json:"includeBranch,omitempty"` // ExcludeBranch specifies the regular expression to filter the branches // that the input provider should exclude. // +optional ExcludeBranch string `json:"excludeBranch,omitempty"` // Labels specifies the list of labels to filter the input provider response. // +optional Labels []string `json:"labels,omitempty"` // Limit specifies the maximum number of input sets to return. // When not set, the default limit is 100. // +optional Limit int `json:"limit,omitempty"` }
ResourceSetInputFilter defines the filter to apply to the input provider response.
func (*ResourceSetInputFilter) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetInputFilter) DeepCopy() *ResourceSetInputFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInputFilter.
func (*ResourceSetInputFilter) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetInputFilter) DeepCopyInto(out *ResourceSetInputFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetInputProvider ¶ added in v0.14.0
type ResourceSetInputProvider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSetInputProviderSpec `json:"spec,omitempty"` Status ResourceSetInputProviderStatus `json:"status,omitempty"` }
ResourceSetInputProvider is the Schema for the ResourceSetInputProviders API.
func (*ResourceSetInputProvider) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetInputProvider) DeepCopy() *ResourceSetInputProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInputProvider.
func (*ResourceSetInputProvider) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetInputProvider) DeepCopyInto(out *ResourceSetInputProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSetInputProvider) DeepCopyObject ¶ added in v0.14.0
func (in *ResourceSetInputProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceSetInputProvider) GetConditions ¶ added in v0.14.0
func (in *ResourceSetInputProvider) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*ResourceSetInputProvider) GetDefaultInputs ¶ added in v0.14.0
func (in *ResourceSetInputProvider) GetDefaultInputs() (map[string]any, error)
GetDefaultInputs returns the ResourceSetInputProvider default inputs.
func (*ResourceSetInputProvider) GetInputs ¶ added in v0.14.0
func (in *ResourceSetInputProvider) GetInputs() ([]map[string]any, error)
GetInputs returns the exported inputs from ResourceSetInputProvider status.
func (*ResourceSetInputProvider) GetInterval ¶ added in v0.14.0
func (in *ResourceSetInputProvider) GetInterval() time.Duration
GetInterval returns the interval at which the object should be reconciled. If no interval is set, the default is 60 minutes.
func (*ResourceSetInputProvider) GetTimeout ¶ added in v0.14.0
func (in *ResourceSetInputProvider) GetTimeout() time.Duration
GetTimeout returns the timeout for the reconciliation process. If no timeout is set, the default is 5 minutes.
func (*ResourceSetInputProvider) IsDisabled ¶ added in v0.14.0
func (in *ResourceSetInputProvider) IsDisabled() bool
IsDisabled returns true if the object has the reconcile annotation set to 'disabled'.
func (*ResourceSetInputProvider) SetConditions ¶ added in v0.14.0
func (in *ResourceSetInputProvider) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type ResourceSetInputProviderList ¶ added in v0.14.0
type ResourceSetInputProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceSetInputProvider `json:"items"` }
ResourceSetInputProviderList contains a list of ResourceSetInputProvider.
func (*ResourceSetInputProviderList) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetInputProviderList) DeepCopy() *ResourceSetInputProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInputProviderList.
func (*ResourceSetInputProviderList) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetInputProviderList) DeepCopyInto(out *ResourceSetInputProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSetInputProviderList) DeepCopyObject ¶ added in v0.14.0
func (in *ResourceSetInputProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceSetInputProviderSpec ¶ added in v0.14.0
type ResourceSetInputProviderSpec struct { // Type specifies the type of the input provider. // +kubebuilder:validation:Enum=GitHubBranch;GitHubPullRequest;GitLabBranch;GitLabMergeRequest // +required Type string `json:"type"` // URL specifies the HTTP/S address of the input provider API. // When connecting to a Git provider, the URL should point to the repository address. // +kubebuilder:validation:Pattern="^(http|https)://.*$" // +required URL string `json:"url"` // SecretRef specifies the Kubernetes Secret containing the basic-auth credentials // to access the input provider. The secret must contain the keys // 'username' and 'password'. // When connecting to a Git provider, the password should be a personal access token // that grants read-only access to the repository. // +optional SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"` // CertSecretRef specifies the Kubernetes Secret containing either or both of // // - a PEM-encoded CA certificate (`ca.crt`) // - a PEM-encoded client certificate (`tls.crt`) and private key (`tls.key`) // // When connecting to a Git provider that uses self-signed certificates, the CA certificate // must be set in the Secret under the 'ca.crt' key to establish the trust relationship. // +optional CertSecretRef *meta.LocalObjectReference `json:"certSecretRef,omitempty"` // DefaultValues contains the default values for the inputs. // These values are used to populate the inputs when the provider // response does not contain them. // +optional DefaultValues ResourceSetInput `json:"defaultValues,omitempty"` // Filter defines the filter to apply to the input provider response. // +optional Filter *ResourceSetInputFilter `json:"filter,omitempty"` }
ResourceSetInputProviderSpec defines the desired state of ResourceSetInputProvider
func (*ResourceSetInputProviderSpec) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetInputProviderSpec) DeepCopy() *ResourceSetInputProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInputProviderSpec.
func (*ResourceSetInputProviderSpec) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetInputProviderSpec) DeepCopyInto(out *ResourceSetInputProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetInputProviderStatus ¶ added in v0.14.0
type ResourceSetInputProviderStatus struct { meta.ReconcileRequestStatus `json:",inline"` // Conditions contains the readiness conditions of the object. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // ExportedInputs contains the list of inputs exported by the provider. // +optional ExportedInputs []ResourceSetInput `json:"exportedInputs,omitempty"` // LastExportedRevision is the digest of the // inputs that were last reconcile. // +optional LastExportedRevision string `json:"lastExportedRevision,omitempty"` }
ResourceSetInputProviderStatus defines the observed state of ResourceSetInputProvider.
func (*ResourceSetInputProviderStatus) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetInputProviderStatus) DeepCopy() *ResourceSetInputProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetInputProviderStatus.
func (*ResourceSetInputProviderStatus) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetInputProviderStatus) DeepCopyInto(out *ResourceSetInputProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetList ¶ added in v0.14.0
type ResourceSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceSet `json:"items"` }
ResourceSetList contains a list of ResourceSet.
func (*ResourceSetList) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetList) DeepCopy() *ResourceSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetList.
func (*ResourceSetList) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetList) DeepCopyInto(out *ResourceSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSetList) DeepCopyObject ¶ added in v0.14.0
func (in *ResourceSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceSetSpec ¶ added in v0.14.0
type ResourceSetSpec struct { // CommonMetadata specifies the common labels and annotations that are // applied to all resources. Any existing label or annotation will be // overridden if its key matches a common one. // +optional CommonMetadata *CommonMetadata `json:"commonMetadata,omitempty"` // Inputs contains the list of ResourceSet inputs. // +optional Inputs []ResourceSetInput `json:"inputs,omitempty"` // InputsFrom contains the list of references to input providers. // When set, the inputs are fetched from the providers and concatenated // with the in-line inputs defined in the ResourceSet. // +optional InputsFrom []InputProviderReference `json:"inputsFrom,omitempty"` // Resources contains the list of Kubernetes resources to reconcile. // +optional Resources []*apiextensionsv1.JSON `json:"resources,omitempty"` // ResourcesTemplate is a Go template that generates the list of // Kubernetes resources to reconcile. The template is rendered // as multi-document YAML, the resources should be separated by '---'. // When both Resources and ResourcesTemplate are set, the resulting // objects are merged and deduplicated, with the ones from Resources taking precedence. // +optional ResourcesTemplate string `json:"resourcesTemplate,omitempty"` // DependsOn specifies the list of Kubernetes resources that must // exist on the cluster before the reconciliation process starts. // +optional DependsOn []Dependency `json:"dependsOn,omitempty"` // The name of the Kubernetes service account to impersonate // when reconciling the generated resources. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // Wait instructs the controller to check the health // of all the reconciled resources. // +optional Wait bool `json:"wait,omitempty"` }
ResourceSetSpec defines the desired state of ResourceSet
func (*ResourceSetSpec) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetSpec) DeepCopy() *ResourceSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetSpec.
func (*ResourceSetSpec) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetSpec) DeepCopyInto(out *ResourceSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetStatus ¶ added in v0.14.0
type ResourceSetStatus struct { meta.ReconcileRequestStatus `json:",inline"` // Conditions contains the readiness conditions of the object. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // Inventory contains a list of Kubernetes resource object references // last applied on the cluster. // +optional Inventory *ResourceInventory `json:"inventory,omitempty"` // LastAppliedRevision is the digest of the // generated resources that were last reconcile. // +optional LastAppliedRevision string `json:"lastAppliedRevision,omitempty"` }
ResourceSetStatus defines the observed state of ResourceSet.
func (*ResourceSetStatus) DeepCopy ¶ added in v0.14.0
func (in *ResourceSetStatus) DeepCopy() *ResourceSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetStatus.
func (*ResourceSetStatus) DeepCopyInto ¶ added in v0.14.0
func (in *ResourceSetStatus) DeepCopyInto(out *ResourceSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sharding ¶ added in v0.9.0
type Sharding struct { // Key is the label key used to shard the resources. // +kubebuilder:default:=sharding.fluxcd.io/key // +optional Key string `json:"key,omitempty"` // Shards is the list of shard names. // +kubebuilder:validation:MinItems=1 // +required Shards []string `json:"shards"` }
func (*Sharding) DeepCopy ¶ added in v0.9.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sharding.
func (*Sharding) DeepCopyInto ¶ added in v0.9.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Storage ¶ added in v0.2.0
type Storage struct { // Class is the storage class to use for the PVC. // +required Class string `json:"class"` // Size is the size of the PVC. // +required Size string `json:"size"` }
Storage is the specification for the persistent volume claim.
func (*Storage) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sync ¶ added in v0.4.0
type Sync struct { // Name is the name of the Flux source and kustomization resources. // When not specified, the name is set to the namespace name of the FluxInstance. // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Sync name is immutable" // +kubebuilder:validation:MaxLength=63 // +optional Name string `json:"name,omitempty"` // Interval is the time between syncs. // +kubebuilder:validation:Type=string // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$" // +kubebuilder:default:="1m" // +optional Interval *metav1.Duration `json:"interval,omitempty"` // Kind is the kind of the source. // +kubebuilder:validation:Enum=OCIRepository;GitRepository;Bucket // +required Kind string `json:"kind"` // URL is the source URL, can be a Git repository HTTP/S or SSH address, // an OCI repository address or a Bucket endpoint. // +required URL string `json:"url"` // Ref is the source reference, can be a Git ref name e.g. 'refs/heads/main', // an OCI tag e.g. 'latest' or a bucket name e.g. 'flux'. // +required Ref string `json:"ref"` // Path is the path to the source directory containing // the kustomize overlay or plain Kubernetes manifests. // +required Path string `json:"path"` // PullSecret specifies the Kubernetes Secret containing the // authentication credentials for the source. // For Git over HTTP/S sources, the secret must contain username and password fields. // For Git over SSH sources, the secret must contain known_hosts and identity fields. // For OCI sources, the secret must be of type kubernetes.io/dockerconfigjson. // For Bucket sources, the secret must contain accesskey and secretkey fields. // +optional PullSecret string `json:"pullSecret,omitempty"` // Provider specifies OIDC provider for source authentication. // For OCIRepository and Bucket the provider can be set to 'aws', 'azure' or 'gcp'. // for GitRepository the accepted value can be set to 'azure' or 'github'. // To disable OIDC authentication the provider can be set to 'generic' or left empty. // +kubebuilder:validation:Enum=generic;aws;azure;gcp;github // +optional Provider string `json:"provider,omitempty"` }
func (*Sync) DeepCopy ¶ added in v0.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sync.
func (*Sync) DeepCopyInto ¶ added in v0.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.