MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getMutatingWebhook

Function getMutatingWebhook

webhook/workspace/config.go:119–126  ·  view source on GitHub ↗
(ctx context.Context, c client.Client, mutatingWebhookCfg *admregv1.MutatingWebhookConfiguration)

Source from the content-addressed store, hash-verified

117}
118
119func getMutatingWebhook(ctx context.Context, c client.Client, mutatingWebhookCfg *admregv1.MutatingWebhookConfiguration) (*admregv1.MutatingWebhookConfiguration, error) {
120 existingCfg := &admregv1.MutatingWebhookConfiguration{}
121 err := c.Get(ctx, types.NamespacedName{
122 Name: mutatingWebhookCfg.Name,
123 Namespace: mutatingWebhookCfg.Namespace,
124 }, existingCfg)
125 return existingCfg, err
126}
127
128func getValidateWebhook(ctx context.Context, c client.Client, validateWebhookCfg *admregv1.ValidatingWebhookConfiguration) (*admregv1.ValidatingWebhookConfiguration, error) {
129 existingCfg := &admregv1.ValidatingWebhookConfiguration{}

Callers 1

ConfigureFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected