mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
add inventory package and refactor inventory transformer
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
// This is an example of using a helm chart as a base,
|
||||
// inflating it and then customizing it with a nameprefix
|
||||
// applied to all its resources.
|
||||
//
|
||||
//
|
||||
// The helm chart used is downloaded from
|
||||
// https://github.com/helm/charts/tree/master/stable/minecraft
|
||||
// with each test run, so it's a bit brittle as that
|
||||
@@ -36,7 +36,7 @@ import (
|
||||
// This test requires having the helm binary on the PATH.
|
||||
//
|
||||
// TODO: Download and inflate the chart, and check that
|
||||
// in for the test.
|
||||
// in for the test.
|
||||
func TestChartInflatorExecPlugin(t *testing.T) {
|
||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
@@ -103,17 +103,14 @@ data:
|
||||
if err != nil {
|
||||
t.Fatalf("Err: %v", err)
|
||||
}
|
||||
//nolint
|
||||
th.assertActualEqualsExpected(m, `
|
||||
apiVersion: v1
|
||||
data:
|
||||
_Secret_default_my-pass: 54f87m6fd6
|
||||
_Secret_default_my-pass---apps_Deployment_default_my-mysql: 54f87m6fd6
|
||||
_Service_default_my-mmmysql: 54f87m6fd6
|
||||
apps_Deployment_default_my-mysql: 54f87m6fd6
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
annotations:
|
||||
current: 54f87m6fd6
|
||||
kustomize.config.k8s.io/Inventory: '{"current":{"apps_v1beta2_Deployment|default|my-mysql":null,"~G_v1_Secret|default|my-pass":[{"group":"apps","version":"v1beta2","kind":"Deployment","name":"my-mysql","namespace":"default"}],"~G_v1_Service|default|my-mmmysql":null}}'
|
||||
kustomize.config.k8s.io/InventoryHash: kd67f7ht8t
|
||||
name: haha
|
||||
namespace: default
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user