Skip to content

Commit 38a1d83

Browse files
committed
Fix Conversion from alpha3 to alpha4
This patch sets the `Kind` in `IdentityRef` to `Secret` during the conversion from the `CloudSecret` to the `OpenStackIdentityReference`. Without a `Kind` set, the admission hook rejects the converted resource, which makes it impossible to upgrade.
1 parent bff2282 commit 38a1d83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/v1alpha3/conversion.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func Convert_v1alpha3_OpenStackMachineSpec_To_v1alpha4_OpenStackMachineSpec(in *
131131
if in.CloudsSecret != nil {
132132
out.IdentityRef = &v1alpha4.OpenStackIdentityReference{
133133
Name: in.CloudsSecret.Name,
134+
Kind: "Secret",
134135
}
135136
}
136137
return autoConvert_v1alpha3_OpenStackMachineSpec_To_v1alpha4_OpenStackMachineSpec(in, out, s)

0 commit comments

Comments
 (0)