Documentation ¶
Index ¶
- Constants
- Variables
- func Add(mgr manager.Manager) error
- type CABundleSource
- type ConfigMapCABundleSource
- func (s *ConfigMapCABundleSource) Copy() CABundleSource
- func (s *ConfigMapCABundleSource) GetCABundle(ctx context.Context, client client.Client) ([]byte, error)
- func (s *ConfigMapCABundleSource) GetNamespace() string
- func (s *ConfigMapCABundleSource) MatchedObjects() []ObjectRef
- func (s *ConfigMapCABundleSource) SetNamespace(namespace string)
- type ObjectRef
- type SecretCABundleSource
- func (s *SecretCABundleSource) Copy() CABundleSource
- func (s *SecretCABundleSource) GetCABundle(ctx context.Context, client client.Client) ([]byte, error)
- func (s *SecretCABundleSource) GetNamespace() string
- func (s *SecretCABundleSource) MatchedObjects() []ObjectRef
- func (s *SecretCABundleSource) SetNamespace(namespace string)
- type SecretNameKeyPair
- type WebhookCABundleManager
Constants ¶
View Source
const ( ServiceMeshControlPlaneCRDName = "servicemeshcontrolplanes.maistra.io" ServiceMeshExtensionCRDName = "servicemeshextensions.maistra.io" )
Variables ¶
View Source
var WebhookCABundleManagerInstance = newWebhookCABundleManager()
WebhookCABundleManagerInstance is a singleton used to manage the caBundle on a webhook's clientConfig.
Functions ¶
Types ¶
type CABundleSource ¶
type ConfigMapCABundleSource ¶
func (*ConfigMapCABundleSource) Copy ¶
func (s *ConfigMapCABundleSource) Copy() CABundleSource
func (*ConfigMapCABundleSource) GetCABundle ¶
func (*ConfigMapCABundleSource) GetNamespace ¶
func (s *ConfigMapCABundleSource) GetNamespace() string
func (*ConfigMapCABundleSource) MatchedObjects ¶
func (s *ConfigMapCABundleSource) MatchedObjects() []ObjectRef
func (*ConfigMapCABundleSource) SetNamespace ¶
func (s *ConfigMapCABundleSource) SetNamespace(namespace string)
type SecretCABundleSource ¶
type SecretCABundleSource struct { Namespace string SecretNameKeyPairs []SecretNameKeyPair }
func (*SecretCABundleSource) Copy ¶
func (s *SecretCABundleSource) Copy() CABundleSource
func (*SecretCABundleSource) GetCABundle ¶
func (*SecretCABundleSource) GetNamespace ¶
func (s *SecretCABundleSource) GetNamespace() string
func (*SecretCABundleSource) MatchedObjects ¶
func (s *SecretCABundleSource) MatchedObjects() []ObjectRef
func (*SecretCABundleSource) SetNamespace ¶
func (s *SecretCABundleSource) SetNamespace(namespace string)
type SecretNameKeyPair ¶
type WebhookCABundleManager ¶
type WebhookCABundleManager interface { // ManageWebhookCABundle adds a webhook to the manager. ManageWebhookCABundle(obj runtime.Object, source CABundleSource) error // UnmanageWebhookCABundle removes a webhook from the manager. UnmanageWebhookCABundle(obj runtime.Object) error // IsManaged returns true if the webhook is being managed. IsManaged(obj runtime.Object) bool // IsManagingWebhooksForSource returns true if any webhooks being managed are using the secret or config map. IsManagingWebhooksForSource(obj ObjectRef) bool // ReconcileRequestsFromSource returns a slice of reconcile.Request objects for the specified secret or config map ReconcileRequestsFromSource(obj ObjectRef) []reconcile.Request // ReconcileRequestsFromWebhook returns a slice of reconcile.Request objects for the specified webhook ReconcileRequestsFromWebhook(webhook runtime.Object) []reconcile.Request // UpdateCABundle updates the caBundle for the webhook. The webhook namespace identifies the type of webhook (validating or mutating). UpdateCABundle(ctx context.Context, cl client.Client, webhook types.NamespacedName) error }
WebhookCABundleManager is the public interface for managing webhook caBundle.
Click to show internal directories.
Click to hide internal directories.