diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index f8d0beb48..558952e42 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -7,8 +7,3 @@ resources: - ./controller-manager - ./crds - ./internalstorage/postgres - -patches: -- path: patches.yaml - target: - kind: Clusterpedia diff --git a/kustomize/patches.yaml b/kustomize/patches.yaml deleted file mode 100644 index 4d33cf3c2..000000000 --- a/kustomize/patches.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: apiregistration.k8s.io/v1 -kind: Clusterpedia -metadata: - name: clusterpedia -spec: - namespace: clusterpedia-system - createNamespace: true - persistenceMatchNode: None - clustersynchroManager: - image: - registry: localtest - repository: clustersynchro-manager-amd64 - tag: test - apiserver: - image: - registry: localtest - repository: apiserver-amd64 - tag: test \ No newline at end of file diff --git a/test/kustomize/kustomization.yaml b/test/kustomize/kustomization.yaml new file mode 100644 index 000000000..ea87c67f6 --- /dev/null +++ b/test/kustomize/kustomization.yaml @@ -0,0 +1,25 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../kustomize + +images: + - name: clustersynchroManager.image.registry + newName: localtest + - name : clustersynchroManager.image.repository + newName: clustersynchro-manager-amd64 + - name : clustersynchroManager.image.tag + newTag: test + - name: apiserver.image.registry + newName: localtest + - name : apiserver.image.repository + newName: clustersynchro-manager-amd64 + - name : apiserver.image.tag + newTag: test + - name: controller_manager.image.registry + newName: localtest + - name : controller_manager.image.repository + newName: clustersynchro-manager-amd64 + - name : controller_manager.image.tag + newTag: test \ No newline at end of file