Skip to content

Commit

Permalink
Refactor Controller Logic and Add Integration Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Oct 24, 2024
1 parent 5887593 commit 5624b82
Show file tree
Hide file tree
Showing 11 changed files with 423 additions and 148 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
- "Workload cluster creation"
- "Workload cluster scaling"
- "Workload cluster upgrade"
- "Certificate Refresh"
# TODO(ben): Remove once all tests are running stable.
fail-fast: false
steps:
Expand Down
9 changes: 8 additions & 1 deletion bootstrap/api/v1beta2/certificates_refresh_consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
package v1beta2

const (
CertificatesRefreshAnnotation = "v1beta2.k8sd.io/refresh-certificates"
CertificatesRefreshAnnotation = "v1beta2.k8sd.io/refresh-certificates"
CertificatesRefreshStatusAnnotation = "v1beta2.k8sd.io/refresh-certificates-status"
)

const (
CertificatesRefreshInProgressStatus = "in-progress"
CertificatesRefreshDoneStatus = "done"
CertificatesRefreshFailedStatus = "failed"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ spec:
items:
type: string
type: array
channel:
description: Channel is the channel to use for the snap install.
type: string
bootstrapConfig:
description: BootstrapConfig is the data to be passed to the bootstrap
script.
Expand Down Expand Up @@ -87,6 +84,9 @@ spec:
- secret
type: object
type: object
channel:
description: Channel is the channel to use for the snap install.
type: string
controlPlane:
description: CK8sControlPlaneConfig is configuration for the control
plane node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ spec:
items:
type: string
type: array
channel:
description: Channel is the channel to use for the snap install.
type: string
bootstrapConfig:
description: BootstrapConfig is the data to be passed to the
bootstrap script.
Expand Down Expand Up @@ -94,6 +91,9 @@ spec:
- secret
type: object
type: object
channel:
description: Channel is the channel to use for the snap install.
type: string
controlPlane:
description: CK8sControlPlaneConfig is configuration for the
control plane node.
Expand Down
Loading

0 comments on commit 5624b82

Please sign in to comment.