kubernetes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() *rest.Config

func CreateOrUpdateGateway

func CreateOrUpdateGateway(ctx context.Context, clientset *kubernetes.Clientset, config *rest.Config, gateway *istionetworking.Gateway) error

func DynamicKubernetesClient

func DynamicKubernetesClient() (*dynamic.DynamicClient, error)

func GetDeployment

func GetDeployment(ctx context.Context) (*model.Deployment, error)

GetDeployment returns the deployment object from the kapeta secret in the cluster, this is the latest version deployed

func GetGateways

func GetGateways(ctx context.Context, config *rest.Config, namespace string) ([]*istionetworking.Gateway, error)

func GetVirtualService

func GetVirtualService(ctx context.Context, config *rest.Config, namespace string) ([]*istionetworking.VirtualService, error)

func KubernetesClient

func KubernetesClient() (*kubernetes.Clientset, error)

KubernetesClient returns a kubernetes client either from the cluster or from the local config if we are not running in a cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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