File tree Expand file tree Collapse file tree 3 files changed +38
-21
lines changed Expand file tree Collapse file tree 3 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
clusterName : " capt-playground"
3
3
outputDir : " output"
4
- namespace : " tink "
4
+ namespace : " tinkerbell "
5
5
counts :
6
6
controlPlanes : 1
7
7
workers : 1
8
8
spares : 1
9
9
versions :
10
10
capt : v0.6.5
11
- chart : v0.18.1
11
+ chart : v0.19.0
12
12
kube : v1.29.4
13
13
os : 20.04
14
14
kubevip : 0.9.1
17
17
# providerRepository: "/home/tink/repos/tinkerbell/cluster-api-provider-tinkerbell/out/release/infrastructure-tinkerbell"
18
18
chart :
19
19
location : " oci://ghcr.io/tinkerbell/charts/tinkerbell"
20
- # location: "/home/tink/repos/tinkerbell/charts/tinkerbell/stack"
20
+ # location: "/home/tink/repos/tinkerbell/tinkerbell/helm/tinkerbell"
21
+ extraVars :
22
+ # - deployment.image=your.registry.com/tinkerbell/tinkerbell
23
+ # - deployment.imageTag=v0.19.1
24
+ # - deployment.agentImageTag=latest
21
25
os :
22
26
registry : ghcr.io/tinkerbell/cluster-api-provider-tinkerbell
23
27
distro : ubuntu
Original file line number Diff line number Diff line change 5
5
cat << EOF >/dev/null
6
6
---
7
7
clusterName: "capt-playground"
8
- outputDir: "/home/tink/repos/tinkerbell/cluster-api-provider-tinkerbell/ playground/output"
8
+ outputDir: "/home/tink/repos/tinkerbell/playground/capt /output"
9
9
namespace: "tink"
10
10
counts:
11
11
controlPlanes: 1
12
12
workers: 1
13
13
spares: 1
14
14
versions:
15
- capt: 0.5.3
16
- chart: 0.5.0
17
- kube: v1.28.8
18
- os: 22.04
15
+ capt: v0.6.5
16
+ chart: v0.19.0
17
+ kube: v1.29.4
18
+ os: 20.04
19
+ kubevip: 0.9.1
20
+ capt:
21
+ providerRepository: "https://github.com/tinkerbell/cluster-api-provider-tinkerbell/releases"
22
+ chart:
23
+ location: "oci://ghcr.io/tinkerbell/charts/tinkerbell"
24
+ extraVars:
25
+ - deployment.image=custom.registry/tinkerbell/tinkerbell
26
+ - deployment.imageTag=v0.19.1
27
+ - deployment.agentImageTag=latest
19
28
os:
20
- registry: reg.weinstocklabs.com /tinkerbell/cluster-api-provider-tinkerbell
29
+ registry: ghcr.io /tinkerbell/cluster-api-provider-tinkerbell
21
30
distro: ubuntu
22
- sshKey: ""
23
- version: "2204 "
31
+ sshKey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH9a2GwjgVfnpjOvIqNuJTwazS3tqJ9xzcepXzKMccVf capt-playground "
32
+ version: "2004 "
24
33
vm:
25
34
baseName: "node"
26
35
cpusPerVM: 2
51
60
gateway: 172.18.0.1
52
61
virtualBMC:
53
62
containerName: "virtualbmc"
54
- image: ghcr.io/jacobweinstock/virtualbmc
63
+ image: ghcr.io/jacobweinstock/virtualbmc:latest
55
64
user: "root"
56
65
pass: "calvin"
57
66
ip: 172.18.0.3
67
+ bootMode: netboot
58
68
totalNodes: 3
59
69
kind:
60
- kubeconfig: /home/tink/repos/tinkerbell/cluster-api-provider-tinkerbell/ playground/output/kind.kubeconfig
70
+ kubeconfig: /home/tink/repos/tinkerbell/playground/capt /output/kind.kubeconfig
61
71
gatewayIP: 172.18.0.1
62
72
nodeIPBase: 172.18.10.20
63
- bridgeName: br-d086780dac6b
73
+ bridgeName: br-3d1549d4f99f
64
74
tinkerbell:
65
75
vip: 172.18.10.74
66
76
hookosVip: 172.18.10.73
67
77
cluster:
68
78
controlPlane:
69
79
vip: 172.18.10.75
70
80
podCIDR: 172.100.0.0/16
71
- bootMode: netboot
72
81
EOF
73
82
74
83
set -euo pipefail
@@ -145,6 +154,8 @@ function main() {
145
154
exit 1
146
155
fi
147
156
yq e -i " .os.sshKey = \" $ssh_key \" " " $state_file "
157
+ # populate the config file with the generated SSH key
158
+ # so that we don't re-generate it every time
148
159
yq e -i " .os.sshKey = \" $ssh_key \" " " $config_file "
149
160
fi
150
161
}
Original file line number Diff line number Diff line change @@ -115,21 +115,23 @@ tasks:
115
115
sh : yq eval '.namespace' {{.STATE_FILE_FQ_PATH}}
116
116
LOCATION :
117
117
sh : yq eval '.chart.location' {{.STATE_FILE_FQ_PATH}}
118
- CHART_NAME : tink-stack
118
+ CHART_NAME : tinkerbell
119
119
BOOTMODE :
120
120
sh : yq eval '.bootMode' {{.STATE_FILE_FQ_PATH}}
121
121
GLOBAL_VARS :
122
122
- trustedProxies={"{{.TRUSTED_PROXIES}}"}
123
123
- publicIP={{.LB_IP}}
124
- - artifactsFileServer=http://{{.LB_IP2}}:8080
124
+ - artifactsFileServer=http://{{.LB_IP2}}:7173
125
125
ISO_VARS :
126
126
- deployment.envs.smee.dhcpEnabled=false
127
- - hookos.extension=both
128
- - deployment.envs.smee.isoUpstreamURL=http://{{.LB_IP2}}:8080/hook-latest-lts-x86_64-efi-initrd.iso
127
+ - optional.hookos.extension=both
128
+ - deployment.envs.smee.isoUpstreamURL=http://{{.LB_IP2}}:7173/hook-latest-lts-x86_64-efi-initrd.iso
129
+ EXTRA_VARS :
130
+ sh : yq eval '.chart.extraVars | .[]' {{.STATE_FILE_FQ_PATH}} | xargs
129
131
cmds :
130
- - KUBECONFIG="{{.KUBECONFIG}}" helm install {{.CHART_NAME}} {{.LOCATION}} --version "{{.STACK_CHART_VERSION}}" --create-namespace --namespace {{.NAMESPACE}} --wait {{range .GLOBAL_VARS}}--set "{{.}}" {{end}} {{- if eq .BOOTMODE "isoboot" }} {{- range .ISO_VARS }}--set "{{.}}" {{end}} {{end}}
132
+ - KUBECONFIG="{{.KUBECONFIG}}" helm upgrade -- install {{.CHART_NAME}} {{.LOCATION}} --version "{{.STACK_CHART_VERSION}}" --create-namespace --namespace {{.NAMESPACE}} --wait {{range .GLOBAL_VARS}}--set "{{.}}" {{end}} {{- if eq .BOOTMODE "isoboot" }} {{- range .ISO_VARS }}--set "{{.}}" {{ end }} {{ end }} {{- if .EXTRA_VARS }} {{- range (splitList " " .EXTRA_VARS ) }}--set "{{.}}" {{ end }} {{ end }}
131
133
status :
132
- - KUBECONFIG="{{.KUBECONFIG}}" helm list -n {{.NAMESPACE}} | grep -q {{.CHART_NAME}}
134
+ - helm_status=$( KUBECONFIG="{{.KUBECONFIG}}" helm status -n {{.NAMESPACE}} {{.CHART_NAME}} -o yaml | yq .info.status); [[ "$helm_status" == "deployed" ]]
133
135
134
136
vms :
135
137
run : once
You can’t perform that action at this time.
0 commit comments