controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Copyright 2021 Intel(R).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// secret type used with KMRA
	KMRABased = "KMRA"
)
View Source
const (
	RetryTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

func GetIssuer

func GetIssuer(ctx context.Context,
	c client.Client,
	scheme *runtime.Scheme,
	issuerRef *IssuerRef) (client.Object, error)

func IssuerSpecAndStatus

func IssuerSpecAndStatus(issuer client.Object) (*tcsapi.TCSIssuerSpec, *tcsapi.TCSIssuerStatus, error)

func SignerNameForIssuer

func SignerNameForIssuer(issuerGVK schema.GroupVersionKind, name, ns string) string

Types

type CSRReconciler

type CSRReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Log         logr.Logger
	KeyProvider keyprovider.KeyProvider
	// contains filtered or unexported fields
}

CSRReconciler reconciles a CSR object

func NewCSRReconciler

func NewCSRReconciler(c client.Client, scheme *runtime.Scheme, keyProvider keyprovider.KeyProvider, fullCertChain bool) *CSRReconciler

func (*CSRReconciler) Reconcile

func (r *CSRReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*CSRReconciler) SetupWithManager

func (r *CSRReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CertificateRequestReconciler

type CertificateRequestReconciler struct {
	client.Client
	Log         logr.Logger
	Scheme      *runtime.Scheme
	KeyProvider keyprovider.KeyProvider
	// contains filtered or unexported fields
}

CSRReconciler reconciles a CSR object

func NewCertificateRequestReconciler

func NewCertificateRequestReconciler(c client.Client, keyProvider keyprovider.KeyProvider) *CertificateRequestReconciler

func (*CertificateRequestReconciler) Reconcile

func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

func (*CertificateRequestReconciler) SetupWithManager

func (r *CertificateRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type IssuerReconciler

type IssuerReconciler struct {
	client.Client
	Log                      logr.Logger
	Scheme                   *runtime.Scheme
	ClusterResourceNamespace string
	Kind                     string
	KeyProvider              keyprovider.KeyProvider
}

IssuerReconciler reconciles a Issuer object

func (*IssuerReconciler) Reconcile

func (r *IssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

func (*IssuerReconciler) SetupWithManager

func (r *IssuerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type IssuerRef

type IssuerRef struct {
	types.NamespacedName
	Kind string
}

func IssuerRefForSignerName

func IssuerRefForSignerName(signerName string) *IssuerRef

type QuoteAttestationReconciler

type QuoteAttestationReconciler struct {
	client.Client
	Log            logr.Logger
	KeyProvider    keyprovider.KeyProvider
	ExportCASecret bool
	Done           func()
	// contains filtered or unexported fields
}

QuoteAttestationReconciler reconciles a QuoteAttestation object

func NewQuoteAttestationReconciler

func NewQuoteAttestationReconciler(
	c client.Client,
	keyProvider keyprovider.KeyProvider,
	doneFunc func()) *QuoteAttestationReconciler

func (*QuoteAttestationReconciler) Reconcile

func (*QuoteAttestationReconciler) SetupWatch

func (*QuoteAttestationReconciler) SetupWithManager

func (r *QuoteAttestationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWatch sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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