Managed by Score

To prevent accidental manual modifications in the Humanitec UI, score-humanitec and workload artefacts automatically add the humanitec.io/managed-by annotation to managed workloads. The optional humanitec.io/workload-source annotation can capture the source of the Score workload and can be set in the metadata annotations:

metadata:
  name: my-workload
  annotations:
    humanitec.io/workload-source: https://github.com/org/repo

The value will be turned into a link inside the Humanitec UI and allows developers to quickly jump to the source of the respective Score file.

The score-humanitec delta command optionally supports a --workload-source-url to override this. If you are using GitHub Actions, your score-humanitec usage could look like:

score-humanitec delta \
  --deploy \
  ...
  -f score.yaml \
  --workload-source-url "https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/score.yaml"
Top