Skip to content

Commit

Permalink
- added patches in vpcless flavors to delete the LinodeFirewall
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalvathreya committed Sep 3, 2024
1 parent a340c82 commit 04759dc
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/flavors/k3s/full-vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,11 @@ patches:
- sed -i '/swap/d' /etc/fstab
- swapoff -a
- hostnamectl set-hostname '{{ ds.meta_data.label }}' && hostname -F /etc/hostname
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}
8 changes: 8 additions & 0 deletions templates/flavors/k3s/vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,11 @@ patches:
enabled: true
ui:
enabled: true
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}
8 changes: 8 additions & 0 deletions templates/flavors/kubeadm/full-vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,11 @@ patches:
maxRetry: 5
retryPeriod: 2m
minHealthyPeriod: 2h
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}
8 changes: 8 additions & 0 deletions templates/flavors/kubeadm/vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,11 @@ patches:
patch: |-
- op: remove
path: /spec/kubeadmConfigSpec/initConfiguration/skipPhases
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}
8 changes: 8 additions & 0 deletions templates/flavors/rke2/full-vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ patches:
device: /dev/sdc
mounts:
- ["/dev/sdc", "/var/lib/etcd_data"]
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}
8 changes: 8 additions & 0 deletions templates/flavors/rke2/vpcless/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,11 @@ patches:
- sed -i '/swap/d' /etc/fstab
- swapoff -a
- hostnamectl set-hostname '{{ ds.meta_data.label }}' && hostname -F /etc/hostname
- target:
kind: LinodeFirewall
patch: |-
$patch: delete
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeFirewall
metadata:
name: ${CLUSTER_NAME}

0 comments on commit 04759dc

Please sign in to comment.