Documentation ¶
Index ¶
- Constants
- func APIService() schema.GroupVersionKind
- func Anvil() schema.GroupVersionKind
- func Cluster() schema.GroupVersionKind
- func ClusterConfig() schema.GroupVersionKind
- func ClusterRole() schema.GroupVersionKind
- func ClusterRoleBinding() schema.GroupVersionKind
- func ClusterRoleBindingV1Beta1() schema.GroupVersionKind
- func ClusterSelector() schema.GroupVersionKind
- func ConfigMap() schema.GroupVersionKind
- func CronJob() schema.GroupVersionKind
- func CustomResourceDefinition() schema.GroupKind
- func CustomResourceDefinitionV1() schema.GroupVersionKind
- func CustomResourceDefinitionV1Beta1() schema.GroupVersionKind
- func DaemonSet() schema.GroupVersionKind
- func Deployment() schema.GroupVersionKind
- func DeploymentResource() schema.GroupVersionResource
- func HierarchyConfig() schema.GroupVersionKind
- func Ingress() schema.GroupVersionKind
- func Job() schema.GroupVersionKind
- func KptFile() schema.GroupVersionKind
- func Lookup(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)
- func Namespace() schema.GroupVersionKind
- func NamespaceConfig() schema.GroupVersionKind
- func NamespaceSelector() schema.GroupVersionKind
- func NetworkPolicy() schema.GroupVersionKind
- func PersistentVolume() schema.GroupVersionKind
- func Pod() schema.GroupVersionKind
- func PodSecurityPolicy() schema.GroupVersionKind
- func ReplicaSet() schema.GroupVersionKind
- func ReplicationController() schema.GroupVersionKind
- func Repo() schema.GroupVersionKind
- func RepoSyncV1Alpha1() schema.GroupVersionKind
- func RepoSyncV1Beta1() schema.GroupVersionKind
- func ResourceGroup() schema.GroupVersionKind
- func ResourceQuota() schema.GroupVersionKind
- func Role() schema.GroupVersionKind
- func RoleBinding() schema.GroupVersionKind
- func RoleBindingV1Beta1() schema.GroupVersionKind
- func RootSyncV1Alpha1() schema.GroupVersionKind
- func RootSyncV1Beta1() schema.GroupVersionKind
- func Secret() schema.GroupVersionKind
- func Service() schema.GroupVersionKind
- func ServiceAccount() schema.GroupVersionKind
- func StatefulSet() schema.GroupVersionKind
- func Sync() schema.GroupVersionKind
- func ToTypedObject(obj runtime.Object, scheme *runtime.Scheme) (runtime.Object, error)
- func ToTypedWithVersion(obj runtime.Object, targetGVK schema.GroupVersionKind, scheme *runtime.Scheme) (runtime.Object, error)
- func ToUnstructured(obj runtime.Object, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
- func ToUnstructuredWithVersion(obj runtime.Object, targetGVK schema.GroupVersionKind, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
- func ToUnstructureds(scheme *runtime.Scheme, objs ...runtime.Object) ([]*unstructured.Unstructured, error)
- func ValidatingWebhookConfiguration() schema.GroupVersionKind
Constants ¶
const CustomResourceDefinitionKind = "CustomResourceDefinition"
CustomResourceDefinitionKind is the Kind for CustomResourceDefinitions
Variables ¶
This section is empty.
Functions ¶
func Anvil ¶
func Anvil() schema.GroupVersionKind
Anvil returns the GroupVersionKind for Anvil Custom Resource used in tests.
func Cluster ¶
func Cluster() schema.GroupVersionKind
Cluster returns the canonical Cluster GroupVersionKind.
func ClusterConfig ¶
func ClusterConfig() schema.GroupVersionKind
ClusterConfig returns the canonical ClusterConfig GroupVersionKind.
func ClusterRole ¶
func ClusterRole() schema.GroupVersionKind
ClusterRole returns the canonical ClusterRole GroupVersionKind.
func ClusterRoleBinding ¶
func ClusterRoleBinding() schema.GroupVersionKind
ClusterRoleBinding returns the canonical ClusterRoleBinding GroupVersionKind.
func ClusterRoleBindingV1Beta1 ¶
func ClusterRoleBindingV1Beta1() schema.GroupVersionKind
ClusterRoleBindingV1Beta1 returns the canonical ClusterRoleBinding GroupVersionKind.
func ClusterSelector ¶
func ClusterSelector() schema.GroupVersionKind
ClusterSelector returns the canonical ClusterSelector GroupVersionKind.
func ConfigMap ¶
func ConfigMap() schema.GroupVersionKind
ConfigMap returns the canonical ConfigMap GroupVersionKind.
func CronJob ¶
func CronJob() schema.GroupVersionKind
CronJob returns the canonical CronJob GroupVersionKind.
func CustomResourceDefinition ¶
CustomResourceDefinition returns the canonical CustomResourceDefinition GroupKind
func CustomResourceDefinitionV1 ¶
func CustomResourceDefinitionV1() schema.GroupVersionKind
CustomResourceDefinitionV1 returns the v1 CustomResourceDefinition GroupVersionKind.
func CustomResourceDefinitionV1Beta1 ¶
func CustomResourceDefinitionV1Beta1() schema.GroupVersionKind
CustomResourceDefinitionV1Beta1 returns the v1beta1 CustomResourceDefinition GroupVersionKind.
func DaemonSet ¶
func DaemonSet() schema.GroupVersionKind
DaemonSet returns the canonical DaemonSet GroupVersionKind.
func Deployment ¶
func Deployment() schema.GroupVersionKind
Deployment returns the canonical Deployment GroupVersionKind.
func DeploymentResource ¶ added in v1.15.1
func DeploymentResource() schema.GroupVersionResource
DeploymentResource returns the canonical Deployment GroupVersionResource.
func HierarchyConfig ¶
func HierarchyConfig() schema.GroupVersionKind
HierarchyConfig returns the canonical HierarchyConfig GroupVersionKind.
func Ingress ¶
func Ingress() schema.GroupVersionKind
Ingress returns the canonical Ingress GroupVersionKind.
func KptFile ¶
func KptFile() schema.GroupVersionKind
KptFile returns the canonical Kptfile GroupVersionKind.
func Lookup ¶ added in v1.15.1
Lookup returns the GVK of a object based on the types registered with the provided Scheme.
func Namespace ¶
func Namespace() schema.GroupVersionKind
Namespace returns the canonical Namespace GroupVersionKind.
func NamespaceConfig ¶
func NamespaceConfig() schema.GroupVersionKind
NamespaceConfig returns the canonical NamespaceConfig GroupVersionKind.
func NamespaceSelector ¶
func NamespaceSelector() schema.GroupVersionKind
NamespaceSelector returns the canonical NamespaceSelector GroupVersionKind.
func NetworkPolicy ¶
func NetworkPolicy() schema.GroupVersionKind
NetworkPolicy returns the canonical NetworkPolicy GroupVersionKind.
func PersistentVolume ¶
func PersistentVolume() schema.GroupVersionKind
PersistentVolume returns the canonical PersistentVolume GroupVersionKind.
func PodSecurityPolicy ¶
func PodSecurityPolicy() schema.GroupVersionKind
PodSecurityPolicy returns the canonical PodSecurityPolicy GroupVersionKind.
func ReplicaSet ¶
func ReplicaSet() schema.GroupVersionKind
ReplicaSet returns the canonical ReplicaSet GroupVersionKind.
func ReplicationController ¶
func ReplicationController() schema.GroupVersionKind
ReplicationController returns the canonical ReplicationController GroupVersionKind.
func RepoSyncV1Alpha1 ¶
func RepoSyncV1Alpha1() schema.GroupVersionKind
RepoSyncV1Alpha1 returns the canonical RepoSync GroupVersionKind.
func RepoSyncV1Beta1 ¶
func RepoSyncV1Beta1() schema.GroupVersionKind
RepoSyncV1Beta1 returns the v1beta1 RepoSync GroupVersionKind.
func ResourceGroup ¶ added in v1.15.1
func ResourceGroup() schema.GroupVersionKind
ResourceGroup returns the canonical ResourceGroup GroupVersionKind.
func ResourceQuota ¶
func ResourceQuota() schema.GroupVersionKind
ResourceQuota returns the canonical ResourceQuota GroupVersionKind.
func RoleBinding ¶
func RoleBinding() schema.GroupVersionKind
RoleBinding returns the canonical RoleBinding GroupVersionKind.
func RoleBindingV1Beta1 ¶
func RoleBindingV1Beta1() schema.GroupVersionKind
RoleBindingV1Beta1 returns the canonical v1beta1 RoleBinding GroupVersionKind.
func RootSyncV1Alpha1 ¶
func RootSyncV1Alpha1() schema.GroupVersionKind
RootSyncV1Alpha1 returns the canonical RootSync GroupVersionKind.
func RootSyncV1Beta1 ¶
func RootSyncV1Beta1() schema.GroupVersionKind
RootSyncV1Beta1 returns the v1beta1 RootSync GroupVersionKind.
func Secret ¶
func Secret() schema.GroupVersionKind
Secret returns the canonical Secret GroupVersionKind.
func Service ¶
func Service() schema.GroupVersionKind
Service returns the canonical Service GroupVersionKind.
func ServiceAccount ¶
func ServiceAccount() schema.GroupVersionKind
ServiceAccount returns the canonical ServiceAccount GroupVersionKind.
func StatefulSet ¶
func StatefulSet() schema.GroupVersionKind
StatefulSet returns the canonical StatefulSet GroupVersionKind.
func ToTypedObject ¶ added in v1.15.1
ToTypedObject converts an Unstructured object into a typed object. If not Unstructured, a deep copy is returned.
func ToTypedWithVersion ¶ added in v1.15.1
func ToTypedWithVersion(obj runtime.Object, targetGVK schema.GroupVersionKind, scheme *runtime.Scheme) (runtime.Object, error)
ToTypedWithVersion converts the specified object to the specified apiVersion. If version and type already match, a deep copy is returned.
WARNING: All version conversions have to go through the "__internal" version (ex: v1 -> __internal -> v1beta1). But the Kubernetes authors have made all the core conversion code private and unimportable with Go. So the only version conversions that are supported client-side are the ones where the internal version and the conversion functions have been impoirted into the Scheme. This includes most CRDs, which have the internal version generated by kubebuilder.
func ToUnstructured ¶ added in v1.15.1
func ToUnstructured(obj runtime.Object, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
ToUnstructured converts a typed object into an Unstructured object. If already Unstructured, a deep copy is returned.
func ToUnstructuredWithVersion ¶ added in v1.15.1
func ToUnstructuredWithVersion(obj runtime.Object, targetGVK schema.GroupVersionKind, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
ToUnstructuredWithVersion converts the specified object to the specified apiVersion. If version already matches, a deep copy is returned.
Since scheme.Convert ignores the target version when converting unstructured objects, we have to do three converts: unstructured -> typed (internal version) -> typed (target version) -> unstructured.
WARNING: Delegates to ConvertToVersion. See function comment for warning.
func ToUnstructureds ¶ added in v1.15.1
func ToUnstructureds(scheme *runtime.Scheme, objs ...runtime.Object) ([]*unstructured.Unstructured, error)
ToUnstructureds converts the objects to a list of Unstructured objects
func ValidatingWebhookConfiguration ¶ added in v1.15.1
func ValidatingWebhookConfiguration() schema.GroupVersionKind
ValidatingWebhookConfiguration returns the ValidatingWebhookConfiguration kind.
Types ¶
This section is empty.