kubernetes

package
v0.0.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cert Manager Resources
	CertManagerCRDs = []string{"certificates.cert-manager.io", "issuers.cert-manager.io", "clusterissuers.cert-manager.io",
		"certificaterequests.cert-manager.io", "challenges.acme.cert-manager.io", "orders.acme.cert-manager.io"}
)
View Source
var (
	Clientset, DynamicClient = GetKubeconfig()
)

Functions

func CheckCertManagerCRDsExists

func CheckCertManagerCRDsExists() bool

func CheckCertificateExists

func CheckCertificateExists(customCertName, customCertNamespace string) bool

func ClientConfig

func ClientConfig() any

func CreateManagedVMKubernetesEvent

func CreateManagedVMKubernetesEvent(managedVM *proxmoxv1alpha1.ManagedVirtualMachine, clientset *kubernetes.Clientset, action string)

func CreateVMKubernetesEvent

func CreateVMKubernetesEvent(vm *proxmoxv1alpha1.VirtualMachine, clientset *kubernetes.Clientset, action string)

func GetCertificateSecretKeys

func GetCertificateSecretKeys(certificate *unstructured.Unstructured) (tlscrt, tlskey []byte)

func GetKubeconfig

func GetKubeconfig() (*kubernetes.Clientset, dynamic.Interface)

func InsideCluster

func InsideCluster() bool

func ListCRDs

func ListCRDs() []string

func UpdateCertificate

func UpdateCertificate(customCertSpec *proxmoxv1alpha1.CertManagerSpec, certificate *unstructured.Unstructured)

Types

This section is empty.

Jump to

Keyboard shortcuts

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