Skip to content

@droot droot released this Mar 5, 2019 · 148 commits to master since this release

Changelog

45ba785 Add configmaps test for json string
8bbe147 Add webhooks to order list of gvk
ea3d5e6 Fix for #818 - Added support for quoted values
eb75203 Fix for #831 - Ignore domain when finding the image tag
6bfd7cf Improve error handling during var resolution.
ed2ad86 Move trim quotes logic to separate function
ff6cd3c Report unused variables.
1303ea3 Run kustomize tests on OSX
e666630 Simplify map conversion logic
9d77cbe Update golang/x/net dependency to release-branch.go1.11
28cefb3 improve error message for loading files listed under crds
78cbff1 improve error message in json patch transformer
b0c3cd7 update the doc for crds: the files in this list should be openAPI definition
f4eef1d update transformerconfigs/crd example

Assets 6

@droot droot released this Feb 25, 2019 · 173 commits to master since this release

Changelog

901455e Add Pod initContainer to var reference
bf1c801 Add doc indicating existing of 'behavior' in configMapGenerator
f5f8e49 Add explanatory comments and format
1f063d6 Add more git url regression coverage
d4d993a Add more resid test coverage.
7d3735b Adding goos and goarch from runtime
1382d87 Change ExpandFileSource to work with key=val patterns
5e6c06f Change imagetag to image in docs/eschewedFeatures.md
0f30c09 Delete extraneous copyright.
773c1f2 Make requested wording changes from PR for behavior document
0488f57 More generator tests.
77eebb8 Review changes
48717f3 Switch to black box testing of KustTarget and Resource
1a03dca Test missing file report
d72b162 add a test for a list with no 'items:' provided
8c93f7b add support for varref in maps values
3118ccf add tests for *List kinds and empty lists
d968c0b add varref mountpath test case
9837b5b add volumeMounts/mountPath to varreference
1eab47b fix abs path with symlinks
1a43759 fix invalid relative path in kustomization.yaml
fdba7df if the kind matches '*List$', treat it as a list
0e459eb prevent panic on image transformer
cebcd8a transformers/image: loop refactoring
b15b204 typo: changes verb number to agree with subject
1d005d4 typo: makes verb number agree with subject

Assets 6

@droot droot released this Feb 8, 2019 · 218 commits to master since this release

release notes:

  • add nil pointer check when loading from remote URL #779
  • improve error message when customization file is not found #771

Changelog

ccc4461 Fix nil ptr bug
d720e9e Fix some typos in versioning policy
242b920 Improve error msg returned when no kustomization file is found
7c8db24 Rename kv.KVPair to kv.Pair
9e69b9d Typos in versioning
fc5c726 add documentation for kustomize 2.0.0
e41ca93 move package and add tests
e14ebc0 refactor kv pairs

Assets 6

@droot droot released this Feb 6, 2019 · 231 commits to master since this release

Release Notes

Changelog

ecb83c6 Add KustTarget.getAllVars Test
bf18cf2 Add Service nameReference to APIService
d4b90c8 Add bug writing instructions to README.
0759136 Add enforcement message for apiVersion and kind
6dd599a Add image transformer
dcb5682 Add more coverage for loader and strengthen type safety.
2e6bdd4 Add more loader tests.
6ad5d9f Add namespace for config map and secret generators
506c4a3 Add projected secret path to transformer config
78bac97 Add sed-like behavior to the eschewed feature list.
e9b1928 Add some resId tests to support refactor.
8cecccb Add spec/jobTemplate/metadata/labels to common labels transformer
986c85e Add subcommand: edit fix
252cf37 Add support for variable subsitution in Ingress hosts
29694e5 Add test for secretfactory.
176ad74 Add unit test for additional git url patterns
352ec69 Allow directory substrings in cycle check.
38f0ca9 Allow namespaced object to refer cluster level object
d4ba221 Avoid unnecessary shell execution in secretFactory.
8c99472 Check for config merge conflicts and duplication.
8405743 Combine generatorArgs and generatorOptions into options of Resource
a838b85 Convert CRD tests to in-memory.
b7e1f8d Convert configmap tests to in-memory.
243cbae Convert file system based test to in-memory.
9dcbee1 Convert generator merge and replace tests to in-memory.
95203c5 Convert multi-patch test to in-memory.
b16a736 Convert namespaced generators to in-memory.
8b76799 Convert variable tests to in-memory.
c21dfef Cover CleanedAbs
d141b24 DataSources is now common to Secrets and ConfigMaps.
d98afdc Delete deprecated file-based build test code.
35daae1 Delete some dead code and fix nits.
8c2bff2 Disallow cloned kustomization from using a local base outside the clone dir.
f550540 Document SMP behavior for custom resources
60dc3aa Don't force all config to be explicit.
032fffe Drain more code from kusttarget.
cbcc976 Extract common generator args to common type.
fd3cd47 Fix copyright, add TODOs
48e8a3a Fix incorrect use of filepath.Separator
a5c6938 Fix link
93ad371 Fix some comments and format nits.
f1b8fde Fix typo in generatorOptions example doc
0665371 Forbid Var name collisions in a kustomization stack
11a1990 Improve name transformer docs.
3ddc20f Increase git url parsing coverage.
ad400cd Introduce RepoSpec.
50a8b27 Introduce ResAccumulator.
4b25963 List of strategic merge patches (#637)
037f898 Make KustTarget test harness to reduce boilerplate.
9b7ddd6 Merge in cloner_tmp, preserving blame history.
4583c4a More custom transform coverage.
47a04f2 More fully in-memory integration tests.
e2102de Move cloner to cloner_tmp.
bcb939c Move cloner to repospec.
90b863d Move cloner_tmp back to cloner.
1d9a20b Move git code to its own pkg.
77b44f5 Reduce log noise.
d40f52e Reduce size of missing field markers.
f7c34cc Remove filesystem from ConfigMapGenerator and SecretGenerator
94be867 Remove git:: prefix for all urls not only GitLab
31691f0 Replace all repo uri strings with git.RepoSpec.
108b3e4 Require relocatable kustomizations and fix some nits.
14af70d Restrict loading to root or below.
6f566d7 Revert "add apiVersion and kind to docs and examples" (#653)
54d6cf7 Simplify refvar transformer.
ea1dd08 Small cleanups, no change in exec.
3b9cd6b Tiny but noticeable typo fix
51bbf57 Tweak documentation on directive.
120e7b5 Versioning policy
949fd51 Yet another kusttarget test.
62d096e add 'images' documentation
5b88179 add APIService to cluster level kinds
a0c22b8 add add secret command
731a2a6 add another hostname to test
0d14e89 add apiVersion and kind in README.md for examples
819b2e9 add apiVersion and kind to docs/kustomization.yaml
64372a7 add apiVersion and kind to example kustomizations
b6b2fb9 add apiVersiond and kind in tests to reduce test noise
fed8195 add apiversion and kind to docs/kustomization.yaml
1997606 add empty objects test for kunstruct SliceFromBytes
199763d add group name to kustomize.config.k8s.io
259cecd add handling function for remote url hostname
b22e43a add set image command
feb0502 added DaemonSet
e905704 allow apiVersion and Kind to be empty or specific values
1cd99ab change current version from v1 to v1beta1
8741159 configmap binarydata comments and small tweaks
d417079 configmap binarydata support
cdcc005 examples: typo
6616b25 fix comment
6d56c17 fix issues from code review
d0e4db7 fix the missing fields in all edit commands
dd17174 fix typos (#645)
209b115 ignore yaml files that do not include any entries
a62d15e improve error message when failing to find an object to patch
e49bd3a improve image command messages
20e37ea improve url parsing function in gitcloner
b9ab948 make BuildOptions exported
d858533 minor fix: incorrect apiVersion and add NoOpTransformer for vars (#757)
78a2884 remove myself from maintainers
c461f1f remove patches and imageTags from kustomization.yaml
79d357b remove warning for using prefix/suffix in conjunction with a Namespace
2fa4a34 replace commands/envcommand by DataSource in SecretGenerator
1d263d2 replaceVars returns nil on nil input, not error
931f43f resolve namereference in an array
f7a5917 support different filenames for kustomization file
af8a169 typo in doc

Assets 6

@droot droot released this Dec 4, 2018 · 423 commits to master since this release

Changelog

ebf1efe Add StorageClass to the list of ordered objects
4827d99 Add example for generatorOptions
eed16af Add removeAll to fakeFs
4daa655 Add test coverage to gitloader.
8ba2ea9 Add test for mutatefield
d05bb6b Add/fix some documentation and vars names.
793577d Consult history in fileloader.
02d2d38 Deal with branch spec in simpleGitCloner.
a40c250 Delete hashicorp cloner.
4f9d00c Enforce relocatabile kustomizations.
6b93973 Fix #560 (kinda/sorta)
421ca3f Fix typo in namereference path for cronjobs
538aaaf Fix typos: expectd->expected, cluser->cluster
885c195 Improve test coverage.
d9ba209 Introduce simple git cloner.
3e1a3d8 Minor tweaks
25415c5 Remove -t flag in build and add configurations field in kustomization.yaml
6cddc25 Remove stray comment.
a8fbe35 Rename disableHash to disableNameSuffixHash
910eb32 Rename gitloader to gitcloner.
d04877a Simplify some code and add TODOs.
7c1277f Turn off hashicorp cloner.
e0ec802 Update TransformerConfig.Merge function to handle nil
57a5fa5 Update default var reference link
95fed47 Update generatorOptions.md
3488b54 add edit command option for editing name suffix
9d82d54 add fallback for GVK comparison
a14609f add suffix field to ResId
ecbf3c5 add support .yml extension for kusotmization file
93094c7 add transformer for appending suffix
51e9fec allow accessing labels and annotations in vars
f714e9f another tweak
d481dba combine transformers
04a030b enable nameSuffix field of kustomization.yaml
4cf916e fix incorrect path in default namereference configs
b8c2ed2 fix the command usage
c1e7f1b fix the order of YAMLs
5947f69 make sure the objects loaded have name and kind
a898457 refactor test code for readability
83bc67c remove glog dependency from kustomize code (#542)
7dc8ef1 update build command testdata
6ec77b2 update crd example by using configurations file list
e574948 update docs for vars
59df8a0 update docs, examples, comments
727b5eb update vendor_kustomize.sh
a094be4 update vendor_kustomize.sh with run-in-gopath.sh (#545)

Assets 6

@droot droot released this Oct 26, 2018 · 503 commits to master since this release

Changelog

1020167 Revert "Skip adding nameprefix to namespace"
f8a18ce Revert "create namespace resource if not found"
163515c dep ensure
4184552 enable dep pruning and gitignore macOS DS_Store
e97960c fix goreleaser version injection
6037734 fix spelling
9f73341 kustomize build loads transformer configs when path argument omitted
76ba38c make k8sdeps.NewFactory() importable

Assets 6

@droot droot released this Oct 24, 2018 · 518 commits to master since this release

Changelog

40b2bf7 Add KustFactory as a wrapper of all factories
a90c957 Add example for transformer configurations: crd
fb6130e Add flag to load transfomer configurations from files
0824433 Add generatorOptions in Kustomization type
5036a12 Add hash interface
5745d03 Add literals in configMapGenerator example
67adc56 Add resid tests.
2473331 Add tests for patch/resource reading.
8cc6df5 Add transformerconfig package and default configs
fa89a0a Add validator interface
fdf5fa5 Allow setting shell and timeout in generatorOptions
2283c06 Consolidate transformer config creation to factory.
65ee4e4 Deal with field deprecation immediately after load.
3e0f5ea Delete penultimate use of Patches field.
f20528b Delete some kunstruct code in favor of apimachinery code.
2b0e272 Delete some unnecessary parameter passing.
8fd9303 Delete unused exec package.
3b86e64 Delete unused unstruct code.
d9f9a51 Fix names/doc in transformation config code.
6d935b6 Fix some Go nits.
a3dce94 Fix some go nits.
3081430 Fix some minor naming mistakes. (#434)
4eb2757 Further isolate unstructured with factories.
1af119d Further isolate unstructured with factories.
aff76e0 Gather resmap factory code into one file.
188ede2 Goland wants these vendored hg files.
0f5a39f Hide unstructured.Unstructured behind interface.
bb9fafa Improve command package isolation.
a5f5602 Improve kustomization.go comments.
aaee97c Improve unstruct test coverage and error messages.
317833a Increase sort determinism.
fb355eb Introduce gvk package to isolate apimachinery schema.
8f150d8 Introduce k8sdeps package to isolate k8s deps.
56e11b5 Isolate generator calls.
e32e5c2 Isolate k8sdeps to top level internal.
df5c3ab Maintain fields of TransformerConfig in sorted order.
d8b27ef Modify PathConfig.PathSlice method and add tests
8534107 Move crd package to transformerconfig.factory.
cdb78cb Move template files from docs/ to root
dcc9c4d Move yaml check to file in which it is called.
e65995c Notes on mySql example
b198b65 Objectify nbrSlice code.
e6558fb PR comments
7ab7108 Refactor crd package to depend on transformerconfig
7813995 Rename Application to KustTarget
22d955b Replant tree (needed for example tests).
f35e16b Simplify default config code.
90d03b0 Skip adding nameprefix to namespace
c9aff4c Spelling nits.
6b30244 Test field output ordering.
ce3daf2 Update install doc to use sigs.k8s.io
3fe047f Update ptrs to DAM doc.
cbd7a1b Use Go 1.11
c9887e8 WIP residPackage
2953dad add MakeHashTransformer in TransformerFactory; remove hash interface
94c3b12 add command to save the default transformer configurations to local files
d5aed20 add commonLabel fieldpath for volumeClaimTemplates
13c368a add default configurations for different transformers
808df20 add missing lines after copyright (#468)
14fc54e add namespace to id when create resmap from files
da35a21 add script build/vendor_kustomize.sh
f2f1125 add tests for resmap
b5cf3a2 add yaml-version of jsonpatch tests
0cb02f1 allow add labels/annotations to generated resources
c6a78ce change github.com/aws/aws-sdk-go to be the same revision in kubernetes
e095815 change golang.org/x/net to be the same revision as used in kubernetes
8a8f358 change sets.NewString() to []string
c3ae23d combine HashComfigMap and HashSecret to Hash
f7353b1 copy TypeMeta from apimachinery
a5f0d45 create namespace resource if not found
a9cf197 decouple configmapandsecret and hash packages
d67425d enable crd testcase
9ef96e9 enable preserving order with generatorOptions
279826f error out if patchesJson6902 target can't be found, fixes #335
8209aee fix copyright misalignment (#472)
2d26d95 fix indent
c27279c fix integration test script
4828114 fix kustomize edit add label bug
74d8575 fix kustomize edit add label bug
9d804ba fix lint errors in internal (#469)
62f7cdb fix the flaky test in crd package
3d4bf3a for yaml-formatted JSON6902 patches, convert first to json, then use the same code as for json-formatted JSON6902 patches
f783486 hide core/v1 behind interface
78de537 hide patch transformer behind interface
c614f4b missing : after patchesJson6902
c33a97f move transformerconfig package to transformers/config
261d64e port to golangci and make travisci improvements
8e0c55f remove apimachinery dependency from crd package (#430)
08da245 remove apimachinery dependency from internal/error package
96091df remove decoder interface since it is only used inside k8sdeps
4c7b63a remove dependency on apimachinery from gvk package
078c90c remove hard coded pathconfig
6c5a75b remove metadata.creationTimestamp field from configMapGenerator
90c88d7 skip filtering resmap when the resource is a cluster level resource
23963e8 skip hash transformer when DisableHash is set to true
d33d154 split k8sdeps package into sub packages
e5ea1b0 typo
6d4ad82 use 'sed -i.bak' instead of 'sed -i' to make it compatible with macos sed
f3e4615 use FakeFileSystem in configmapandsecret tests
71c3cf1 use local types in var reference

Assets 6

@droot droot released this Sep 13, 2018 · 708 commits to master since this release

In this release, following supports are added.

  • customizing an object by JSON patch 6902. JSON patch demo.

  • recognizing digest for image.

    kustomize edit set imagetag nginx:1.8.0 my-app:latest 
    alpine@sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
    

    will add following content to kustomization.YAML

     imageTags:
    - name: nginx	
      newTag: 1.8.0
    - name: my-app	
      newTag: latest
    - name: alpine
      digest: sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
    

Changelog

6a3e3c3 Add JSONPatch to kustomization
1c616b1 Add examples and docs for patchesJson6902
95cf508 Add github.com/krishicks/yaml-patch to vendor
8da2f37 Add gopkg.in/yaml.v2 to Gopkg.lock
7811d9f Add multibases test with namereference conflict
21ff81b Add multibases test with namereference nonconflict
7f0e9e3 Add patchJson6902 transformer
6dbf4b5 Apply code review recommendations
9361816 Cleanup addmetadata.
8810027 Enable jsonpath transformers in application
cdbd83a Fix some busted documentation links.
71f5105 Fix typo on staging
5401bd3 Implement support for digests in imageTags
cda909a Remove duplicate code.
340cb2b Remove unnecessary import aliases.
99e770b Remove unused variable.
d782abb Update patch factory and add multi transformer with checking conflicts
cedf215 add PatchJson6902Factory to make transformer
9700bc3 added all the documented secret for storageclasses
ce31dac added storageclass paramether secret for glusterfs configuration with kustomize
3d9d4bd address comments
829cb2b address comments
64fdb8d change github.com/kubernetes-sigs to sigs.k8s.io (#343)
b713d5a change patches to patchesStrategicMerge in tests and examples
7b30144 filter by namespace and nameprefix in namereference transformer
d78e77f fix remote build's for subdirectories
a9f44aa fix the release and build files
a76cb0b force using the git protocol to downlaod every kind of repo non just from github
4a297fa improve idslice
60d8334 remove dependency on internal error
6dc8029 remove go get varcheck
81b5cf6 remove inline json patch format
6457162 use apimachinery for annotation/label validation

Assets 6

@droot droot released this Aug 27, 2018 · 764 commits to master since this release

In this release, remote URL support is added. One can run kustomize build url or use the URL as a base in an overlay. More details, please take a look at remote target

Changelog

ec95e5f Add all dependency of go-getter
b29e449 Add docs README.md
759ba1c Add example for kustomize build {url}
3975ebc Add garbage collection KEP link
f018370 Add kustomize build {repoUrl}
a0089a2 Add missing files when running dep ensure
94ed0fe Add namereference of PersistentVolume in PersistentVolumeClain
20fd433 Add tests
f9a0e67 Add timeoutSeconds to secretArgs
f931e15 Add varcheck to presubmit.
b3993dc Adds starter validation framework for semantic validation of inputs.
38a5e12 Create CODE_OF_CONDUCT.md
950c353 Delete diff command and code it uses.
0833693 Disable creation of PDB matchLabels
2ae00db Don't crash on resource load errors
735a93d Fix some Go nits.
1e38240 Implements labels and annotations as subcommands of edit
da142a8 Move some docs to docs dir (declutter the top).
3b64447 Parse data into string map for easy access in RunAddMetadata
6a2786a Remove Complete function and references
1874154 Removed individual files in favor of combined metadata file
11c04dd Removes semantic validation from addmetadata.go and tests.
31dd8fc Restructured tests
524d593 Separate functions for RunnAddLabel and RunAddAnnotation
77f4811 Tests test Validate function
5fa209a Tweak docs readme
924aa6f Use iota declaration for constants and implements string method for KindOfAdd metadata
afac2fb Uses single file for both addLabel and addAnnotation commands, as the code is nearly identical. Tests included.
42e6ced add docs
2174741 add homebrew package to INSTALL.md
e2cd44f add support for kustomize edit set namespace
6221bed add typemeta to kustomization
6da691f cleanup after handling remote bases
72b1a4b combine fileLoader.New and NewLoader into one function: NewLoader
52c6b57 fix bug in the example download links
e113944 fix loader loader when run from gopath
3416917 fix the double quotation problem in ConfigMapGenerator
b02f777 manually add dependency on go-getter
6847bb7 trivial: Change dep constraint to an override

Assets 6

@droot droot released this Aug 10, 2018 · 830 commits to master since this release

Changelog

7b2baad Add -o flag to kustomize build
0b4df3d Add deprecation message for namePrefix behavior change
e304014 Add example for multibases
1b7171a Add glob support in edit add resource
bf73633 Add glob support in subcommands add patch and add configmap
5193d6b Add ingress annotations to the namereference path config
71f069c Add multibases example with different namespace
58bc4b1 Add support for using common base
f0cf457 Change the order of validate and expandFileSource in add configmap subcommand
9e5374e Combine loaderImpl and fileLoader.
7fe2338 Container Builder has been renamed Cloud Build
02f9329 Enumerate eschewed features in docs
37e9708 Eschew globbing doc
083d3cb More description of eschewed features
d7cbb95 More information in error message when secret gen fails
cf17050 Revert "Skip adding nameprefix to namespace"
10665c6 Skip adding nameprefix to namespace
4471b75 Use regexp in set imagetag
f881c19 add env sources to secrets
31c6a55 add namepreference for secret in ingress annotation
b6abd76 add namespace in ResId
79d1abe dep ensure run
7406dda fixes
2e7093e ignore the empty YAML object
8d7b5f8 preserve order and comments in edit
88aec95 remove commented code update multibases/README.md
de4d8b7 remove glob support from kustomization.yaml
36115a7 use regexp to determin if the image matched in imagetag transformer

Assets 6
You can’t perform that action at this time.