Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ProtectedServices to ProtectedService #104

Closed
wants to merge 14 commits into from
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
"helm.sh/resource-policy": keep
creationTimestamp: null
name: protectedservices.k8s.otterize.com
spec:
group: k8s.otterize.com
names:
kind: ProtectedService
listKind: ProtectedServiceList
plural: protectedservices
singular: protectedservice
scope: Namespaced
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
description: ProtectedService is the Schema for the protectedservice API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ProtectedServiceSpec defines the desired state of ProtectedService
properties:
name:
type: string
type: object
status:
description: ProtectedServiceStatus defines the observed state of ProtectedService
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,32 @@ rules:
- get
- patch
- update
- apiGroups:
- k8s.otterize.com
resources:
- protectedservices
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- k8s.otterize.com
resources:
- protectedservices/finalizers
verbs:
- update
- apiGroups:
- k8s.otterize.com
resources:
- protectedservices/status
verbs:
- get
- patch
- update
- apiGroups:
- networking.k8s.io
resources:
Expand Down Expand Up @@ -171,4 +197,4 @@ rules:
- get
- list
- watch
{{ end }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
creationTimestamp: null
name: validating-webhook-configuration
name: otterize-validating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
Expand All @@ -24,3 +24,23 @@ webhooks:
resources:
- clientintents
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: intents-operator-webhook-service
namespace: {{ .Release.Namespace }}
path: /validate-k8s-otterize-com-v1alpha2-protectedservice
failurePolicy: Fail
name: protectedservice.kb.io
rules:
- apiGroups:
- k8s.otterize.com
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- protectedservice
sideEffects: None
Loading