| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
package v1 |
| 20 |
|
| 21 |
import ( |
| 22 |
context "context" |
| 23 |
|
| 24 |
admissionregistrationv1 "k8s.io/api/admissionregistration/v1" |
| 25 |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 |
types "k8s.io/apimachinery/pkg/types" |
| 27 |
watch "k8s.io/apimachinery/pkg/watch" |
| 28 |
applyconfigurationsadmissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" |
| 29 |
gentype "k8s.io/client-go/gentype" |
| 30 |
scheme "k8s.io/client-go/kubernetes/scheme" |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
type MutatingWebhookConfigurationsGetter interface { |
| 36 |
MutatingWebhookConfigurations() MutatingWebhookConfigurationInterface |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
type MutatingWebhookConfigurationInterface interface { |
| 41 |
Create(ctx context.Context, mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration, opts metav1.CreateOptions) (*admissionregistrationv1.MutatingWebhookConfiguration, error) |
| 42 |
Update(ctx context.Context, mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration, opts metav1.UpdateOptions) (*admissionregistrationv1.MutatingWebhookConfiguration, error) |
| 43 |
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error |
| 44 |
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error |
| 45 |
Get(ctx context.Context, name string, opts metav1.GetOptions) (*admissionregistrationv1.MutatingWebhookConfiguration, error) |
| 46 |
List(ctx context.Context, opts metav1.ListOptions) (*admissionregistrationv1.MutatingWebhookConfigurationList, error) |
| 47 |
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) |
| 48 |
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) |
| 49 |
Apply(ctx context.Context, mutatingWebhookConfiguration *applyconfigurationsadmissionregistrationv1.MutatingWebhookConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) |
| 50 |
MutatingWebhookConfigurationExpansion |
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
type mutatingWebhookConfigurations struct { |
| 55 |
*gentype.ClientWithListAndApply[*admissionregistrationv1.MutatingWebhookConfiguration, *admissionregistrationv1.MutatingWebhookConfigurationList, *applyconfigurationsadmissionregistrationv1.MutatingWebhookConfigurationApplyConfiguration] |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func newMutatingWebhookConfigurations(c *AdmissionregistrationV1Client) *mutatingWebhookConfigurations { |
| 60 |
return &mutatingWebhookConfigurations{ |
| 61 |
gentype.NewClientWithListAndApply[*admissionregistrationv1.MutatingWebhookConfiguration, *admissionregistrationv1.MutatingWebhookConfigurationList, *applyconfigurationsadmissionregistrationv1.MutatingWebhookConfigurationApplyConfiguration]( |
| 62 |
"mutatingwebhookconfigurations", |
| 63 |
c.RESTClient(), |
| 64 |
scheme.ParameterCodec, |
| 65 |
"", |
| 66 |
func() *admissionregistrationv1.MutatingWebhookConfiguration { |
| 67 |
return &admissionregistrationv1.MutatingWebhookConfiguration{} |
| 68 |
}, |
| 69 |
func() *admissionregistrationv1.MutatingWebhookConfigurationList { |
| 70 |
return &admissionregistrationv1.MutatingWebhookConfigurationList{} |
| 71 |
}, |
| 72 |
gentype.PrefersProtobuf[*admissionregistrationv1.MutatingWebhookConfiguration](), |
| 73 |
), |
| 74 |
} |
| 75 |
} |