Skip to content

Commit

Permalink
make sshKey,os and password optional in cluster template
Browse files Browse the repository at this point in the history
  • Loading branch information
eljohnson92 committed Feb 16, 2024
1 parent 4f4a534 commit e0569a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ metadata:
spec:
template:
spec:
image: ${LINODE_OS}
image: ${LINODE_OS:=""}
type: ${LINODE_CONTROL_PLANE_MACHINE_TYPE}
region: ${LINODE_REGION}
rootPass: ${LINODE_ROOT_PASS:=""}
authorizedKeys:
- ${LINODE_SSH_KEY}
- ${LINODE_SSH_KEY:=""}
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
Expand Down Expand Up @@ -126,11 +127,12 @@ metadata:
spec:
template:
spec:
image: ${LINODE_OS}
image: ${LINODE_OS:=""}
type: ${LINODE_MACHINE_TYPE}
region: ${LINODE_REGION}
rootPass: ${LINODE_ROOT_PASS:=""}
authorizedKeys:
- ${LINODE_SSH_KEY}
- ${LINODE_SSH_KEY:=""}
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
Expand Down

0 comments on commit e0569a5

Please sign in to comment.