Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultFieldManager = "helm" KubectlEditFieldManager = "kubectl-edit" OldFieldManagerPrefix = "werf" StagePrefix = "stage" StageStartSuffix = "start" StageEndSuffix = "end" )
Variables ¶
View Source
var ( Brand = "Nelm" Version = "0.0.0" )
View Source
var ( LabelKeyHumanManagedBy = "app.kubernetes.io/managed-by" LabelKeyPatternManagedBy = regexp.MustCompile(`^app.kubernetes.io/managed-by$`) AnnotationKeyHumanReleaseName = "meta.helm.sh/release-name" AnnotationKeyPatternReleaseName = regexp.MustCompile(`^meta.helm.sh/release-name$`) AnnotationKeyHumanReleaseNamespace = "meta.helm.sh/release-namespace" AnnotationKeyPatternReleaseNamespace = regexp.MustCompile(`^meta.helm.sh/release-namespace$`) AnnotationKeyHumanHook = "helm.sh/hook" AnnotationKeyPatternHook = regexp.MustCompile(`^helm.sh/hook$`) AnnotationKeyHumanResourcePolicy = "helm.sh/resource-policy" AnnotationKeyPatternResourcePolicy = regexp.MustCompile(`^helm.sh/resource-policy$`) AnnotationKeyHumanDeletePolicy = "werf.io/delete-policy" AnnotationKeyPatternDeletePolicy = regexp.MustCompile(`^werf.io/delete-policy$`) AnnotationKeyHumanHookDeletePolicy = "helm.sh/hook-delete-policy" AnnotationKeyPatternHookDeletePolicy = regexp.MustCompile(`^helm.sh/hook-delete-policy$`) AnnotationKeyHumanReplicasOnCreation = "werf.io/replicas-on-creation" AnnotationKeyPatternReplicasOnCreation = regexp.MustCompile(`^werf.io/replicas-on-creation$`) AnnotationKeyHumanFailMode = "werf.io/fail-mode" AnnotationKeyPatternFailMode = regexp.MustCompile(`^werf.io/fail-mode$`) AnnotationKeyHumanFailuresAllowedPerReplica = "werf.io/failures-allowed-per-replica" AnnotationKeyPatternFailuresAllowedPerReplica = regexp.MustCompile(`^werf.io/failures-allowed-per-replica$`) AnnotationKeyHumanIgnoreReadinessProbeFailsFor = "werf.io/ignore-readiness-probe-fails-for-<container>" AnnotationKeyPatternIgnoreReadinessProbeFailsFor = regexp.MustCompile(`^werf.io/ignore-readiness-probe-fails-for-(?P<container>.+)$`) AnnotationKeyHumanLogRegex = "werf.io/log-regex" AnnotationKeyPatternLogRegex = regexp.MustCompile(`^werf.io/log-regex$`) AnnotationKeyHumanLogRegexFor = "werf.io/log-regex-for-<container>" AnnotationKeyPatternLogRegexFor = regexp.MustCompile(`^werf.io/log-regex-for-(?P<container>.+)$`) AnnotationKeyHumanNoActivityTimeout = "werf.io/no-activity-timeout" AnnotationKeyPatternNoActivityTimeout = regexp.MustCompile(`^werf.io/no-activity-timeout$`) AnnotationKeyHumanShowLogsOnlyForContainers = "werf.io/show-logs-only-for-containers" AnnotationKeyPatternShowLogsOnlyForContainers = regexp.MustCompile(`^werf.io/show-logs-only-for-containers$`) AnnotationKeyHumanShowServiceMessages = "werf.io/show-service-messages" AnnotationKeyPatternShowServiceMessages = regexp.MustCompile(`^werf.io/show-service-messages$`) AnnotationKeyHumanShowLogsOnlyForNumberOfReplicas = "werf.io/show-logs-only-for-number-of-replicas" AnnotationKeyPatternShowLogsOnlyForNumberOfReplicas = regexp.MustCompile(`^werf.io/show-logs-only-for-number-of-replicas$`) AnnotationKeyHumanSkipLogs = "werf.io/skip-logs" AnnotationKeyPatternSkipLogs = regexp.MustCompile(`^werf.io/skip-logs$`) AnnotationKeyHumanSkipLogsForContainers = "werf.io/skip-logs-for-containers" AnnotationKeyPatternSkipLogsForContainers = regexp.MustCompile(`^werf.io/skip-logs-for-containers$`) AnnotationKeyHumanTrackTerminationMode = "werf.io/track-termination-mode" AnnotationKeyPatternTrackTerminationMode = regexp.MustCompile(`^werf.io/track-termination-mode$`) AnnotationKeyHumanWeight = "werf.io/weight" AnnotationKeyPatternWeight = regexp.MustCompile(`^werf.io/weight$`) AnnotationKeyHumanHookWeight = "helm.sh/hook-weight" AnnotationKeyPatternHookWeight = regexp.MustCompile(`^helm.sh/hook-weight$`) AnnotationKeyHumanDeployDependency = "werf.io/deploy-dependency-<name>" AnnotationKeyPatternDeployDependency = regexp.MustCompile(`^werf.io/deploy-dependency-(?P<id>.+)$`) // TODO(v2): get rid AnnotationKeyHumanDependency = "<name>.dependency.werf.io" AnnotationKeyPatternDependency = regexp.MustCompile(`^(?P<id>.+).dependency.werf.io$`) AnnotationKeyHumanExternalDependency = "<name>.external-dependency.werf.io" AnnotationKeyPatternExternalDependency = regexp.MustCompile(`^(?P<id>.+).external-dependency.werf.io$`) AnnotationKeyHumanLegacyExternalDependencyResource = "<name>.external-dependency.werf.io/resource" AnnotationKeyPatternLegacyExternalDependencyResource = regexp.MustCompile(`^(?P<id>.+).external-dependency.werf.io/resource$`) AnnotationKeyHumanLegacyExternalDependencyNamespace = "<name>.external-dependency.werf.io/namespace" AnnotationKeyPatternLegacyExternalDependencyNamespace = regexp.MustCompile(`^(?P<id>.+).external-dependency.werf.io/namespace$`) AnnotationKeyHumanSensitive = "werf.io/sensitive" AnnotationKeyPatternSensitive = regexp.MustCompile(`^werf.io/sensitive$`) AnnotationKeyHumanSensitivePaths = "werf.io/sensitive-paths" AnnotationKeyPatternSensitivePaths = regexp.MustCompile(`^werf.io/sensitive-paths$`) AnnotationKeyHumanDeployOn = "werf.io/deploy-on" AnnotationKeyPatternDeployOn = regexp.MustCompile(`^werf.io/deploy-on$`) AnnotationKeyHumanOwnership = "werf.io/ownership" AnnotationKeyPatternOwnership = regexp.MustCompile(`^werf.io/ownership$`) )
View Source
var OrderedStoreAs = []StoreAs{StoreAsNone, StoreAsHook, StoreAsRegular}
View Source
var SprigFuncs = sprig.TxtFuncMap()
Functions ¶
func StagesSortHandler ¶ added in v1.13.0
Types ¶
type DeletePolicy ¶
type DeletePolicy string
const ( DeletePolicySucceeded DeletePolicy = "succeeded" DeletePolicyFailed DeletePolicy = "failed" DeletePolicyBeforeCreation DeletePolicy = "before-creation" DeletePolicyBeforeCreationIfImmutable DeletePolicy = "before-creation-if-immutable" )
type DeployType ¶
type DeployType string
const ( // Activated for the first revision of the release. DeployTypeInitial DeployType = "Initial" // Activated when no successful revision found. But for the very first revision // DeployTypeInitial is used instead. DeployTypeInstall DeployType = "Install" // Activated when a successful revision found. DeployTypeUpgrade DeployType = "Upgrade" DeployTypeRollback DeployType = "Rollback" DeployTypeUninstall DeployType = "Uninstall" )
type ResourceState ¶ added in v1.13.0
type ResourceState string
const ( ResourceStateAbsent ResourceState = "absent" ResourceStatePresent ResourceState = "present" ResourceStateReady ResourceState = "ready" )
type Stage ¶ added in v1.13.0
type Stage string
const ( StageInit Stage = "init" // create pending release StagePrePreUninstall Stage = "pre-pre-uninstall" // uninstall previous release resources StagePrePreInstall Stage = "pre-pre-install" // install crd StagePreInstall Stage = "pre-install" // install pre-hooks StagePreUninstall Stage = "pre-uninstall" // cleanup pre-hooks StageInstall Stage = "install" // install resources StageUninstall Stage = "uninstall" // cleanup resources StagePostInstall Stage = "post-install" // install post-hooks StagePostUninstall Stage = "post-uninstall" // cleanup post-hooks StagePostPostInstall Stage = "post-post-install" StagePostPostUninstall Stage = "post-post-uninstall" // uninstall crd, webhook StageFinal Stage = "final" // succeed pending release, supersede previous release )
func SubStageWeighted ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.