package example2
import "k8s.io/apiserver/pkg/apis/example2"
+k8s:deepcopy-gen=package +groupName=example2.k8s.io
package example2 contains an example API whose internal version is defined in another group ("example"). This happens if a type is moved to a different group. It's not recommended to move types across groups, though Kubernetes have a few cases due to historical reasons. This package is for tests.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
Constants ¶
const GroupName = "example2.apiserver.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Source Files ¶
doc.go register.go zz_generated.deepcopy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/apis/example2/install | Package install installs the example2 API group, making it available as an option to all of the API encoding/decoding machinery. |
pkg/apis/example2/v1 |
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.