Skip to content

Commit

Permalink
cleanup for additional clusterclasses when ready for rke2 and k3s (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Feb 29, 2024
1 parent 2143bea commit 4748538
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hack/generate-flavors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
FLAVORS_DIR="${REPO_ROOT}/templates/flavors"

for name in $(find "${FLAVORS_DIR}/"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v base); do
for name in $(find "${FLAVORS_DIR}/"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v base | grep -v clusterclass-base ); do
# clusterctl expects clusterclass not have the "cluster-template" prefix
# except for the actual cluster template using the clusterclass
if [[ "$name" == clusterclass* ]]; then
Expand Down
1 change: 0 additions & 1 deletion templates/addons/cluster-resource-set/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
Expand Down
3 changes: 2 additions & 1 deletion templates/common-init-files/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
namespace: default
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- secret.yaml
7 changes: 3 additions & 4 deletions templates/flavors/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster.yaml
- linode-cluster.yaml
- linode-machine-template.yaml
- machine-deployment.yaml
- linodeCluster.yaml
- linodeMachineTemplate.yaml
- machineDeployment.yaml
File renamed without changes.
6 changes: 6 additions & 0 deletions templates/flavors/clusterclass-base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- linodeClusterTemplate.yaml
- linodeMachineControlPlaneTemplate.yaml
- linodeMachineWorkerTemplate.yaml
12 changes: 6 additions & 6 deletions templates/flavors/clusterclass-kubeadm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- clusterclass.yaml
- linode-cluster-template.yaml
- linode-machine-controlplane-template.yaml
- linode-machine-worker-template.yaml
- kubeadm-controlplane-template.yaml
- kubeadm-config-template.yaml
- clusterClass.yaml
- kubeadmControlPlaneTemplate.yaml
- kubeadmConfigTemplate.yaml
- ../clusterclass-base
- ../../common-init-files
- ../../addons/cilium
- ../../addons/provider-linode
Expand Down
6 changes: 4 additions & 2 deletions templates/flavors/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- kubeadm-config-template.yaml
- kubeadm-control-plane.yaml
- kubeadmConfigTemplate.yaml
- kubeadmControlPlane.yaml
- ../../common-init-files
- ../../addons/cilium
- ../../addons/provider-linode
Expand Down
2 changes: 2 additions & 0 deletions templates/flavors/k3s/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- k3sControlPlane.yaml
Expand Down
2 changes: 2 additions & 0 deletions templates/flavors/rke2/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- rke2ControlPlane.yaml
Expand Down

0 comments on commit 4748538

Please sign in to comment.