From edb629474191410ce0b13689070dcfe269da1111 Mon Sep 17 00:00:00 2001 From: Anna Song Date: Thu, 30 Jun 2022 17:21:23 +0000 Subject: [PATCH] Add kustomization with remote reference --- api/krusty/testdata/localize/remote/hpa.yaml | 11 +++++++++++ .../testdata/localize/remote/kustomization.yaml | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 api/krusty/testdata/localize/remote/hpa.yaml create mode 100644 api/krusty/testdata/localize/remote/kustomization.yaml diff --git a/api/krusty/testdata/localize/remote/hpa.yaml b/api/krusty/testdata/localize/remote/hpa.yaml new file mode 100644 index 000000000..7b429802e --- /dev/null +++ b/api/krusty/testdata/localize/remote/hpa.yaml @@ -0,0 +1,11 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: hpa-deployment +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: localize-test-deployment-simple + minReplicas: 1 + maxReplicas: 10 \ No newline at end of file diff --git a/api/krusty/testdata/localize/remote/kustomization.yaml b/api/krusty/testdata/localize/remote/kustomization.yaml new file mode 100644 index 000000000..58807f0a2 --- /dev/null +++ b/api/krusty/testdata/localize/remote/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - https://github.com/kubernetes-sigs/kustomize//api/krusty/testdata/localize/simple?ref=kustomize/v4.5.5 + - hpa.yaml + +commonLabels: + purpose: remoteReference \ No newline at end of file