kubernetes

package
v0.0.0-...-a641477 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeSystemNamespace       = "kube-system"
	CrossplaneSystemNamespace = "crossplane-system"
	KrateoSystemNamespace     = "krateo-system"

	LabelManagedBy      = "app.kubernetes.io/managed-by"
	DefaultFieldManager = "krateoplatformops"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleBindingsClient

type ClusterRoleBindingsClient interface {
	Get(name string) (*rbacv1.ClusterRoleBinding, error)
	Create(crb *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
	Delete(name string) error
	DeleteCollection(opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
}

func ClusterRoleBindings

func ClusterRoleBindings(c *rest.Config) (ClusterRoleBindingsClient, error)

type CrdsClient

type CrdsClient interface {
	Get(name string, opts metav1.GetOptions) (*apiextensionsv1.CustomResourceDefinition, error)
	List(opts metav1.ListOptions) (*apiextensionsv1.CustomResourceDefinitionList, error)
	Patch(name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*apiextensionsv1.CustomResourceDefinition, error)
	Delete(name string, opts metav1.DeleteOptions) error
	DeleteCollection(opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
}

func Crds

func Crds(c *rest.Config) (CrdsClient, error)

type NamespacesClient

type NamespacesClient interface {
	Get(name string, opts metav1.GetOptions) (*corev1.Namespace, error)
	Create(name string) (*corev1.Namespace, error)
	Update(item *corev1.Namespace, opts metav1.UpdateOptions) (*corev1.Namespace, error)
	Delete(name string, opts metav1.DeleteOptions) error
	Finalize(item *corev1.Namespace, opts metav1.UpdateOptions) (*corev1.Namespace, error)
}

func Namespaces

func Namespaces(c *rest.Config) (NamespacesClient, error)

type SecretsClient

type SecretsClient interface {
	Get(name, namespace string, opts metav1.GetOptions) (*corev1.Secret, error)
	Create(namespace string, secret *corev1.Secret, opts metav1.CreateOptions) (*corev1.Secret, error)
	Delete(name, namespace string, opts metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*corev1.SecretList, error)
}

func Secrets

func Secrets(c *rest.Config) (SecretsClient, error)

type ServiceAccountsClient

type ServiceAccountsClient interface {
	List(namespace string) ([]string, error)
	Get(name, namespace string, opts metav1.GetOptions) (*corev1.ServiceAccount, error)
}

func ServiceAccounts

func ServiceAccounts(c *rest.Config) (ServiceAccountsClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL