Documentation
¶
Index ¶
- func ConvertKubeconfigFileToByteArray(kubeconfigPath string) []byte
- func CreateDynamicResourcesFromTemplate(kubeconfig *rest.Config, templatedResource []byte, namespace string) (bool, error)
- func CreateInClusterRestConfig() *rest.Config
- func CreateNamespace(kubeConfig *rest.Config, namespaceName string)
- func CreateRestConfig(kubeconfig []byte) *rest.Config
- func CreateRestMapperAndDynamicInterface(kubeconfig *rest.Config) (meta.RESTMapper, dynamic.Interface)
- func GetK8sNamespaces(kubeConfig *rest.Config) []string
- func GetKubeConfig(kubeConfigPath string) (clusterConfig *rest.Config, clusterConnection string)
- func VerifyYamlJobDefinition(jobManifest string) (bool, error)
- func YAMLtoObject(yamlString string)
- type K8sResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶ added in v0.1.5
func CreateRestConfig ¶
func GetK8sNamespaces ¶ added in v0.1.5
func GetKubeConfig ¶
func VerifyYamlJobDefinition ¶ added in v0.1.12
func YAMLtoObject ¶ added in v0.1.13
func YAMLtoObject(yamlString string)
Types ¶
type K8sResource ¶
type K8sResource struct { Name string `mapstructure:"name"` Kind string `mapstructure:"kind"` ApiVersion string `mapstructure:"api-version"` }
func GetK8sResourcesByKind ¶
func GetK8sResourcesByKind(kubeconfig *rest.Config, apiVersion, kind, namespace string, debug bool) []K8sResource
Click to show internal directories.
Click to hide internal directories.