Documentation ¶
Index ¶
- Constants
- func NewCertificates(serviceName, namespace string) ([]byte, []byte, error)
- type Controller
- type DynamicClient
- func (d *DynamicClient) Apply(ctx context.Context, client dynamic.ResourceInterface, ...) (*unstructured.Unstructured, error)
- func (d *DynamicClient) Create(ctx context.Context, client dynamic.ResourceInterface, ...) (*unstructured.Unstructured, error)
- func (d *DynamicClient) Get(ctx context.Context, client dynamic.ResourceInterface, ...) (*unstructured.Unstructured, error)
- func (d *DynamicClient) ResourceClient(data []byte, obj *unstructured.Unstructured) (dynamic.ResourceInterface, error)
Constants ¶
View Source
const ( WebhookServerLabelKey = "sidecarinjectors.operator.h3poteto.dev" WebhookServerLabelValue = "webhook-pod" )
View Source
const MutatingNamePrefix = "sidecar-injector-webhook-"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( kubeclientset kubernetes.Interface, ownclientset clientset.Interface, dynamicClient *DynamicClient, kubeInformerFactory kubeinformers.SharedInformerFactory, ownInformerFactory informers.SharedInformerFactory, useCertManager bool, ) *Controller
func (*Controller) GetOwnerDeployment ¶ added in v0.5.0
func (c *Controller) GetOwnerDeployment(ctx context.Context, ns, name string) (*appsv1.Deployment, error)
GetOwnerDeployment gets a deployment which owns the pod.
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
type DynamicClient ¶ added in v0.7.0
type DynamicClient struct {
// contains filtered or unexported fields
}
func NewDynamicClient ¶ added in v0.7.0
func NewDynamicClient(restConfig *rest.Config, clientset kubernetes.Interface) (*DynamicClient, error)
func (*DynamicClient) Apply ¶ added in v0.7.0
func (d *DynamicClient) Apply(ctx context.Context, client dynamic.ResourceInterface, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (*DynamicClient) Create ¶ added in v0.7.0
func (d *DynamicClient) Create(ctx context.Context, client dynamic.ResourceInterface, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (*DynamicClient) Get ¶ added in v0.7.0
func (d *DynamicClient) Get(ctx context.Context, client dynamic.ResourceInterface, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (*DynamicClient) ResourceClient ¶ added in v0.7.0
func (d *DynamicClient) ResourceClient(data []byte, obj *unstructured.Unstructured) (dynamic.ResourceInterface, error)
Click to show internal directories.
Click to hide internal directories.