k8s

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = "testing"

Functions

func AddAnnotations

func AddAnnotations(ing metav1.Object, additionals map[string]string)

func ApproveCSRAndGetCertificate

func ApproveCSRAndGetCertificate(t *testing.T, clientset *kubernetes.Clientset, csr *certificatesv1beta1.CertificateSigningRequest) []byte

func EditServicePort

func EditServicePort(service *corev1.Service, port int32)

func GetCaOrFail

func GetCaOrFail(t *testing.T, cs *kubernetes.Clientset) (ca *x509.Certificate)

func New

func New(t *testing.T) *kubernetes.Clientset

func NewCertificateSigningRequest

func NewCertificateSigningRequest(name string, key *rsa.PrivateKey, dnsNames ...string) *certificatesv1beta1.CertificateSigningRequest

func NewDeployment

func NewDeployment(name string) *appsv1.Deployment

func NewIngress

func NewIngress(name string, rules []IngressRule) *networkingv1beta1.Ingress

func NewProxyProtocol

func NewProxyProtocol(name string) (deployment *appsv1.Deployment, svc *corev1.Service)

prometherion: source-code of the Docker image quay.io/prometherion/proxy-protocol-app:latest is available here: https://github.com/prometherion/test-app TODO: evaluate to host the sample apps source-code in the HAProxy GitHub org

func NewSecret

func NewSecret(keyVal map[string][]byte, name string) (secret *corev1.Secret)

func NewService

func NewService(name string) *corev1.Service

func NewTLSSecret

func NewTLSSecret(key *rsa.PrivateKey, cert []byte, name string) *corev1.Secret

Types

type IngressRule

type IngressRule struct {
	Host        string
	Path        string
	PathType    string
	Service     string
	ServicePort string
}

Jump to

Keyboard shortcuts

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