deployment

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertAsSecret

func CertAsSecret(cert, key []byte, name, namespace string) *corev1.Secret

func GenerateCertificate

func GenerateCertificate(service, namespace string) ([]byte, []byte, error)

func GetCertificate

func GetCertificate(name, namespace string) ([]byte, error)

func NewCRD

func NewCRD() string

func NewClusterRole

func NewClusterRole() *rbacv1.ClusterRole

func NewClusterRolebinding

func NewClusterRolebinding(namespace string) *rbacv1.ClusterRoleBinding

func NewDeployment

func NewDeployment(name, namespace, registry, serverType, secretName string, port int, version string) *appsv1.Deployment

func NewSA

func NewSA(namespace string) *corev1.ServiceAccount

func NewService

func NewService(name, namespace string, port int) *corev1.Service

Types

type Deployment

type Deployment struct {
	Name       string
	Namespace  string
	ServerType string
	SecretName string
	Port       int
	Version    string
	Registry   string
}

type MutatingServer

type MutatingServer struct {
	Config *admissionv1.MutatingWebhookConfiguration
	// contains filtered or unexported fields
}

func NewMutatingWebhookServer

func NewMutatingWebhookServer() *MutatingServer

func (*MutatingServer) MutatingWebhook

func (m *MutatingServer) MutatingWebhook(port int, cert []byte) *MutatingServer

func (*MutatingServer) NamespacedName

func (m *MutatingServer) NamespacedName(name, namespace string) *MutatingServer

func (*MutatingServer) Rules

func (m *MutatingServer) Rules() *MutatingServer

type ValidatingServer

type ValidatingServer struct {
	Config *admissionv1.ValidatingWebhookConfiguration
	// contains filtered or unexported fields
}

func NewValidatingWebhookServer

func NewValidatingWebhookServer() *ValidatingServer

func (*ValidatingServer) NamespacedName

func (v *ValidatingServer) NamespacedName(name, namespace string) *ValidatingServer

func (*ValidatingServer) Rules

func (v *ValidatingServer) Rules() *ValidatingServer

func (*ValidatingServer) ValidatingWebhook

func (v *ValidatingServer) ValidatingWebhook(port int, cert []byte) *ValidatingServer

Jump to

Keyboard shortcuts

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