Documentation
¶
Index ¶
- Constants
- Variables
- func AmbiguousGithubAppIDInSecret(secretName string) status.Error
- func DeletionPropagationAnnotation(syncObj client.Object, syncKind string) status.Error
- func GitSpec(git *v1beta1.Git, syncKind string) status.Error
- func HelmNSAndDeployNS(syncKind string) status.Error
- func HelmSpec(helm *v1beta1.HelmBase, syncKind string) status.Error
- func HelmValuesConfigMapMustBeImmutable(syncKind, cmName, cmNamespace string) status.Error
- func HelmValuesFileDataKeyOrDefault(key string) string
- func HelmValuesMissingConfigMap(syncKind string, err error) status.Error
- func HelmValuesMissingConfigMapKey(syncKind, cmName, cmNamespace, dataKey string) status.Error
- func IllegalHelmChartName(syncKind string) status.Error
- func IllegalSecretRef(sourceType configsync.SourceType, syncKind string) status.Error
- func InvalidAuthType(auth configsync.AuthType) status.Error
- func InvalidGCPSAEmail(sourceType configsync.SourceType, syncKind string) status.Error
- func InvalidGitAuthType(syncKind string) status.Error
- func InvalidHelmAuthType(syncKind string) status.Error
- func InvalidOciAuthType(syncKind string) status.Error
- func InvalidReconcilerName(reconcilerName, reasons string) status.Error
- func InvalidRepoSyncNamespace() status.Error
- func InvalidRootSyncNamespace(namespace string) status.Error
- func InvalidSecretName(secretName, reasons string) status.Error
- func InvalidSourceType(syncKind string) status.Error
- func MissingGCPSAEmail(sourceType configsync.SourceType, syncKind string) status.Error
- func MissingGitRepo(syncKind string) status.Error
- func MissingGitSpec(syncKind string) status.Error
- func MissingGithubAppIDInSecret(secretName string) status.Error
- func MissingHelmChart(syncKind string) status.Error
- func MissingHelmRepo(syncKind string) status.Error
- func MissingHelmSpec(syncKind string) status.Error
- func MissingHelmValuesFileRefsName(syncKind string) status.Error
- func MissingKeyInAuthSecret(authType configsync.AuthType, key, secretName string) status.Error
- func MissingKeyInCACertSecret(caCertSecretKey, caCertSecretRefName string) status.Error
- func MissingOciImage(syncKind string) status.Error
- func MissingOciSpec(syncKind string) status.Error
- func MissingSecret(namespaceSecretName string) status.Error
- func MissingSecretRef(sourceType configsync.SourceType, syncKind string) status.Error
- func NewDeletionPropagationAnnotationError(syncKind string) status.Error
- func NoOpProxy(syncKind string) status.Error
- func OciSpec(oci *v1beta1.Oci, syncKind string) status.Error
- func OverrideResourceQuantityNegative(fieldName, syncKind string) status.Error
- func OverrideRoleRefNamespace(syncKind string) status.Error
- func OverrideSpec(override *v1beta1.OverrideSpec, syncKind string) status.Error
- func ReconcilerName(reconcilerName string) status.Error
- func RepoSyncHelmSpec(helm *v1beta1.HelmRepoSync) status.Error
- func RepoSyncMetadata(rs *v1beta1.RepoSync) status.Error
- func RepoSyncNNLengthExceeded(length int) status.Error
- func RepoSyncName(rs *v1beta1.RepoSync) status.Error
- func RepoSyncOverrideSpec(override *v1beta1.RepoSyncOverrideSpec) status.Error
- func RepoSyncSpec(spec v1beta1.RepoSyncSpec) status.Error
- func RootSyncHelmSpec(helm *v1beta1.HelmRootSync) status.Error
- func RootSyncMetadata(rs *v1beta1.RootSync) status.Error
- func RootSyncName(rs *v1beta1.RootSync) status.Error
- func RootSyncNameLengthExceeded(length int) status.Error
- func RootSyncOverrideSpec(override *v1beta1.RootSyncOverrideSpec) status.Error
- func RootSyncSpec(spec v1beta1.RootSyncSpec) status.Error
- func ValuesFileRefs(ctx context.Context, cl client.Client, syncKind, syncNamespace string, ...) status.Error
Constants ¶
const HelmValuesFileDefaultDataKey = "values.yaml"
HelmValuesFileDefaultDataKey is the default data key to use when spec.helm.valuesFileRefs.dataKey is not specified.
Variables ¶
var InvalidSyncCode = "1061"
InvalidSyncCode is the code for an invalid declared RootSync/RepoSync.
Functions ¶
func AmbiguousGithubAppIDInSecret ¶
AmbiguousGithubAppIDInSecret reports that the GithubApp app/client ID is ambiguous in a secret.
func DeletionPropagationAnnotation ¶
DeletionPropagationAnnotation returns an Error if the user-specified deletion propagation annotation is invalid.
func HelmNSAndDeployNS ¶
HelmNSAndDeployNS reports that a RootSync has both spec.helm.namespace and spec.helm.deployNamespace set, even though they are mutually exclusive
func HelmValuesConfigMapMustBeImmutable ¶
HelmValuesConfigMapMustBeImmutable reports that a referenced ConfigMap from RSync spec.helm.valuesFileRefs is not immutable.
func HelmValuesFileDataKeyOrDefault ¶
HelmValuesFileDataKeyOrDefault returns the key or the default if the key is empty.
func HelmValuesMissingConfigMap ¶
HelmValuesMissingConfigMap reports that an RSync is referencing a ConfigMap that doesn't exist.
func HelmValuesMissingConfigMapKey ¶
HelmValuesMissingConfigMapKey reports that an RSync is missing spec.helm.valuesFileRefs.valuesFile
func IllegalHelmChartName ¶
IllegalHelmChartName reports that a RootSync/RepoSync declares an invalid helm chart name.
func IllegalSecretRef ¶
func IllegalSecretRef(sourceType configsync.SourceType, syncKind string) status.Error
IllegalSecretRef reports that a RootSync/RepoSync declares an auth mode that doesn't allow SecretRefs does declare a SecretRef.
func InvalidAuthType ¶
func InvalidAuthType(auth configsync.AuthType) status.Error
InvalidAuthType reports that the auth type is invalid.
func InvalidGCPSAEmail ¶
func InvalidGCPSAEmail(sourceType configsync.SourceType, syncKind string) status.Error
InvalidGCPSAEmail reports that a RepoSync/RootSync Resource doesn't have the
correct gcp service account suffix.
func InvalidGitAuthType ¶
InvalidGitAuthType reports that a RootSync/RepoSync doesn't use one of the known auth methods.
func InvalidHelmAuthType ¶
InvalidHelmAuthType reports that a RootSync/RepoSync doesn't use one of the known auth methods for Helm.
func InvalidOciAuthType ¶
InvalidOciAuthType reports that a RootSync/RepoSync doesn't use one of the known auth methods for OCI image.
func InvalidReconcilerName ¶
InvalidReconcilerName reports that the reconciler name is invalid
func InvalidRepoSyncNamespace ¶
InvalidRepoSyncNamespace reports that a RepoSync has an invalid namespace
func InvalidRootSyncNamespace ¶
InvalidRootSyncNamespace reports that a RootSync has an invalid namespace
func InvalidSecretName ¶
InvalidSecretName reports that a secret name is invalid.
func InvalidSourceType ¶
InvalidSourceType reports that a RootSync/RepoSync doesn't use one of the supported source types.
func MissingGCPSAEmail ¶
func MissingGCPSAEmail(sourceType configsync.SourceType, syncKind string) status.Error
MissingGCPSAEmail reports that a RepoSync/RootSync resource declares an auth mode that requires a GCPServiceAccountEmail, but does not do so.
func MissingGitRepo ¶
MissingGitRepo reports that a RootSync/RepoSync doesn't declare the git repo it is supposed to connect to.
func MissingGitSpec ¶
MissingGitSpec reports that a RootSync/RepoSync doesn't declare the git spec when spec.sourceType is set to `git`.
func MissingGithubAppIDInSecret ¶
MissingGithubAppIDInSecret reports that a GithubApp app/client ID is missing in a secret.
func MissingHelmChart ¶
MissingHelmChart reports that a RootSync/RepoSync doesn't declare the Helm chart name it is supposed to rendering.
func MissingHelmRepo ¶
MissingHelmRepo reports that a RootSync/RepoSync doesn't declare the Helm repository it is supposed to download chart from.
func MissingHelmSpec ¶
MissingHelmSpec reports that a RootSync/RepoSync doesn't declare the Helm spec when spec.sourceType is set to `helm`.
func MissingHelmValuesFileRefsName ¶
MissingHelmValuesFileRefsName reports that an RSync is missing spec.helm.valuesFileRefs.name
func MissingKeyInAuthSecret ¶
func MissingKeyInAuthSecret(authType configsync.AuthType, key, secretName string) status.Error
MissingKeyInAuthSecret reports that a key is missing in an auth secret.
func MissingKeyInCACertSecret ¶
MissingKeyInCACertSecret reports that a key is missing in a CA cert secret.
func MissingOciImage ¶
MissingOciImage reports that a RootSync/RepoSync doesn't declare the OCI image it is supposed to connect to.
func MissingOciSpec ¶
MissingOciSpec reports that a RootSync/RepoSync doesn't declare the OCI spec when spec.sourceType is set to `oci`.
func MissingSecret ¶
MissingSecret reports that a secret was not found.
func MissingSecretRef ¶
func MissingSecretRef(sourceType configsync.SourceType, syncKind string) status.Error
MissingSecretRef reports that a RootSync/RepoSync declares an auth mode that requires a SecretRef, but does not do so.
func NewDeletionPropagationAnnotationError ¶
NewDeletionPropagationAnnotationError returns an error for an invalid deletion propagation annotation.
func NoOpProxy ¶
NoOpProxy reports that a RootSync/RepoSync declares a proxy, but the declaration would do nothing.
func OverrideResourceQuantityNegative ¶
OverrideResourceQuantityNegative reports that a RootSync needs `spec.override.roleRefs.namespace` when `spec.override.roleRefs.kind` is "Role".
func OverrideRoleRefNamespace ¶
OverrideRoleRefNamespace reports that a RootSync needs `spec.override.roleRefs.namespace` when `spec.override.roleRefs.kind` is "Role".
func OverrideSpec ¶
func OverrideSpec(override *v1beta1.OverrideSpec, syncKind string) status.Error
OverrideSpec validates the common Override specification.
func ReconcilerName ¶
ReconcilerName validates the reconciler name.
func RepoSyncHelmSpec ¶
func RepoSyncHelmSpec(helm *v1beta1.HelmRepoSync) status.Error
RepoSyncHelmSpec validates the RepoSync Helm specification.
func RepoSyncMetadata ¶
RepoSyncMetadata validates name, namespace, and annotations.
func RepoSyncNNLengthExceeded ¶
RepoSyncNNLengthExceeded reports that the RootSync name and namespace exceeds the max length
func RepoSyncName ¶
RepoSyncName validates RepoSync NN length.
func RepoSyncOverrideSpec ¶
func RepoSyncOverrideSpec(override *v1beta1.RepoSyncOverrideSpec) status.Error
RepoSyncOverrideSpec validates the RepoSync Override specification.
func RepoSyncSpec ¶
func RepoSyncSpec(spec v1beta1.RepoSyncSpec) status.Error
RepoSyncSpec validates the RepoSync source specification.
func RootSyncHelmSpec ¶
func RootSyncHelmSpec(helm *v1beta1.HelmRootSync) status.Error
RootSyncHelmSpec validates the RootSync Helm specification.
func RootSyncMetadata ¶
RootSyncMetadata validates name, namespace, and annotations.
func RootSyncName ¶
RootSyncName validates the RootSync name length.
func RootSyncNameLengthExceeded ¶
RootSyncNameLengthExceeded reports that the RootSync name exceeds the max length
func RootSyncOverrideSpec ¶
func RootSyncOverrideSpec(override *v1beta1.RootSyncOverrideSpec) status.Error
RootSyncOverrideSpec validates the RootSync Override specification.
func RootSyncSpec ¶
func RootSyncSpec(spec v1beta1.RootSyncSpec) status.Error
RootSyncSpec validates the RootSync source specification.
Types ¶
This section is empty.