Assigning applications to products

Manually or declaratively connect applications to products

After creating a product, the next step is to assign applications to it. Assigning applications to a product groups these applications into a single cohesive entity, making it easier to manage promotions and deployments.

Methods for assigning applications

There are three methods of assigning applications to a product: during application creation, through declarative or manual assignment.

Assignment during application creation

When creating an application, in the Configuration tab, select an existing product or create a new one.

  • Codefresh automatically adds the annotation to the application’s manifest.
  • The annotation is committed and saved in Git as part of the application definition.
  • This method is also declarative and GitOps-compatible.

See Products in application configuration.

Declarative assignment

Defines an annotation with the product name in the application’s manifest. If the product doesn’t exist, Codefresh GitOps automatically creates it for you.

  • The annotation is committed and saved in Git as part of the application definition.
  • This method is fully GitOps-compatible and ensures consistency across environments.

For how-to instructions, see Connect applications to products with annotations.

Manual assignment

Assign applications to a product directly in Product Settings with a one-click action. Recommended for testing purposes and not as the preferred method.

  • Manual assignment does not require a commit action.
  • Applications assigned this way are not stored in the product’s resource definition.

For how-to instructions, see Manually assign unassigned applications.

Unassigning applications

You can always unassign an application from a product:

  • Declaratively assigned applications by removing the annotation from the application’s manifest.
  • Manually assigned applications by unassigning them through Product Settings.

Assigning Promotion Flows and triggers to products to products
Configuring version and promotable properties for Products
Tracking Product releases
Product Dashboard
Configure Product Settings