Skip to content

Commit be72b75

Browse files
Merge pull request #312 from shiftstack/capo-bump
NO-JIRA: Bump to latest CAPO v0.10
2 parents 429fbf5 + 11fe49c commit be72b75

File tree

15 files changed

+153
-12
lines changed

15 files changed

+153
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ generate-api-docs-%: $(GEN_CRD_API_REFERENCE_DOCS) FORCE
306306

307307
.PHONY: docker-build
308308
docker-build: ## Build the docker image for controller-manager
309-
docker build -f Dockerfile --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CONTROLLER_IMG_TAG)
309+
docker build -f Dockerfile --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg ldflags="$(LDFLAGS)" . -t $(CONTROLLER_IMG_TAG)
310310

311311
.PHONY: docker-push
312312
docker-push: ## Push the docker image

api/v1alpha5/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha6/openstackcluster_conversion.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,10 @@ func restorev1beta1Bastion(previous **infrav1.Bastion, dst **infrav1.Bastion) {
478478

479479
optional.RestoreString(&(*previous).FloatingIP, &(*dst).FloatingIP)
480480
optional.RestoreString(&(*previous).AvailabilityZone, &(*dst).AvailabilityZone)
481-
optional.RestoreBool(&(*previous).Enabled, &(*dst).Enabled)
481+
482+
if (*dst).Enabled != nil && !*(*dst).Enabled {
483+
(*dst).Enabled = (*previous).Enabled
484+
}
482485
}
483486

484487
func Convert_v1alpha6_Bastion_To_v1beta1_Bastion(in *Bastion, out *infrav1.Bastion, s apiconversion.Scope) error {

api/v1alpha6/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha7/openstackcluster_conversion.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,10 @@ func restorev1beta1Bastion(previous **infrav1.Bastion, dst **infrav1.Bastion) {
416416
restorev1beta1MachineSpec((*previous).Spec, (*dst).Spec)
417417
optional.RestoreString(&(*previous).FloatingIP, &(*dst).FloatingIP)
418418
optional.RestoreString(&(*previous).AvailabilityZone, &(*dst).AvailabilityZone)
419-
optional.RestoreBool(&(*previous).Enabled, &(*dst).Enabled)
419+
420+
if (*dst).Enabled != nil && !*(*dst).Enabled {
421+
(*dst).Enabled = (*previous).Enabled
422+
}
420423
}
421424

422425
func Convert_v1alpha7_Bastion_To_v1beta1_Bastion(in *Bastion, out *infrav1.Bastion, s apiconversion.Scope) error {

api/v1alpha7/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ type Bastion struct {
795795
// waiting until the bastion has been deleted.
796796
// +kubebuilder:default:=true
797797
// +optional
798-
Enabled optional.Bool `json:"enabled,omitempty"`
798+
Enabled *bool `json:"enabled,omitempty"`
799799

800800
// Spec for the bastion itself
801801
Spec *OpenStackMachineSpec `json:"spec,omitempty"`

config/manager/manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ spec:
4646
privileged: false
4747
runAsUser: 65532
4848
runAsGroup: 65532
49+
terminationMessagePolicy: FallbackToLogsOnError
4950
terminationGracePeriodSeconds: 10
5051
securityContext:
5152
runAsNonRoot: true

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func main() {
233233
cfg, err := config.GetConfigWithContext(os.Getenv("KUBECONTEXT"))
234234
if err != nil {
235235
setupLog.Error(err, "unable to get kubeconfig")
236+
os.Exit(1)
236237
}
237238
cfg.QPS = restConfigQPS
238239
cfg.Burst = restConfigBurst

openshift/manifests/0000_30_cluster-api-provider-openstack_04_infrastructure-components.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16925,6 +16925,7 @@ data:
1692516925
privileged: false
1692616926
runAsGroup: 65532
1692716927
runAsUser: 65532
16928+
terminationMessagePolicy: FallbackToLogsOnError
1692816929
volumeMounts:
1692916930
- mountPath: /tmp/k8s-webhook-server/serving-certs
1693016931
name: cert

0 commit comments

Comments
 (0)