Documentation ¶
Index ¶
- Variables
- func CheckCertManagerCRDsExists() bool
- func CheckCertificateExists(customCertName, customCertNamespace string) bool
- func ClientConfig() any
- func CreateCertificate(customCert *proxmoxv1alpha1.CustomCertificate) (*unstructured.Unstructured, error)
- func CreateManagedVMKubernetesEvent(managedVM *proxmoxv1alpha1.ManagedVirtualMachine, ...)
- func CreateVMKubernetesEvent(vm *proxmoxv1alpha1.VirtualMachine, clientset *kubernetes.Clientset, ...)
- func GetCertificate(customCert *proxmoxv1alpha1.CustomCertificate) *unstructured.Unstructured
- func GetCertificateSecretKeys(certificate *unstructured.Unstructured) (tlscrt, tlskey []byte)
- func GetKubeconfig() (*kubernetes.Clientset, dynamic.Interface)
- func GetManagedVMCRD() v1.CustomResourceDefinition
- func InsideCluster() bool
- func ListCRDs() []string
- func UpdateCertificate(customCertSpec *proxmoxv1alpha1.CertManagerSpec, ...)
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 ClientConfig ¶
func ClientConfig() any
func CreateCertificate ¶
func CreateCertificate(customCert *proxmoxv1alpha1.CustomCertificate) (*unstructured.Unstructured, error)
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 GetCertificate ¶
func GetCertificate(customCert *proxmoxv1alpha1.CustomCertificate) *unstructured.Unstructured
func GetCertificateSecretKeys ¶
func GetCertificateSecretKeys(certificate *unstructured.Unstructured) (tlscrt, tlskey []byte)
func GetKubeconfig ¶
func GetKubeconfig() (*kubernetes.Clientset, dynamic.Interface)
func GetManagedVMCRD ¶
func GetManagedVMCRD() v1.CustomResourceDefinition
func InsideCluster ¶
func InsideCluster() bool
func UpdateCertificate ¶
func UpdateCertificate(customCertSpec *proxmoxv1alpha1.CertManagerSpec, certificate *unstructured.Unstructured)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.