Skip to content

Commit 35364da

Browse files
authored
Update Tiltfile: (#503)
## Description This gets it working with the new build process. Fixes: # ## How Has This Been Tested? ## How are existing users impacted? What migration steps/scripts do we need? ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents c02d6fb + f5f7a41 commit 35364da

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Tiltfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
# Run `make build` to generate dist/artifacts.json and dist/metadata.json
2+
# before running this Tiltfile.
3+
artifacts = read_json('dist/artifacts.json')
4+
metadata = read_json('dist/metadata.json')
5+
6+
goarch = metadata['runtime']['goarch']
7+
for x in artifacts:
8+
if 'goarch' in x:
9+
if x['goarch'] == goarch:
10+
TARGETPLATFORM = "dist/build_{}".format(x['target'])
11+
break
12+
113
docker_build(
214
'ghcr.io/tinkerbell/cluster-api-provider-tinkerbell',
315
'.',
416
dockerfile='Dockerfile',
17+
build_args={
18+
'TARGETPLATFORM': TARGETPLATFORM,
19+
},
520
)
621
k8s_yaml(kustomize('./config/default'))
722
default_registry('ttl.sh/meohmy-dghentld')

config/default/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
spec:
99
containers:
1010
# Change the value of image field below to your controller image URL
11-
- image: ghcr.io/tinkerbell/cluster-api-provider-tinkerbell:v0.6.6
11+
- image: ghcr.io/tinkerbell/cluster-api-provider-tinkerbell:v0.6.7
1212
name: manager

0 commit comments

Comments
 (0)