Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ade7f77
Fix down-conversion of IdentityRef
mdbooth Jul 4, 2024
550d519
Merge pull request #2138 from shiftstack/issue2136
k8s-ci-robot Jul 4, 2024
54c73d1
CARRY: Downstream OWNERS
pierreprinetti Apr 4, 2022
10ec2b0
CARRY: Add Snyk security scan config
racheljpg Dec 18, 2023
23e1aae
CARRY: Add OCP CI config
mdbooth Oct 2, 2023
dbe5b07
CARRY: Mark CAPO as second level operator
mdbooth Oct 5, 2023
0dc4e1a
CARRY: Don't ignore vendor directories
mdbooth Oct 3, 2023
676842f
CARRY: Add verify-vendoring make target
mdbooth Oct 4, 2023
87c7297
Add cluster-capi-operator integration
mdbooth Nov 22, 2023
32db66d
openshift: Add make verify and test
mdbooth Nov 28, 2023
167a93c
openshift: Fix label of cluster-capi infrastructure CM
mdbooth Nov 30, 2023
70d6f59
openshift: Add (stub) make e2e
stephenfin Dec 1, 2023
faec813
vendoring: add cluster-capi-operator && go mod vendor
EmilienM Nov 23, 2023
1929a0c
Add cluster-capi-operator-specific e2e tests
EmilienM Nov 23, 2023
9470167
openshift/manifests: Drop single-node-developer profile
wking Jan 3, 2024
657bb18
openshift/manifests: CloudCredential capability for CredentialsRequest
wking Jan 3, 2024
3ffdd47
Updating openstack-cluster-api-controllers-container image to be cons…
Mar 21, 2024
4ef4219
openshift: Set FallbackToLogsOnError on infra-cluster controller
mdbooth May 8, 2024
8aa2211
Remove dulek from shiftstack-team
stephenfin May 15, 2024
e8d1f0a
CARRY: Updating openstack-cluster-api-controllers-container
EmilienM Jun 20, 2024
f760150
CARRY: go mod vendor
EmilienM Jul 29, 2024
7141897
Merge remote-tracking branch 'openshift/main' into manualRebase
EmilienM Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions api/v1alpha6/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package v1alpha6

import (
"slices"
"testing"

"github.com/google/go-cmp/cmp"
Expand All @@ -31,7 +32,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/conversion"

infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
"sigs.k8s.io/cluster-api-provider-openstack/internal/futures"
testhelpers "sigs.k8s.io/cluster-api-provider-openstack/test/helpers"
)

Expand Down Expand Up @@ -123,7 +123,7 @@ func TestFuzzyConversion(t *testing.T) {
},
}

return futures.SlicesConcat(v1alpha6FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
return slices.Concat(v1alpha6FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
}

t.Run("for OpenStackCluster", runParallel(utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Expand Down
5 changes: 4 additions & 1 deletion api/v1alpha6/openstackcluster_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ func Convert_v1beta1_OpenStackClusterSpec_To_v1alpha6_OpenStackClusterSpec(in *i
}

out.CloudName = in.IdentityRef.CloudName
out.IdentityRef = &OpenStackIdentityReference{Name: in.IdentityRef.Name}
out.IdentityRef = &OpenStackIdentityReference{}
if err := Convert_v1beta1_OpenStackIdentityReference_To_v1alpha6_OpenStackIdentityReference(&in.IdentityRef, out.IdentityRef, s); err != nil {
return err
}

if in.APIServerLoadBalancer != nil {
if err := Convert_v1beta1_APIServerLoadBalancer_To_v1alpha6_APIServerLoadBalancer(in.APIServerLoadBalancer, &out.APIServerLoadBalancer, s); err != nil {
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha6/openstackmachine_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ func Convert_v1beta1_OpenStackMachineSpec_To_v1alpha6_OpenStackMachineSpec(in *i
}

if in.IdentityRef != nil {
out.IdentityRef = &OpenStackIdentityReference{Name: in.IdentityRef.Name}
out.CloudName = in.IdentityRef.CloudName
}

Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha6/types_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ func Convert_v1alpha6_OpenStackIdentityReference_To_v1beta1_OpenStackIdentityRef

func Convert_v1beta1_OpenStackIdentityReference_To_v1alpha6_OpenStackIdentityReference(in *infrav1.OpenStackIdentityReference, out *OpenStackIdentityReference, _ apiconversion.Scope) error {
out.Name = in.Name
// Kind will be overwritten during restore if it was previously set to some other value, but if not then some value is still required
out.Kind = "Secret"
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha7/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package v1alpha7

import (
"slices"
"testing"

"github.com/google/go-cmp/cmp"
Expand All @@ -31,7 +32,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/conversion"

infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
"sigs.k8s.io/cluster-api-provider-openstack/internal/futures"
testhelpers "sigs.k8s.io/cluster-api-provider-openstack/test/helpers"
)

Expand Down Expand Up @@ -91,7 +91,7 @@ func TestFuzzyConversion(t *testing.T) {
},
}

return futures.SlicesConcat(v1alpha7FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
return slices.Concat(v1alpha7FuzzerFuncs, testhelpers.InfraV1FuzzerFuncs())
}

t.Run("for OpenStackCluster", runParallel(utilconversion.FuzzTestFunc(utilconversion.FuzzTestFuncInput{
Expand Down
5 changes: 4 additions & 1 deletion api/v1alpha7/openstackcluster_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ func Convert_v1beta1_OpenStackClusterSpec_To_v1alpha7_OpenStackClusterSpec(in *i
}

out.CloudName = in.IdentityRef.CloudName
out.IdentityRef = &OpenStackIdentityReference{Name: in.IdentityRef.Name}
out.IdentityRef = &OpenStackIdentityReference{}
if err := Convert_v1beta1_OpenStackIdentityReference_To_v1alpha7_OpenStackIdentityReference(&in.IdentityRef, out.IdentityRef, s); err != nil {
return err
}

if in.APIServerLoadBalancer != nil {
if err := Convert_v1beta1_APIServerLoadBalancer_To_v1alpha7_APIServerLoadBalancer(in.APIServerLoadBalancer, &out.APIServerLoadBalancer, s); err != nil {
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha7/types_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ func Convert_v1alpha7_OpenStackIdentityReference_To_v1beta1_OpenStackIdentityRef

func Convert_v1beta1_OpenStackIdentityReference_To_v1alpha7_OpenStackIdentityReference(in *infrav1.OpenStackIdentityReference, out *OpenStackIdentityReference, _ apiconversion.Scope) error {
out.Name = in.Name
// Kind will be overwritten during restore if it was previously set to some other value, but if not then some value is still required
out.Kind = "Secret"
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module sigs.k8s.io/cluster-api-provider-openstack/hack/tools

go 1.21
go 1.22

require (
github.com/a8m/envsubst v1.2.0
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading