Skip to main content

Deprecations and Breaking Changes

As Kargo continues to evolve, features that have outlived their usefulness, having often been replaced with better alternatives, are sometimes sunset. This page documents past and pending deprecated features and breaking changes.

Deprecations​

The table below summarizes features that have been deprecated and either removed or scheduled for removal.

FeatureDeprecated InRemoved InReplacement/Notes
git-commit step author fieldv1.10.0v1.12.0Configure authorship and signing in the git-clone step or via ClusterConfig. See git-commit docs.
git-push default integration policy (AlwaysRebase)v1.10.0v1.12.0The default git-push/github-push push integration policy changed from AlwaysRebase to RebaseOrMerge. Set controller.gitClient.pushIntegrationPolicy explicitly if you rely on unconditional rebase.
SSH URLs and SSH private keys for Git repositoriesv1.10.0v2.0.0Use HTTP(S) URLs with a personal access token, GitHub App, or equivalent. SSH keys cannot authenticate to Git provider APIs, forcing users to maintain two sets of credentials. Creating or updating a Warehouse that subscribes to an SSH or SCP-style URL is rejected, and Secrets containing only an sshPrivateKey are ignored. See Breaking Changes and #5858 for details.
The createTargetBranch option in the git-open-pr promotion stepv1.10.0v1.12.0The createTargetBranch option has been removed as the feature never worked. See #5847 for details.
Warehouse Git and container image subscriptions' allowTags and ignoreTags fieldsv1.9.0v2.0.0Use allowTagsRegexes and ignoreTagsRegexes. Artifact discovery has failed when either field is set since v1.11.0. As of v2.0.0, creating a Warehouse with either field, or changing the spec of one that still has them, is rejected. Artifact discovery for a Warehouse already stored with either field stops failing, but runs without that tag filtering. Find affected Warehouses before upgrading.
The Connect-based (gRPC) APIv1.9.0v1.12.0Replaced by a new, RESTful API. The UI completed its migration to the REST API in v1.11.0, so the legacy API no longer had any first-party consumers. Upgrade the CLI alongside the back end, and migrate any custom integrations to the REST API before upgrading.
"global credentials namespace(s)" (controller.globalCredentials.namespaces)v1.9.0v1.12.0Replaced with "shared resources namespace" (global.sharedResources.namespace). The automatic migration of Secrets has been removed; upgrading to v1.12.0 or later will fail if this setting remains defined. See release notes and docs for details.
"cluster secrets namespace" (global.clusterSecretsNamespace)v1.9.0v1.12.0Replaced with "system resources namespace" (global.systemResources.namespace). The automatic migration of Secrets has been removed; upgrading to v1.12.0 or later will fail if this setting remains defined. See release notes and docs for details.
Warehouse's container image subscription's semverConstraint fieldv1.7.0v1.9.0Users should migrate to using the constraint field which, accepts the same value but is named to better indicate it can also be used for tag selection (e.g. latest) when the image selection strategy is set to Digest.
freightMetadata functions optional second argument for the key namev1.8.0v1.10.0Users should migrate to either dot notation (freightMetadata(freightName).keyName) or map access syntax (freightMetadata(freightName)['key-name']) to access specific values instead of using the optional second argument.
Project specificationv1.5.0v1.7.0Users should migrate to the dedicated ProjectConfig resource. This resource kind accepts a .spec identitical to the Project, but allows for fine-grain permissions.
secrets object in the Promotion variablesv1.5.0v1.7.0Users should migrate to the secret() function which resolves Secrets on-demand, reducing overhead.
prNumber field in git-open-pr Promotion Step outputv1.5.0v1.7.0Users should migrate to using the pr.id for referencing pull request IDs.
messageFromSteps of git-commit Promotion Stepv1.3.0v1.5.0Use the message field in combination with expressions. Refer to the documentation for more information.
Promotion Steps Fieldsv1.1.0v1.3.0Several fields in promotion steps, such as prNumberFromStep in the git-wait-for-pr step, are now deprecated. These fields were originally the only way to reference output from previous promotion steps. With the introduction of expressions, these fields have outlived their purpose, as expressions like ${{ outputs['open-pr'].pr.id }} present a more flexible and straightforward way to reference the same output. more info
helm-update-image stepv1.1.0v1.3.0Use the more flexible yaml-update step. more info
Legacy Promotion Mechanismsv0.9.0v1.0.0Migrate to promotion steps. more info

Finding Warehouses that use allowTags or ignoreTags​

Before upgrading to v2.0.0, find any Warehouses whose Git or container image subscriptions still set allowTags or ignoreTags:

kubectl get warehouses -A -o json | jq -r '
.items[]
| select(any(.spec.subscriptions[]; (.git // .image // {}) | has("allowTags") or has("ignoreTags")))
| "\(.metadata.namespace)/\(.metadata.name)"'

Migrate each one to allowTagsRegexes and ignoreTagsRegexes. allowTags was already a regular expression, so it carries over unchanged as the sole entry in allowTagsRegexes. ignoreTags matched tags exactly, so escape and anchor each value when converting it to a regular expression. For example, v1.0.0 becomes ^v1\.0\.0$.

Breaking Changes​

This section summarizes significant changes that create potential for disruption upon upgrade. The Kargo team strives to keep changes of this nature to an absolute minimum.

ChangeVersionImpactMigration Path
SSH URLs and SSH private keys removedv2.0.0Creating or updating a Warehouse that subscribes to an ssh:// or SCP-style (git@host:path) URL is rejected, including refreshing it or changing its labels or annotations. It can still be deleted. Artifact discovery for a Warehouse already stored with such a URL fails. Promotion steps that are given such a URL fail. Secrets that contain only an sshPrivateKey yield no credentials. argocd-update no longer treats differently spelled SSH URLs (e.g. with and without .git) as the same repository. On clusters older than Kubernetes v1.30, which lack CRD validation ratcheting, status updates for a Warehouse whose last discovered artifacts came from an SSH URL may be rejected.Switch repoURLs in Warehouses, promotion steps, and credential Secrets to HTTP(S) URLs, and replace sshPrivateKey with username and password (e.g. a personal access token) or GitHub App credentials, before upgrading.
allowTags and ignoreTags subscription fields removedv2.0.0Creating a Warehouse that uses these fields, or changing the spec of one that does, is rejected. Artifact discovery for a Warehouse already stored with them runs without that tag filtering.Find affected Warehouses and migrate them to allowTagsRegexes and ignoreTagsRegexes before upgrading.
Global Credential Store Changesv1.0.0Affects installations using controller.globalCredentials.namespacesManually create a RoleBindings to permit controller access to "global" credential namespaces or set controller.serviceAccount.clusterWideSecretReadingEnabled to true at install time (not recommended). more info