Documentation ¶
Index ¶
- func CertAsSecret(cert, key []byte, name, namespace string) *corev1.Secret
- func GenerateCertificate(service, namespace string) ([]byte, []byte, error)
- func GetCertificate(name, namespace string) ([]byte, error)
- func NewCRD() string
- func NewClusterRole() *rbacv1.ClusterRole
- func NewClusterRolebinding(namespace string) *rbacv1.ClusterRoleBinding
- func NewDeployment(name, namespace, registry, serverType, secretName string, port int, ...) *appsv1.Deployment
- func NewSA(namespace string) *corev1.ServiceAccount
- func NewService(name, namespace string, port int) *corev1.Service
- type Deployment
- type MutatingServer
- type ValidatingServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GetCertificate ¶
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
Types ¶
type Deployment ¶
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
Click to show internal directories.
Click to hide internal directories.