kubeutil

package
v0.0.0-...-1bf1170 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DryRunCreate

func DryRunCreate(objBytes []byte, namespace string) ([]byte, error)

func GetAPIResources

func GetAPIResources() ([]metav1.APIResource, error)

func GetApplyPatchBytes

func GetApplyPatchBytes(manifestBytes []byte, objNamespace string) ([]byte, []byte, error)

func GetInClusterConfig

func GetInClusterConfig() (*rest.Config, error)

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

func GetOutOfClusterConfig

func GetOutOfClusterConfig() (*rest.Config, error)

func GetResource

func GetResource(apiVersion, kind, namespace, name string) (*unstructured.Unstructured, error)

func IsInCluster

func IsInCluster() bool

func ListResources

func ListResources(apiVersion, kind, namespace string) ([]*unstructured.Unstructured, error)

func MatchLabels

func MatchLabels(obj metav1.Object, labelSelector *metav1.LabelSelector) (bool, error)

func SetKubeConfig

func SetKubeConfig(conf *rest.Config)

func StrategicMergePatch

func StrategicMergePatch(objBytes, patchBytes []byte, namespace string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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