Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedures for Kustomize-like overlays #3

Merged
merged 9 commits into from
Jan 8, 2019
Merged

Procedures for Kustomize-like overlays #3

merged 9 commits into from
Jan 8, 2019

Conversation

squaremo
Copy link
Member

No description provided.

 - retool data.js so it can be used more generally for loading files
   en masse
 - start on overlay.js, which brings composition, transformation, and
   generation together (and interprets Kustomize files).
This adds a test for overlay composition (via `bases`) and corrects a
couple of problems.
@squaremo squaremo force-pushed the overlays branch 3 times, most recently from 7497085 to 48753c9 Compare January 7, 2019 22:19
This uses @jkcfg/mixins, which needed a bit of package.json faff to
accommodate:

 - include node_modules in the Babel transform, since we're importing
   ES2015 modules (it's excluded by default, so including it entails
   overriding `transformIgnorePatterns`)
 - explicitly include "node_modules" in Jest's modules path.
 - when you generate ConfigMap data given the paths to files, the keys
   are the basenames rather than the paths
 - in support of this, add some path-munging functions
.. and cons/overlay.js to overlay/index.js, to act as the entry point
which can be imported with

    import { overlay } from '@jkcfg/kubernetes/overlay';
The kustomize secret generation relies on shelling out, to e.g.,
generate random passwords. So as to encourage repeatability, we
wouldn't want to make secrets that way; so, provide something that
works more like ConfigMaps (i.e., gets its data from files or from
literal values).
This adds the ability to give all resources a set of common labels and
annotations (commonLabels, commonAnnotations in the kustomize.yaml
file).
@squaremo squaremo changed the title WIP Procedures for Kustomize-like overlays Procedures for Kustomize-like overlays Jan 8, 2019
@squaremo squaremo merged commit f1adfdb into master Jan 8, 2019
@squaremo squaremo deleted the overlays branch January 8, 2019 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant