Documentation
¶
Index ¶
- Constants
- func BuildCustomClient(mgr ctrl.Manager) (client.Client, error)
- func IsIrrecoverableError(err error) bool
- func IsMultipleInstanceError(err error) bool
- func IsRetryRequiredError(err error) bool
- func NewClient(m manager.Manager) (ctrlClient, error)
- type ErrorReason
- type ReconcileError
- func FromClientError(err error, message string, args ...any) *ReconcileError
- func FromError(err error, message string, args ...any) *ReconcileError
- func NewIrrecoverableError(err error, message string, args ...any) *ReconcileError
- func NewMultipleInstanceError(err error) *ReconcileError
- func NewRetryRequiredError(err error, message string, args ...any) *ReconcileError
- type Reconciler
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 IsIrrecoverableError ¶
func IsMultipleInstanceError ¶
func IsRetryRequiredError ¶
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 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 (*Reconciler) Reconcile ¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.