Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (11 loc) · 1.52 KB

catalog.md

File metadata and controls

20 lines (11 loc) · 1.52 KB

Catalog

Catalogs is the feature, incroduced in JinjaPlugin to solve one simple issue: Generators can't get access to existing resources. If we don't have catalog feature it leads us to duplication of code where we repeat the way how we access data.

Catalog yamls are used in jinjaCatalog fields along with arbitrary yamls. If the document kind is JinjaCatalog, then the certain yaml structure is expected.

JinjaCatalog document may have the following fields: "parents", "jinjaTemplate" and "data".

Parents and jinjaTemplate fields are used if it's necessaary to render the catalog, e.g. like in this example we're building catalog from several sources by merging them: ../crypt/jinjacatalog.yaml and arbitrary.yaml

Here it's possible to find the final values that appeared in the catalog.

Note: you will probably want to keep Catalogs in kustomize and don't feed it to kubectl. Please consider annotation

config.kubernetes.io/local-config: "true"

for that cases. For more info please refer this document.