Skip to content

Commit 66c3d7c

Browse files
Merge pull request #1054 from jacobweinstock/add-labels
Add CAPI labels to Hardware CRD: ## Description <!--- Please describe what this PR is going to change --> These labels allow CAPI to move the Hardware CR's during a clusterctl move command. This won't affect non CAPI use. ## Why is this needed <!--- Link to issue you have raised --> Fixes: # ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## How are existing users impacted? What migration steps/scripts do we need? <!--- Fixes a bug, unblocks installation, removes a component of the stack etc --> <!--- Requires a DB migration script, etc. --> ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 3a7c2cb + 7e1b220 commit 66c3d7c

File tree

8 files changed

+11
-6
lines changed

8 files changed

+11
-6
lines changed

api/v1alpha1/hardware_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type HardwareList struct {
3131
// +kubebuilder:resource:path=hardware,scope=Namespaced,categories=tinkerbell,singular=hardware,shortName=hw
3232
// +kubebuilder:storageversion
3333
// +kubebuilder:printcolumn:JSONPath=".status.state",name=State,type=string
34+
// +kubebuilder:metadata:labels=clusterctl.cluster.x-k8s.io=
35+
// +kubebuilder:metadata:labels=clusterctl.cluster.x-k8s.io/move=
3436

3537
// Hardware is the Schema for the Hardware API.
3638
type Hardware struct {

cmd/tink-agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.20.3
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
6+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
77

88
COPY bin/tink-agent-${TARGETOS}-${TARGETARCH} /usr/bin/tink-agent
99

cmd/tink-controller-v1alpha2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.20.3
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
6+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
77

88
COPY bin/tink-controller-v1alpha2-${TARGETOS}-${TARGETARCH} /usr/bin/tink-controller
99

cmd/tink-controller/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.20.3
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
6+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
77

88
COPY bin/tink-controller-${TARGETOS}-${TARGETARCH} /usr/bin/tink-controller
99

cmd/tink-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG TARGETARCH
55

66
EXPOSE 42113 42114
77

8-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
8+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
99

1010
COPY bin/tink-server-${TARGETOS}-${TARGETARCH} /usr/bin/tink-server
1111

cmd/tink-worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.20.3
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
6+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
77

88
COPY bin/tink-worker-${TARGETOS}-${TARGETARCH} /usr/bin/tink-worker
99

cmd/virtual-worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.20.3
33
ARG TARGETOS
44
ARG TARGETARCH
55

6-
RUN apk add --no-cache --update --upgrade ca-certificates=20240705-r0
6+
RUN apk add --no-cache --update --upgrade ca-certificates=20241121-r0
77

88
COPY bin/virtual-worker-${TARGETOS}-${TARGETARCH} /usr/bin/virtual-worker
99

config/crd/bases/tinkerbell.org_hardware.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.16.3
6+
labels:
7+
clusterctl.cluster.x-k8s.io: ""
8+
clusterctl.cluster.x-k8s.io/move: ""
69
name: hardware.tinkerbell.org
710
spec:
811
group: tinkerbell.org

0 commit comments

Comments
 (0)