Documentation ¶
Index ¶
- func ConvertKubeconfigFileToByteArray(kubeconfigPath string) []byte
- func ConvertYAMLtoDeployment(yamlString string) (bool, *v1Apps.Deployment)
- func ConvertYAMLtoPipelineRun(yamlString string) (bool, *v1.PipelineRun, error)
- 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 DeleteResource(kubeconfig *rest.Config, name, group, version, resouce, namespace string) (bool, error)
- func GetK8sNamespaces(kubeConfig *rest.Config) []string
- func GetKubeConfig(kubeConfigPath string) (clusterConfig *rest.Config, clusterConnection string)
- func VerifyYamlJobDefinition(jobManifest string) (bool, error)
- type K8sResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertYAMLtoDeployment ¶ added in v0.1.16
func ConvertYAMLtoDeployment(yamlString string) (bool, *v1Apps.Deployment)
func ConvertYAMLtoPipelineRun ¶ added in v0.1.16
func ConvertYAMLtoPipelineRun(yamlString string) (bool, *v1.PipelineRun, error)
func CreateNamespace ¶ added in v0.1.5
func CreateRestConfig ¶
func DeleteResource ¶ added in v0.1.20
func GetK8sNamespaces ¶ added in v0.1.5
func GetKubeConfig ¶
func VerifyYamlJobDefinition ¶ added in v0.1.12
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.