manifests/tests
cliveseldon da561762dd
Cherry pick: Fix web hook variables in seldon kustomize not being updated by kfctl (#1671)
2020-11-20 09:12:51 -08:00
..
katib/installs fix mysql deployment strategy (#1562) (#1643) 2020-11-15 19:05:04 -08:00
legacy_kustomizations Cherrypick "feat: remove outdated metadata UI manifests #1619" (#1637) 2020-11-12 08:12:50 -08:00
scripts Update the notebook-controller image. (#443) 2019-10-08 15:13:51 -07:00
stacks Cherry pick: Fix web hook variables in seldon kustomize not being updated by kfctl (#1671) 2020-11-20 09:12:51 -08:00
testdata_gcp_kpt/gcp Convert v1 to v2 setters & substituions in gcp (#1398) 2020-07-20 21:21:13 -07:00
tests/legacy_kustomizations Cherry pick: Fix web hook variables in seldon kustomize not being updated by kfctl (#1671) 2020-11-20 09:12:51 -08:00
tools commonLabels need to be immutable to support upgrading. (#1140) 2020-04-30 22:14:06 -07:00
workflows Increase unit test argo workflow TTL (#1611) 2020-11-05 15:08:50 -08:00
Makefile ASM Mesh id should be proj-${PROJECTNUBMER} (#1563) 2020-09-21 15:50:48 -07:00
OWNERS Update Notebook OWNERS (#1599) 2020-11-03 15:30:03 -08:00
README.md unittests should compare result of kustomize build to golden set of YAML resources. (#1016) 2020-03-22 17:52:44 -07:00
doc.go unittests should compare result of kustomize build to golden set of YAML resources. (#1016) 2020-03-22 17:52:44 -07:00
go.mod Add a test to verify no more use of deprecated env syntax (#1610) 2020-11-05 11:06:52 -08:00
go.sum Remove status fields from CRDs and empty annotations (#1179) 2020-05-20 14:28:19 -07:00
test_util.go unittests should compare result of kustomize build to golden set of YAML resources. (#1016) 2020-03-22 17:52:44 -07:00
validate_resources_test.go Add a test to verify no more use of deprecated env syntax (#1610) 2020-11-05 11:06:52 -08:00

README.md

Kustomize Manifest Tests

Unittests

There are two goals for the unittests:

  1. Verify that kustomizations are applied correctly (kubeflow/manifests#1014)
  2. Verify that various conventions are enforced (kubeflow/manifests#1015)

Verifying Kustomizations Are Applied Correctly

Examples of kustomizations that we would like to verify are applied and generate the expected output

  • Patches
  • Variable substitution
  • Composition of resources

The general approach to doing this is

  1. Check in one more "kustomization.yaml" files corresponding to test cases

  2. Run "kustomize build -o ..." and check in the output as the expected test output

    • Reviewers can verify changes to the expected output to ensure changes have the desired effect on the expected output
  3. Unittests run "kustomize build" and compare output to expected output to ensure kustomize packages are in sync with the expected output

  4. Make commands make it easy to regenerate the expected output as part of a change.

    cd tests
    make generate-changed-only