k8s

package
v0.0.0-...-4ae6852 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeDomainForK8sName

func SanitizeDomainForK8sName(domain string) (string, error)

Types

type KubernetesClients

type KubernetesClients struct {
	Clientset     *kubernetes.Clientset
	DynamicClient dynamic.Interface
	// contains filtered or unexported fields
}

func InitializeK8sClient

func InitializeK8sClient(ctx context.Context, logger *slog.Logger, env string) (*KubernetesClients, error)

InitializeK8sClient initializes and returns KubernetesClients singleton.

func (*KubernetesClients) CreateCustomDomainIngressCharts

func (k *KubernetesClients) CreateCustomDomainIngressCharts(domain string) (string, string, *networkingv1.Ingress, error)

func (*KubernetesClients) CreateOrUpdateIngress

func (k *KubernetesClients) CreateOrUpdateIngress(ctx context.Context, ingressName string, ingress *networkingv1.Ingress) error

func (*KubernetesClients) DeleteIngress

func (k *KubernetesClients) DeleteIngress(ctx context.Context, ingressName string, secretName string) error

func (*KubernetesClients) GetIngress

func (k *KubernetesClients) GetIngress(ctx context.Context, ingressName string) (*networkingv1.Ingress, error)

Jump to

Keyboard shortcuts

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