Drop initial code
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
{{- $clustername := .Values.cluster.name -}}
|
||||
{{- if eq .Values.cloudprovider "digitalocean" }}
|
||||
{{- range $index, $nodepool := .Values.nodepools }}
|
||||
apiVersion: rke-machine-config.cattle.io/v1
|
||||
kind: DigitaloceanConfig
|
||||
metadata:
|
||||
name: {{ $clustername }}-{{ $nodepool.name }}
|
||||
namespace: fleet-default
|
||||
{{- if $nodepool.accessToken }}
|
||||
accessToken: {{ $nodepool.accessToken }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.backups }}
|
||||
backups: {{ $nodepool.backups }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.image }}
|
||||
image: {{ $nodepool.image }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.ipv6 }}
|
||||
ipv6: {{ $nodepool.ipv6 }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.monitoring }}
|
||||
monitoring: {{ $nodepool.monitoring }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.privateNetworking }}
|
||||
privateNetworking: {{ $nodepool.privateNetworking }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.region }}
|
||||
region: {{ $nodepool.region }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.size }}
|
||||
size: {{ $nodepool.size }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshKeyContents }}
|
||||
sshKeyContents: {{ $nodepool.sshKeyContents }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshKeyFingerprint }}
|
||||
sshKeyFingerprint: {{ $nodepool.sshKeyFingerprint }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshPort }}
|
||||
sshPort: {{ $nodepool.sshPort | squote }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshUser }}
|
||||
sshUser: {{ $nodepool.sshUser }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.tags }}
|
||||
tags: {{ $nodepool.tags }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.userData }}
|
||||
userdata: {{- $nodepool.userData | toYaml | indent 1 }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- end }}
|
||||
{{ $nodepool := .Values.nodepool }}
|
||||
{{- if $nodepool }}
|
||||
apiVersion: rke-machine-config.cattle.io/v1
|
||||
kind: DigitaloceanConfig
|
||||
metadata:
|
||||
name: {{ $clustername }}-{{ $nodepool.name }}
|
||||
namespace: fleet-default
|
||||
{{- if $nodepool.accessToken }}
|
||||
accessToken: {{ $nodepool.accessToken }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.backups }}
|
||||
backups: {{ $nodepool.backups }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.image }}
|
||||
image: {{ $nodepool.image }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.ipv6 }}
|
||||
ipv6: {{ $nodepool.ipv6 }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.monitoring }}
|
||||
monitoring: {{ $nodepool.monitoring }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.privateNetworking }}
|
||||
privateNetworking: {{ $nodepool.privateNetworking }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.region }}
|
||||
region: {{ $nodepool.region }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.size }}
|
||||
size: {{ $nodepool.size }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshKeyContents }}
|
||||
sshKeyContents: {{ $nodepool.sshKeyContents }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshKeyFingerprint }}
|
||||
sshKeyFingerprint: {{ $nodepool.sshKeyFingerprint }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshPort }}
|
||||
sshPort: {{ $nodepool.sshPort | squote }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.sshUser }}
|
||||
sshUser: {{ $nodepool.sshUser }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.tags }}
|
||||
tags: {{ $nodepool.tags }}
|
||||
{{- end }}
|
||||
{{- if $nodepool.userData }}
|
||||
userdata: {{- $nodepool.userData | toYaml | indent 1 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user