Skip to content

Commit af6f623

Browse files
authored
Merge pull request #1198 from apricote/rename-v1beta1-v1alpha5
⚠️ rename v1beta1 to v1alpha5
2 parents aeedb58 + 311741f commit af6f623

File tree

71 files changed

+1175
-1175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1175
-1175
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ linters-settings:
8383
alias: infrav1alpha3
8484
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha4
8585
alias: infrav1alpha4
86-
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1
86+
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha5
8787
alias: infrav1
8888
- pkg: sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors
8989
alias: capoerrors

PROJECT

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ resources:
2424
kind: OpenStackClusterTemplate
2525
version: v1alpha4
2626
- group: infrastructure
27-
version: v1beta1
27+
version: v1alpha5
2828
kind: OpenStackCluster
2929
- group: infrastructure
30-
version: v1beta1
30+
version: v1alpha5
3131
kind: OpenStackMachine
3232
- group: infrastructure
33-
version: v1beta1
33+
version: v1alpha5
3434
kind: OpenStackMachineTemplate
3535
- group: infrastructure
3636
kind: OpenStackClusterTemplate
37-
version: v1beta1
37+
version: v1alpha5

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This provider's versions are compatible with the following versions of Cluster A
4242
| OpenStack Provider v1alpha3 (v0.3) || | |
4343
| OpenStack Provider v1alpha4 (v0.4) | || |
4444
| OpenStack Provider v1alpha4 (v0.5) | | ||
45-
| OpenStack Provider v1beta1 | | ||
45+
| OpenStack Provider v1alpha5 | | ||
4646

4747

4848
This provider's versions are able to install and manage the following versions of Kubernetes:
@@ -52,7 +52,7 @@ This provider's versions are able to install and manage the following versions o
5252
| OpenStack Provider v1alpha3 (v0.3) |||||| |
5353
| OpenStack Provider v1alpha4 (v0.4) | | | | |||
5454
| OpenStack Provider v1alpha4 (v0.5) | | | | |||
55-
| OpenStack Provider v1beta1 | | | | | ||
55+
| OpenStack Provider v1alpha5 | | | | | ||
5656

5757
This provider's versions are able to install Kubernetes to the following versions of OpenStack:
5858

@@ -61,7 +61,7 @@ This provider's versions are able to install Kubernetes to the following version
6161
| OpenStack Provider v1alpha3 (v0.3) | + | + | + ||||| | |
6262
| OpenStack Provider v1alpha4 (v0.4) | + | + | + | + | + | + || | |
6363
| OpenStack Provider v1alpha4 (v0.5) | + | + | + | + | + | + || | |
64-
| OpenStack Provider v1beta1 | + | + | + | + | + | + ||||
64+
| OpenStack Provider v1alpha5 | + | + | + | + | + | + ||||
6565

6666
Test status:
6767

api/v1alpha3/conversion.go

Lines changed: 55 additions & 55 deletions
Large diffs are not rendered by default.

api/v1alpha3/conversion_test.go

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
2828
ctrlconversion "sigs.k8s.io/controller-runtime/pkg/conversion"
2929

30-
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
30+
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha5"
3131
)
3232

3333
func TestConvertTo(t *testing.T) {
@@ -120,7 +120,7 @@ func TestFuzzyConversion(t *testing.T) {
120120

121121
fuzzerFuncs := func(_ runtimeserializer.CodecFactory) []interface{} {
122122
return []interface{}{
123-
// Don't test spoke-hub-spoke conversion of v1alpha3 fields which are not in v1beta1
123+
// Don't test spoke-hub-spoke conversion of v1alpha3 fields which are not in v1alpha5
124124
func(v1alpha3ClusterSpec *OpenStackClusterSpec, c fuzz.Continue) {
125125
c.FuzzNoCustom(v1alpha3ClusterSpec)
126126

@@ -135,7 +135,7 @@ func TestFuzzyConversion(t *testing.T) {
135135
func(v1alpha3RootVolume *RootVolume, c fuzz.Continue) {
136136
c.FuzzNoCustom(v1alpha3RootVolume)
137137

138-
// In v1beta1 only DeviceType="disk" and SourceType="image" are supported
138+
// In v1alpha5 only DeviceType="disk" and SourceType="image" are supported
139139
v1alpha3RootVolume.DeviceType = "disk"
140140
v1alpha3RootVolume.SourceType = "image"
141141
},
@@ -173,7 +173,7 @@ func TestFuzzyConversion(t *testing.T) {
173173
v1alpha3SubnetFilter.SortKey = ""
174174
v1alpha3SubnetFilter.SortDir = ""
175175

176-
// TenantID and ProjectID are the same thing, so TenantID is removed in v1beta1
176+
// TenantID and ProjectID are the same thing, so TenantID is removed in v1alpha5
177177
// Test that we restore TenantID from ProjectID
178178
v1alpha3SubnetFilter.TenantID = v1alpha3SubnetFilter.ProjectID
179179
},
@@ -187,50 +187,50 @@ func TestFuzzyConversion(t *testing.T) {
187187
v1alpha3Filter.SortKey = ""
188188
v1alpha3Filter.SortDir = ""
189189

190-
// TenantID and ProjectID are the same thing, so TenantID is removed in v1beta1
190+
// TenantID and ProjectID are the same thing, so TenantID is removed in v1alpha5
191191
// Test that we restore TenantID from ProjectID
192192
v1alpha3Filter.TenantID = v1alpha3Filter.ProjectID
193193
},
194194

195-
// Don't test hub-spoke-hub conversion of v1beta1 fields which are not in v1alpha3
196-
func(v1beta1ClusterSpec *infrav1.OpenStackClusterSpec, c fuzz.Continue) {
197-
c.FuzzNoCustom(v1beta1ClusterSpec)
195+
// Don't test hub-spoke-hub conversion of v1alpha5 fields which are not in v1alpha3
196+
func(v1alpha5ClusterSpec *infrav1.OpenStackClusterSpec, c fuzz.Continue) {
197+
c.FuzzNoCustom(v1alpha5ClusterSpec)
198198

199-
v1beta1ClusterSpec.APIServerFixedIP = ""
200-
v1beta1ClusterSpec.AllowAllInClusterTraffic = false
201-
v1beta1ClusterSpec.DisableAPIServerFloatingIP = false
199+
v1alpha5ClusterSpec.APIServerFixedIP = ""
200+
v1alpha5ClusterSpec.AllowAllInClusterTraffic = false
201+
v1alpha5ClusterSpec.DisableAPIServerFloatingIP = false
202202
},
203-
func(v1beta1MachineSpec *infrav1.OpenStackMachineSpec, c fuzz.Continue) {
204-
c.FuzzNoCustom(v1beta1MachineSpec)
203+
func(v1alpha5MachineSpec *infrav1.OpenStackMachineSpec, c fuzz.Continue) {
204+
c.FuzzNoCustom(v1alpha5MachineSpec)
205205

206-
v1beta1MachineSpec.Ports = nil
207-
v1beta1MachineSpec.ImageUUID = ""
206+
v1alpha5MachineSpec.Ports = nil
207+
v1alpha5MachineSpec.ImageUUID = ""
208208
},
209-
func(v1beta1Network *infrav1.Network, c fuzz.Continue) {
210-
c.FuzzNoCustom(v1beta1Network)
209+
func(v1alpha5Network *infrav1.Network, c fuzz.Continue) {
210+
c.FuzzNoCustom(v1alpha5Network)
211211

212-
v1beta1Network.PortOpts = nil
212+
v1alpha5Network.PortOpts = nil
213213
},
214-
func(v1beta1ClusterStatus *infrav1.OpenStackClusterStatus, c fuzz.Continue) {
215-
c.FuzzNoCustom(v1beta1ClusterStatus)
214+
func(v1alpha5ClusterStatus *infrav1.OpenStackClusterStatus, c fuzz.Continue) {
215+
c.FuzzNoCustom(v1alpha5ClusterStatus)
216216

217-
v1beta1ClusterStatus.FailureMessage = nil
218-
v1beta1ClusterStatus.FailureReason = nil
219-
if v1beta1ClusterStatus.Bastion != nil {
220-
v1beta1ClusterStatus.Bastion.ImageUUID = ""
217+
v1alpha5ClusterStatus.FailureMessage = nil
218+
v1alpha5ClusterStatus.FailureReason = nil
219+
if v1alpha5ClusterStatus.Bastion != nil {
220+
v1alpha5ClusterStatus.Bastion.ImageUUID = ""
221221
}
222222
},
223-
func(v1beta1OpenStackIdentityRef *infrav1.OpenStackIdentityReference, c fuzz.Continue) {
224-
c.FuzzNoCustom(v1beta1OpenStackIdentityRef)
223+
func(v1alpha5OpenStackIdentityRef *infrav1.OpenStackIdentityReference, c fuzz.Continue) {
224+
c.FuzzNoCustom(v1alpha5OpenStackIdentityRef)
225225

226226
// IdentityRef was assumed to be a Secret in v1alpha3
227-
v1beta1OpenStackIdentityRef.Kind = "Secret"
227+
v1alpha5OpenStackIdentityRef.Kind = "Secret"
228228
},
229-
func(v1beta1RootVolume *infrav1.RootVolume, c fuzz.Continue) {
230-
c.FuzzNoCustom(v1beta1RootVolume)
229+
func(v1alpha5RootVolume *infrav1.RootVolume, c fuzz.Continue) {
230+
c.FuzzNoCustom(v1alpha5RootVolume)
231231

232-
v1beta1RootVolume.VolumeType = ""
233-
v1beta1RootVolume.AvailabilityZone = ""
232+
v1alpha5RootVolume.VolumeType = ""
233+
v1alpha5RootVolume.AvailabilityZone = ""
234234
},
235235
}
236236
}

api/v1alpha3/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1
17+
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha5
1818
package v1alpha3

0 commit comments

Comments
 (0)