Skip to content

Commit

Permalink
Merge pull request #1054 from jacobweinstock/add-labels
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jacobweinstock authored Jan 4, 2025
2 parents 3a7c2cb + 7e1b220 commit 66c3d7c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/hardware_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type HardwareList struct {
// +kubebuilder:resource:path=hardware,scope=Namespaced,categories=tinkerbell,singular=hardware,shortName=hw
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:JSONPath=".status.state",name=State,type=string
// +kubebuilder:metadata:labels=clusterctl.cluster.x-k8s.io=
// +kubebuilder:metadata:labels=clusterctl.cluster.x-k8s.io/move=

// Hardware is the Schema for the Hardware API.
type Hardware struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

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

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-controller-v1alpha2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

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

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

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

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETARCH

EXPOSE 42113 42114

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

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

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

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/virtual-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3.20.3
ARG TARGETOS
ARG TARGETARCH

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

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

Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/tinkerbell.org_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.3
labels:
clusterctl.cluster.x-k8s.io: ""
clusterctl.cluster.x-k8s.io/move: ""
name: hardware.tinkerbell.org
spec:
group: tinkerbell.org
Expand Down

0 comments on commit 66c3d7c

Please sign in to comment.