Skip to content

Draft: Update Template's Get() methods for easier object access

Mitchell Nielsen requested to merge 33-render-helm-data-in-template into master

Uses accessor (godoc, source) from the meta package to access attributes of a generic object of type *runtime.Object.

Also adds "app" label to testdata chart to match what we use in the GitLab Helm chart so it can be tested appropriately.

Enables us to easily pull objects with the following methods:

  • GetObjectByNameAndKind
  • GetObjectsByKind
  • GetObjectsByKind
  • GetObjectsByChart
  • GetObjectsByChartAndKind

Closes #33 (closed)

Edited by Mitchell Nielsen

Merge request reports

Loading