From 6c53bb1c39c880cf5db1cda6aa2fc7f195ef9f4c Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Thu, 21 Mar 2024 12:30:14 +0000 Subject: [PATCH] build: Remove unused example kustomizations Missed when reorganising example kustomizations in previous PR. --- .../bases/aws/kustomization.yaml.tmpl | 155 ------------------ .../bases/docker/kustomization.yaml.tmpl | 69 -------- 2 files changed, 224 deletions(-) delete mode 100644 hack/examples/bases/aws/kustomization.yaml.tmpl delete mode 100644 hack/examples/bases/docker/kustomization.yaml.tmpl diff --git a/hack/examples/bases/aws/kustomization.yaml.tmpl b/hack/examples/bases/aws/kustomization.yaml.tmpl deleted file mode 100644 index 11a33741f..000000000 --- a/hack/examples/bases/aws/kustomization.yaml.tmpl +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 2023 D2iQ, Inc. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: -- ./calico/crs -- ./calico/helm-addon -- ./cilium/crs -- ./cilium/helm-addon - -namePrefix: aws- - -labels: -- includeSelectors: false - pairs: - cluster.x-k8s.io/provider: aws - -patches: -- target: - group: cluster.x-k8s.io - kind: Cluster - patch: |- - - op: "add" - path: "/spec/topology/class" - value: "aws-quick-start" - - op: "remove" - path: "/metadata/labels/cni" - - op: "add" - path: "/spec/topology/variables/0/value/aws" - value: - region: us-west-2 - - op: "add" - path: "/spec/topology/variables/0/value/controlPlane" - value: - aws: - ami: - lookup: - format: "$${AMI_LOOKUP_FORMAT}" - org: "$${AMI_LOOKUP_ORG}" - baseOS: "$${AMI_LOOKUP_BASEOS}" - - op: "add" - path: "/spec/topology/variables/-" - value: - name: "workerConfig" - value: - aws: - ami: - lookup: - format: "$${AMI_LOOKUP_FORMAT}" - org: "$${AMI_LOOKUP_ORG}" - baseOS: "$${AMI_LOOKUP_BASEOS}" - - op: "add" - path: "/spec/topology/variables/0/value/addons/cpi" - value: {} - - op: "add" - path: "/spec/topology/variables/0/value/addons/csi" - value: - providers: - - name: aws-ebs -- target: - group: cluster.x-k8s.io - kind: ClusterClass - patch: |- - - op: "add" - path: "/spec/controlPlane/machineInfrastructure/ref/name" - value: "aws-quick-start-control-plane" - - op: "add" - path: "/spec/controlPlane/ref/name" - value: "aws-quick-start-control-plane" - - op: "add" - path: "/spec/infrastructure/ref/name" - value: "aws-quick-start" - - op: "add" - path: "/spec/workers/machineDeployments/0/template/bootstrap/ref/name" - value: "aws-quick-start-worker-bootstraptemplate" - - op: "add" - path: "/spec/workers/machineDeployments/0/template/infrastructure/ref/name" - value: "aws-quick-start-worker-machinetemplate" - - op: "add" - path: "/spec/patches" - value: - - name: "cluster-config" - external: - generateExtension: "awsclusterconfigpatch.cluster-api-runtime-extensions-nutanix" - discoverVariablesExtension: "awsclusterconfigvars.cluster-api-runtime-extensions-nutanix" - - name: "worker-config" - external: - generateExtension: "awsworkerconfigpatch.cluster-api-runtime-extensions-nutanix" - discoverVariablesExtension: "awsworkerconfigvars.cluster-api-runtime-extensions-nutanix" - - name: identityRef - definitions: - - jsonPatches: - - op: add - path: /spec/template/spec/identityRef - value: - kind: AWSClusterControllerIdentity - name: default - selector: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 - kind: AWSClusterTemplate - matchResources: - infrastructureCluster: true - description: AWSClusterStaticIdentity identityRef to use when creating the cluster - - op: "remove" - path: "/spec/variables" -- target: - group: infrastructure.cluster.x-k8s.io - kind: AWSMachineTemplate - name: quick-start-worker-machinetemplate - patch: |- - - op: "add" - path: "/spec/template/spec/instanceType" - value: "m5.2xlarge" -- target: - group: infrastructure.cluster.x-k8s.io - kind: AWSMachineTemplate - name: quick-start-control-plane - patch: |- - - op: "add" - path: "/spec/template/spec/instanceType" - value: "m5.xlarge" -- target: - group: infrastructure.cluster.x-k8s.io - kind: AWSMachineTemplate - name: quick-start-worker-machinetemplate - patch: |- - - op: "add" - path: "/spec/template/spec/sshKeyName" - value: "" -- target: - group: infrastructure.cluster.x-k8s.io - kind: AWSMachineTemplate - name: quick-start-control-plane - patch: |- - - op: "add" - path: "/spec/template/spec/sshKeyName" - value: "" -- target: - kind: ConfigMap - patch: | - $$patch: delete - apiVersion: v1 - kind: ConfigMap - metadata: - name: aws-cni-$${CLUSTER_NAME}-crs-0 -- target: - kind: ClusterResourceSet - patch: | - $$patch: delete - apiVersion: addons.cluster.x-k8s.io/v1beta1 - kind: ConfigMap - metadata: - name: aws-$${CLUSTER_NAME}-crs-0 diff --git a/hack/examples/bases/docker/kustomization.yaml.tmpl b/hack/examples/bases/docker/kustomization.yaml.tmpl deleted file mode 100644 index e8b14cc6c..000000000 --- a/hack/examples/bases/docker/kustomization.yaml.tmpl +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2023 D2iQ, Inc. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: -- ./cilium/crs -- ./cilium/helm-addon -- ./calico/crs -- ./calico/helm-addon -- https://github.com/kubernetes-sigs/cluster-api/releases/download/${CLUSTERCTL_VERSION}/clusterclass-quick-start.yaml - -namePrefix: docker- - -labels: -- includeSelectors: false - pairs: - cluster.x-k8s.io/provider: docker - -patches: -- target: - group: cluster.x-k8s.io - kind: Cluster - patch: |- - - op: "remove" - path: "/metadata/namespace" - - op: "add" - path: "/spec/topology/class" - value: "docker-quick-start" - - op: "add" - path: "/spec/topology/variables/0/value/docker" - value: {} - - op: "remove" - path: "/spec/topology/workers/machinePools" -- target: - group: cluster.x-k8s.io - kind: ClusterClass - patch: |- - - op: "add" - path: "/spec/controlPlane/machineInfrastructure/ref/name" - value: "docker-quick-start-control-plane" - - op: "add" - path: "/spec/controlPlane/ref/name" - value: "docker-quick-start-control-plane" - - op: "add" - path: "/spec/infrastructure/ref/name" - value: "docker-quick-start-cluster" - - op: "add" - path: "/spec/workers/machineDeployments/0/template/bootstrap/ref/name" - value: "docker-quick-start-default-worker-bootstraptemplate" - - op: "add" - path: "/spec/workers/machineDeployments/0/template/infrastructure/ref/name" - value: "docker-quick-start-default-worker-machinetemplate" - - op: "add" - path: "/spec/patches" - value: - - name: "cluster-config" - external: - generateExtension: "dockerclusterconfigpatch.cluster-api-runtime-extensions-nutanix" - discoverVariablesExtension: "dockerclusterconfigvars.cluster-api-runtime-extensions-nutanix" - - name: "worker-config" - external: - generateExtension: "dockerworkerconfigpatch.cluster-api-runtime-extensions-nutanix" - discoverVariablesExtension: "dockerworkerconfigvars.cluster-api-runtime-extensions-nutanix" - - op: "remove" - path: "/spec/variables" - - op: "remove" - path: "/spec/workers/machinePools"