Skip to content

Extend CloudHarness

Filippo Ledda edited this page Feb 3, 2021 · 5 revisions

CloudHarness is born to be extended. In order to extend CloudHarness you just need to mirror the folder structure:

  • applications: place here your custom applications, or override default ones
  • deployment-configuration: override the helm chart default values and templates
  • infrastructure: define base images to use in your application

or simply copy the blueprint folder.

Overwrite Helm chart configuration

First, create the folder deployment-configuration on project level.

Then, you can selectively add files related to configuration that you want to personalize:

  • values-template.yaml: base for helm/<chart-name>/values.yaml. Modify this file to add values related to new infrastructure elements not defined as an application
  • value-template.yaml: cloud-harness application configuration inside values.yaml. Prefer adding a custom values.yaml to your application over changing this file.
  • codefresh-template-dev.yaml: base for codefresh/codefresh-dev.yaml. Modify this file if you want to change the build and deploy steps in the codefresh dev pipeline
  • codefresh-template-prod.yaml: base for codefresh/codefresh-prod.yaml. Modify this file if you want to change the deploy and publish steps in the codefresh production pipeline. The production pipeline is meant to reause the same set of images from a previously completed dev pipeline.
  • codefresh-build-template.yaml: base for a single build entry in codefresh.yaml