istiocsr

package
v1.16.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCertificateDuration            = time.Hour
	DefaultCertificateRenewBeforeDuration = time.Minute * 30
	DefaultSignatureAlgorithm             = certmanagerv1.RSAKeyAlgorithm
	DefaultRSAPrivateKeySize              = 2048
	DefaultECDSA256PrivateKeySize         = 256
	DefaultECDSA384PrivateKeySize         = 384
)
View Source
const (

	// ControllerName is the name of the controller used in logs and events.
	ControllerName = istiocsrCommonName + "-controller"
)

Variables

This section is empty.

Functions

func BuildCustomClient

func BuildCustomClient(mgr ctrl.Manager) (client.Client, error)

func IsIrrecoverableError

func IsIrrecoverableError(err error) bool

func IsMultipleInstanceError

func IsMultipleInstanceError(err error) bool

func IsRetryRequiredError

func IsRetryRequiredError(err error) bool

func NewClient

func NewClient(m manager.Manager) (ctrlClient, error)

Types

type ErrorReason

type ErrorReason string
const (
	IrrecoverableError ErrorReason = "IrrecoverableError"

	RetryRequiredError ErrorReason = "RetryRequiredError"

	MultipleInstanceError ErrorReason = "MultipleInstanceError"
)

type ReconcileError

type ReconcileError struct {
	Reason  ErrorReason `json:"reason,omitempty"`
	Message string      `json:"message,omitempty"`
	Err     error       `json:"error,omitempty"`
}

func FromClientError

func FromClientError(err error, message string, args ...any) *ReconcileError

func FromError

func FromError(err error, message string, args ...any) *ReconcileError

func NewIrrecoverableError

func NewIrrecoverableError(err error, message string, args ...any) *ReconcileError

func NewMultipleInstanceError

func NewMultipleInstanceError(err error) *ReconcileError

func NewRetryRequiredError

func NewRetryRequiredError(err error, message string, args ...any) *ReconcileError

func (*ReconcileError) Error

func (e *ReconcileError) Error() string

ReconcileError implements the ReconcileError interface.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles a IstioCSR object

func New

func New(mgr ctrl.Manager) (*Reconciler, error)

New returns a new Reconciler instance.

func (*Reconciler) Reconcile

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

Reconcile function to compare the state specified by the IstioCSR object against the actual cluster state, and to make the cluster state reflect the state specified by the user.

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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