Documentation
¶
Index ¶
- func SanitizeDomainForK8sName(domain string) (string, error)
- type KubernetesClients
- func (k *KubernetesClients) CreateCustomDomainIngressCharts(domain string) (string, string, *networkingv1.Ingress, error)
- func (k *KubernetesClients) CreateOrUpdateIngress(ctx context.Context, ingressName string, ingress *networkingv1.Ingress) error
- func (k *KubernetesClients) DeleteIngress(ctx context.Context, ingressName string, secretName string) error
- func (k *KubernetesClients) GetIngress(ctx context.Context, ingressName string) (*networkingv1.Ingress, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*KubernetesClients) GetIngress ¶
func (k *KubernetesClients) GetIngress(ctx context.Context, ingressName string) (*networkingv1.Ingress, error)
Click to show internal directories.
Click to hide internal directories.