This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from metal-stack/upd-to-capi-v0.4
Update to CAPI v0.4.0
- Loading branch information
Showing
53 changed files
with
3,356 additions
and
774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.3.0 | ||
v0.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package v1alpha3 | ||
|
||
import ( | ||
"github.com/metal-stack/cluster-api-provider-metalstack/api/v1alpha4" | ||
"sigs.k8s.io/controller-runtime/pkg/conversion" | ||
) | ||
|
||
func (src *MetalStackCluster) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackCluster) | ||
return Convert_v1alpha3_MetalStackCluster_To_v1alpha4_MetalStackCluster(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackCluster) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackCluster) | ||
return Convert_v1alpha4_MetalStackCluster_To_v1alpha3_MetalStackCluster(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackClusterList) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackClusterList) | ||
return Convert_v1alpha3_MetalStackClusterList_To_v1alpha4_MetalStackClusterList(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackClusterList) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackClusterList) | ||
return Convert_v1alpha4_MetalStackClusterList_To_v1alpha3_MetalStackClusterList(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackFirewall) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackFirewall) | ||
return Convert_v1alpha3_MetalStackFirewall_To_v1alpha4_MetalStackFirewall(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackFirewall) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackFirewall) | ||
return Convert_v1alpha4_MetalStackFirewall_To_v1alpha3_MetalStackFirewall(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackFirewallList) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackFirewallList) | ||
return Convert_v1alpha3_MetalStackFirewallList_To_v1alpha4_MetalStackFirewallList(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackFirewallList) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackFirewallList) | ||
return Convert_v1alpha4_MetalStackFirewallList_To_v1alpha3_MetalStackFirewallList(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackMachine) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackMachine) | ||
return Convert_v1alpha3_MetalStackMachine_To_v1alpha4_MetalStackMachine(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackMachine) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackMachine) | ||
return Convert_v1alpha4_MetalStackMachine_To_v1alpha3_MetalStackMachine(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackMachineList) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackMachineList) | ||
return Convert_v1alpha3_MetalStackMachineList_To_v1alpha4_MetalStackMachineList(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackMachineList) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackMachineList) | ||
return Convert_v1alpha4_MetalStackMachineList_To_v1alpha3_MetalStackMachineList(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackMachineTemplate) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackMachineTemplate) | ||
return Convert_v1alpha3_MetalStackMachineTemplate_To_v1alpha4_MetalStackMachineTemplate(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackMachineTemplate) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackMachineTemplate) | ||
return Convert_v1alpha4_MetalStackMachineTemplate_To_v1alpha3_MetalStackMachineTemplate(src, dst, nil) | ||
} | ||
|
||
func (src *MetalStackMachineTemplateList) ConvertTo(dstRaw conversion.Hub) error { | ||
dst := dstRaw.(*v1alpha4.MetalStackMachineTemplateList) | ||
return Convert_v1alpha3_MetalStackMachineTemplateList_To_v1alpha4_MetalStackMachineTemplateList(src, dst, nil) | ||
} | ||
|
||
func (dst *MetalStackMachineTemplateList) ConvertFrom(srcRaw conversion.Hub) error { | ||
src := srcRaw.(*v1alpha4.MetalStackMachineTemplateList) | ||
return Convert_v1alpha4_MetalStackMachineTemplateList_To_v1alpha3_MetalStackMachineTemplateList(src, dst, nil) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Copyright 2020 The Kubernetes Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha3 | ||
|
||
// +k8s:conversion-gen=github.com/metal-stack/cluster-api-provider-metalstack/api/v1alpha4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.