certs

package
v0.0.0-...-f2e105f Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelfSignedIssuerName = "service-ca-self-signed"
	CACertName           = "service-ca-certificate"
	CAName               = "service-ca"
	CASecretName         = "service-ca-root"
	ServiceIssuerName    = "service-ca-issuer"
)
View Source
const (
	// ServiceCertSecretLabelKey is the label key for linking the
	// Certificate secret to the service for which it was issued
	ServiceCertSecretLabelKey = "service.syn.tools/certificate"
)

Variables

This section is empty.

Functions

func CertificateName

func CertificateName(svcName string) string

CertificateName returns the name for the Certificate resource belonging to the service with name `svcName`

func CreateCertificate

func CreateCertificate(ctx context.Context, l logr.Logger, c client.Client, svc corev1.Service, secretName string, scheme *runtime.Scheme) error

CreateCertificate creates a Certificate resource for an appropriately labeled service

func GetServiceCA

func GetServiceCA(ctx context.Context, c client.Client, l logr.Logger, caNamespace string) (string, error)

GetServiceCA returns the Service CA certificate as a string Intended to be called in the reconcile loop. Returns an error if the CA certificate isn't ready yet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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