Skip to main content

Overrides V2

info

Currently, this is a beta feature and is behind the feature flag, CDS_SERVICE_OVERRIDES_2_0. Contact Harness Support to enable the feature.

Harness has introduced an enhanced experience for service, environment, and infrastructure overrides in Continuous Delivery (CD). A new panel, Overrides is added in the Deployments section where you can override services, environments, and infrastructures.

Overrides can be defined at project, organization, and account levels.

In Account Settings > Account Resources > Continuous Deployment, set the Enable Service Override V2 to true for the enhanced overrides experience.

info

Make sure that the NG_SETTINGS feature flag is enabled to view this setting.

overridesV2

Limitations

  • Runtime inputs are not supported for Infrastructure Specific and Service & Infrastructure Specific variables.

Migrating to overrides V2

Currently, Harness migrates the existing override configuration to the new version using back-end APIs. The existing override scope or scope with all child scopes are migrated based on the requirement.

Harness anticipates adding a Migrate button in the UI to migrate to the new override configuration in the future.

Video demo

Override types

You can override the following manifest types:

  • Values YAML
  • OpenShift Param
  • Kustomize
  • Helm Repo
  • Tanzu Application Service (TAS) manifest
  • TAS vars
  • TAS AutoScalar

Override service, environment, and infrastructure settings

You can override one or more settings for all services, environments, and infrastructures at project, organization, and account levels.

  1. In Deployments, select your project, and then select Overrides.
  2. Select an override method:
    • Global Environment
    • Service Specific
    • Infrastructure Specific
    • Service & Infrastructure Specific
  3. Select New Override.
  4. Select a project, organization, or account-level override.
  5. In Override Type, select one of the following override types:
    • Variable
    • Manifest
    • Config File
    • Application Settings (applicable to Global Environment override method only)
    • Connection Strings (applicable to Global Environment override method only)
  6. Override the setting.

Override priority

The override priority from top to bottom is:

  • Infrastructure & Service Specific overrides
  • Infrastructure Specific overrides
  • Service Specific overrides
  • Global Environment overrides

override priority

Overrides defined at project/organization/account levels have the following override priority:

  • Project
  • Organization
  • Account