Skip to content

Commit

Permalink
[v2alpha] Move GV related codebase (#2281)
Browse files Browse the repository at this point in the history
Move GV related codebase in v2alpha

Signed-off-by: Varsha Prasad Narsing <[email protected]>
  • Loading branch information
varshaprasad96 authored Oct 14, 2024
1 parent 078a16c commit 22d5dde
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 51 deletions.
8 changes: 8 additions & 0 deletions pkg/apis/kubeflow.org/v1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,12 @@ var (

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme

// SchemeGroupVersion is group version used to register these objects.
SchemeGroupVersion = GroupVersion
)

// Resource takes an unqualified resource and returns a Group-qualified GroupResource.
func Resource(resource string) schema.GroupResource {
return GroupVersion.WithResource(resource).GroupResource()
}
27 changes: 0 additions & 27 deletions pkg/apis/kubeflow.org/v1/register.go

This file was deleted.

5 changes: 5 additions & 0 deletions pkg/apis/kubeflow.org/v2alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ var (
// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)

// Resource takes an unqualified resource and returns a Group-qualified GroupResource.
func Resource(resource string) schema.GroupResource {
return GroupVersion.WithResource(resource).GroupResource()
}
24 changes: 0 additions & 24 deletions pkg/apis/kubeflow.org/v2alpha1/register.go

This file was deleted.

0 comments on commit 22d5dde

Please sign in to comment.