Skip to content

Commit f6d6df8

Browse files
rsmittytalos-bot
authored andcommitted
feat: add new release process
This PR will move to publishing `bootstrap-components.yaml` and `metdata.yaml` upon tagging a release so that clusterctl can consume them. Signed-off-by: Spencer Smith <[email protected]>
1 parent 346df66 commit f6d6df8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ ARG TAG
4040
RUN cd config/manager \
4141
&& kustomize edit set image controller=${REGISTRY_AND_USERNAME}/${NAME}:${TAG} \
4242
&& cd - \
43-
&& kubectl kustomize config/default >/release.yaml
43+
&& kubectl kustomize config/default >/bootstrap-components.yaml \
44+
&& cp config/metadata/metadata.yaml /metadata.yaml
4445
FROM scratch AS release
45-
COPY --from=release-build /release.yaml /release.yaml
46+
COPY --from=release-build /bootstrap-components.yaml /bootstrap-components.yaml
47+
COPY --from=release-build /metadata.yaml /metadata.yaml
4648

4749
FROM build AS binary
4850
RUN --mount=type=cache,target=/root/.cache/go-build GOOS=linux go build -ldflags "-s -w" -o /manager

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ There are a few corequisites and assumptions that go into using this project:
1515
## Building and Installing
1616

1717
This project can be built simply by running `make release` from the root directory.
18-
Doing so will create a file called `_out/release.yaml`.
18+
Doing so will create a file called `_out/bootstrap-components.yaml`.
1919
If you wish, you can tweak settings by editing the release yaml.
20-
This file can then be installed into your management cluster with `kubectl apply -f _out/release.yaml`.
20+
This file can then be installed into your management cluster with `kubectl apply -f _out/bootstrap-components.yaml`.
2121

2222
Note that CABPT should be deployed as part of a set of controllers for Cluster API.
2323
You will need at least the upstream CAPI components and an infrastructure provider for v1alpha2 CAPI capabilities.

config/metadata/metadata.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
2+
kind: Metadata
3+
releaseSeries:
4+
- major: 0
5+
minor: 1
6+
contract: v1alpha2

0 commit comments

Comments
 (0)