about summary refs log tree commit diff
path: root/context/testdata/explicit-subresource-path.yaml (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-09-04 fix(build): Explicitly patch interpreter shebangs in buildVincent Ambo1-0/+1
2019-09-04 chore(image): Bump alpine, kubectl and passVincent Ambo2-5/+5
2019-09-04 chore: Bump Nix channel used for release buildsVincent Ambo1-4/+4
Bumps the channel to a recent NixOS 19.03 commit.
2019-09-04 chore(build): Bump version to 1.8.0Vincent Ambo2-2/+2
2019-09-04 chore: Update copyright headers to 2019Vincent Ambo12-12/+12
2019-09-04 chore: Update dependency versionsVincent Ambo1-53/+53
2019-09-04 fix(context): Ensure resource set paths are made absoluteVincent Ambo3-17/+22
Resolving of files (for `insertFile` and `insertTemplate`) should always be relative to the resource set location, the previous behaviour was considered a bug. This is fixed by ensuring that resource set paths are absolute at context loading time.
2019-05-01 docs: Update `configHash` tip to use `insertTemplate` functionJude Venn1-11/+13
An advantage of this method over the previous one is that any edits to the ConfigMap yaml file will also trigger a rolling update. It also keeps knowledge of what the ConfigMap contains inside its yaml file instead of the Deployment needing to know which variables to hash.
2019-05-01 test(templater): Add a test for the `insertTemplate` functionJude Venn2-0/+25
2019-05-01 feat(templater): Add insertTemplate functionJude Venn2-1/+11
Similar to insertFile, but runs the templating against the file before inserting. This is useful for sharing common config between yaml files, e.g. volume mounts in a deployment.yaml and cronjob.yaml, and it's useful to be able to use the `configHash` annotation pattern with a templated configmap.yaml
2019-05-01 fix(build): Make Nix build work with recent nixpkgsVincent Ambo1-1/+3
Changes in the Go build environment for Nix have caused the parallel vetting to run in a subshell which does not have the required function definitions. This commit fixes the error by not running vet in parallel (there's no point to that anyways as the project is tiny).
2019-01-21 chore(build): kubectl upgraded to the latest stable version (1.13.2)Felix Wiedmann2-2/+2
Updates the kubectl version used in the Docker build to the latest stable release. Please see the Kubernetes documentation for details.
2019-01-21 chore(build): Move Nix commit for releases to latest NixOS stableVincent Ambo1-2/+2
Updates a few build dependencies, most notably Go to 1.11. The chosen commit is the current stable `nixos-18.09` tag in nixpkgs-channels. While doing this I also checked whether it is now possible to remove the exception for allowing references, but it's not. Go may in the future gain support for fully reproducible builds, see for example issue #16860 on their compiler. At that point maybe we can drop a few settings here.
2019-01-21 fix(build): Depend on GNU Parallel during buildVincent Ambo1-0/+1
CI builds for `master` track unstable nixpkgs releases, in which parallel is no longer part of the standard build environment. However, this tool is required for executing some of the tests.
2018-12-11 feat(main): Support specifying kubectl args in ResourceSetsMartin Lehmann6-2/+61
2018-08-15 docs(README): Add note about installing on NixOSVincent Ambo1-0/+6
2018-08-15 chore(image): Update image for Kontemplate 1.7.0Vincent Ambo2-5/+5
Version changes: * Kontemplate 1.7.0 * Kubectl 1.11.0 * Alpine 3.8
2018-08-15 chore(brew): Update Homebrew formula for 1.7.0Vincent Ambo1-3/+3
2018-08-15 chore(build): Update dependencies to newest versionVincent Ambo1-24/+24
Updates the following dependencies to latest: * Masterminds/semver * Masterminds/sprig * ghodss/yaml * satori/go.uuid -> google/uuid * huandu/xstrings * imdario/mergo * crypto * alecthomas/kingpin.v2 * yaml.v2 As usual Go libraries are YOLO-versioned, so who knows what changed here. I'll be going through `sprig` at least to add that to the changelog. This relates to #152.
2018-07-14 test(templater): Add a test for the `default` template functionVincent Ambo2-0/+18
2018-07-14 feat(templater): override sprig default function with guarded alternativePhillip Johnsen1-0/+6
These changes overrides the `default` function provided by sprig with an alternative to retrieve variable values from variables that might not have been declared at all. Referencing a variable in a template that is not declared, will lead to the underlying templating functionality raising an error, causing kontemplate to exit. The override alternative to `default` accepts a second string argument with the variable name. If the variable in question has not been declared the first argument's value would be returned, just as the original `default` function does.
2018-06-26 chore: Bump version to 1.7.0Vincent Ambo2-2/+2
2018-06-26 test(context): Introduce an explicit value merging testVincent Ambo5-0/+51
Introduces a test which will merge variables defined at every possible layer together and ensure that the loaded context configuration is as expected. The test data provides an actual resource set template that can be tested locally from a kontemplate source checkout: kontemplate template context/testdata/merging/context.yaml --var cliVar=cliVar
2018-06-26 chore(context): Remove previous value override testVincent Ambo2-33/+0
2018-06-26 refactor(context): Rewrite and explain value merging logicVincent Ambo1-11/+52
Changes the logic for merging context values to be unambiguous and easy to follow. * loadDefaultVars returns the default vars directly instead of performing merging in addition * all merging is performed in `mergeContextValues` using explicit explanations for every step of the merge. After this commit the order of merging goes from least to most "specific", please read the explanatory comments for more information. This relates to #142.
2018-06-26 feat(main): Add CLI flag for setting kubectl executableVincent Ambo1-4/+5
This lets users choose the executable (either by full path or via a $PATH-entry) to be used when executing `kubectl`. This is useful in, for example, OpenShift based setups. This fixes #143
2018-06-21 fix(context): Use SplitN to split CLI variable specificationsVincent Ambo1-1/+1
In some cases the value of a variable may contain an equals sign, which would not work in the previous version. This uses `SplitN` to split the variable specifier into a pre-determined number (2) of sub-slices. Further `=`-symbols will then be included in the second substring.
2018-06-09 chore(image): Bump version to 1.6.0Vincent Ambo2-5/+6
* kontemplate 1.6.0 * kubectl 1.10.4
2018-06-09 chore(brew): Update Homebrew formula for 1.6.0Vincent Ambo1-3/+3
2018-06-09 fix(build): Fix shebang in build-release.shVincent Ambo1-3/+3
2018-06-09 chore: Bump version to 1.6.0Vincent Ambo2-2/+2
2018-06-09 feat(templater): Support single-template resource setsVincent Ambo3-23/+55
Supports resource sets in which the `path` is pointed at a single template file. The example has been updated with ... an example of this. This closes #81.
2018-06-09 fix(context): Global values have precedence over defaultsVincent Ambo1-2/+2
2018-06-09 feat(context): Support loading import variables from absolute pathsVincent Ambo2-11/+20
This lets users specify the paths from which to import additional variables using absolute paths in addition to relative paths. This enables both loading of configuration files placed outside of the resource set folder (if desired), as well as special use-cases such as specifying `/dev/stdin` as an input path to read variables from standard input. This change supersedes #131
2018-06-09 refactor(util): Use YAML parser for both JSON & YAML filesVincent Ambo2-13/