Documentation ¶
Index ¶
- Constants
- func CheckCerts(c CertInfo, dnsName string, at time.Time) error
- func ValidCert(caCert, cert, key []byte, dnsName string, at time.Time) (bool, error)
- type CertInfo
- type KeyPairArtifacts
- type Reconciler
- func (r *Reconciler) CreateCACert(begin, end time.Time) (*KeyPairArtifacts, error)
- func (r *Reconciler) CreateCertPEM(ca *KeyPairArtifacts, begin, end time.Time) ([]byte, []byte, error)
- func (r *Reconciler) ReadyCheck(_ *http.Request) error
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error
Constants ¶
View Source
const (
LookaheadInterval = 90 * 24 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
func CheckCerts ¶
CheckCerts verifies that certificates exist in a given fs location and if they're valid.
Types ¶
type KeyPairArtifacts ¶
type KeyPairArtifacts struct { Cert *x509.Certificate Key *rsa.PrivateKey CertPEM []byte KeyPEM []byte }
type Reconciler ¶
type Reconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme SvcName string SvcNamespace string SecretName string SecretNamespace string CrdResources []string CAName string CAOrganization string RequeueInterval time.Duration // contains filtered or unexported fields }
func (*Reconciler) CreateCACert ¶
func (r *Reconciler) CreateCACert(begin, end time.Time) (*KeyPairArtifacts, error)
func (*Reconciler) CreateCertPEM ¶
func (r *Reconciler) CreateCertPEM(ca *KeyPairArtifacts, begin, end time.Time) ([]byte, []byte, error)
func (*Reconciler) ReadyCheck ¶
func (r *Reconciler) ReadyCheck(_ *http.Request) error
ReadyCheck reviews if all webhook configs have been injected into the CRDs and if the referenced webhook service is ready.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error
Click to show internal directories.
Click to hide internal directories.