forked from eraser-dev/eraser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add v1alpha3 api with RuntimeSpec configuration (eraser-dev#922)
Signed-off-by: ashnamehrotra <[email protected]>
- Loading branch information
1 parent
f6e9204
commit afb831b
Showing
24 changed files
with
1,542 additions
and
150 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
unversioned "github.com/eraser-dev/eraser/api/unversioned" | ||
conversion "k8s.io/apimachinery/pkg/conversion" | ||
) | ||
|
||
//nolint:revive | ||
func Convert_v1alpha1_ManagerConfig_To_unversioned_ManagerConfig(in *ManagerConfig, out *unversioned.ManagerConfig, s conversion.Scope) error { | ||
return autoConvert_v1alpha1_ManagerConfig_To_unversioned_ManagerConfig(in, out, s) | ||
} | ||
|
||
//nolint:revive | ||
func manualConvert_v1alpha1_Runtime_To_unversioned_RuntimeSpec(in *Runtime, out *unversioned.RuntimeSpec, _ conversion.Scope) error { | ||
out.Name = unversioned.Runtime(string(*in)) | ||
out.Address = "" | ||
return nil | ||
} | ||
|
||
//nolint:revive | ||
func Convert_v1alpha1_Runtime_To_unversioned_RuntimeSpec(in *Runtime, out *unversioned.RuntimeSpec, s conversion.Scope) error { | ||
return manualConvert_v1alpha1_Runtime_To_unversioned_RuntimeSpec(in, out, s) | ||
} | ||
|
||
//nolint:revive | ||
func Convert_unversioned_ManagerConfig_To_v1alpha1_ManagerConfig(in *unversioned.ManagerConfig, out *ManagerConfig, s conversion.Scope) error { | ||
return autoConvert_unversioned_ManagerConfig_To_v1alpha1_ManagerConfig(in, out, s) | ||
} | ||
|
||
//nolint:revive | ||
func manualConvert_unversioned_RuntimeSpec_To_v1alpha1_Runtime(in *unversioned.RuntimeSpec, out *Runtime, _ conversion.Scope) error { | ||
*out = Runtime(in.Name) | ||
return nil | ||
} | ||
|
||
//nolint:revive | ||
func Convert_unversioned_RuntimeSpec_To_v1alpha1_Runtime(in *unversioned.RuntimeSpec, out *Runtime, s conversion.Scope) error { | ||
return manualConvert_unversioned_RuntimeSpec_To_v1alpha1_Runtime(in, out, s) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.