Skip to content

Commit 984d15b

Browse files
Merge pull request #6819 from zalando-incubator/all/add-values-prefix
all: add .Values prefix
2 parents ca0e839 + 074733f commit 984d15b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

cluster/etcd/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Resources:
5959
ETCD_TRUSTED_CA_FILE=/etc/etcd/ssl/ca.cert
6060
ETCD_LOG_LEVEL=info
6161
HOSTED_ZONE="{{.Values.hosted_zone}}"
62-
S3_CERTS_BUCKET="{{ .S3GeneratedFilesPath }}"
62+
S3_CERTS_BUCKET="{{ .Values.S3GeneratedFilesPath }}"
6363
AWS_DEFAULT_REGION="{{ .Cluster.Region }}"
6464
runcmd:
6565
- [ cfn-signal, --success, 'true', --stack, ${AWS::StackName}, --resource, AppServer, --region, ${AWS::Region} ]

cluster/node-pools/master-default/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Resources:
8080
- !Ref 'AWS::Region'
8181
- MachineImage
8282
InstanceType: "{{ index .NodePool.InstanceTypes 0 }}"
83-
UserData: "{{ .UserData }}"
83+
UserData: "{{ .Values.UserData }}"
8484
Type: 'AWS::EC2::LaunchTemplate'
8585
AutoScalingInstanceProfile:
8686
Properties:

cluster/node-pools/master-default/userdata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ write_files:
1111
- owner: root:root
1212
path: /etc/kuberuntu/s3-certs.env
1313
content: |
14-
S3_CERTS_BUCKET={{ .S3GeneratedFilesPath }}
14+
S3_CERTS_BUCKET={{ .Values.S3GeneratedFilesPath }}
1515
AWS_DEFAULT_REGION={{ .Cluster.Region }}
1616
1717
- owner: root:root

cluster/node-pools/worker-combined/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Resources:
157157
InstanceMarketOptions:
158158
MarketType: spot
159159
{{ end }}
160-
UserData: "{{ .UserData }}"
160+
UserData: "{{ .Values.UserData }}"
161161
Type: 'AWS::EC2::LaunchTemplate'
162162
AutoScalingInstanceProfile:
163163
Properties:

cluster/node-pools/worker-karpenter/provisioners.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ spec:
136136
- associatePublicIPAddress: true
137137
deviceIndex: 0
138138
userData: |
139-
{{.UserData | indent 4}}
139+
{{ .Values.UserData | indent 4 }}
140140
tags:
141141
Name: "{{ .NodePool.Name }} ({{ .Cluster.ID }})"
142142
node.kubernetes.io/role: worker

cluster/node-pools/worker-splitaz/stack.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Resources:
135135
{{ end }}
136136
LaunchTemplate:
137137
Properties:
138-
LaunchTemplateName: '{{ $data.Cluster.LocalID }}-{{ $data.NodePool.Name }}'
138+
LaunchTemplateName: '{{ .Cluster.LocalID }}-{{ .NodePool.Name }}'
139139
LaunchTemplateData:
140140
{{- if eq .Cluster.ConfigItems.kuberuntu_distro_worker "jammy" }}
141141
TagSpecifications:
@@ -149,8 +149,8 @@ Resources:
149149
BlockDeviceMappings:
150150
- DeviceName: /dev/sda1
151151
Ebs:
152-
DeleteOnTermination: {{$data.NodePool.ConfigItems.ebs_root_volume_delete_on_termination}}
153-
VolumeSize: {{$data.NodePool.ConfigItems.ebs_root_volume_size}}
152+
DeleteOnTermination: {{ .NodePool.ConfigItems.ebs_root_volume_delete_on_termination }}
153+
VolumeSize: {{ .NodePool.ConfigItems.ebs_root_volume_size }}
154154
VolumeType: gp3
155155
NetworkInterfaces:
156156
- DeviceIndex: 0
@@ -166,11 +166,11 @@ Resources:
166166
- !Ref 'AWS::Region'
167167
- MachineImage
168168
InstanceType: "{{ index .NodePool.InstanceTypes 0 }}"
169-
{{- if and $data.NodePool.IsSpot (eq (len $data.NodePool.InstanceTypes) 1) }}
169+
{{- if and .NodePool.IsSpot (eq (len .NodePool.InstanceTypes) 1) }}
170170
InstanceMarketOptions:
171171
MarketType: spot
172172
{{ end }}
173-
UserData: "{{ .UserData }}"
173+
UserData: "{{ .Values.UserData }}"
174174
Type: 'AWS::EC2::LaunchTemplate'
175175
{{ end }}
176176

cluster/node-pools/worker-splitaz/userdata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ write_files:
2323
- owner: root:root
2424
path: /etc/kuberuntu/s3-certs.env
2525
content: |
26-
S3_CERTS_BUCKET={{ .S3GeneratedFilesPath }}
26+
S3_CERTS_BUCKET={{ .Values.S3GeneratedFilesPath }}
2727
AWS_DEFAULT_REGION={{ .Cluster.Region }}
2828
2929
- owner: root:root

0 commit comments

Comments
 (0)