Skip to content

Commit

Permalink
Merge pull request #423 from vshn/feature/webhook_delprot
Browse files Browse the repository at this point in the history
Implement deletionProtection for the claims
  • Loading branch information
TheBigLee authored Jul 29, 2024
2 parents 9112a83 + 2f154ca commit a6c7a84
Show file tree
Hide file tree
Showing 83 changed files with 882 additions and 48 deletions.
2 changes: 1 addition & 1 deletion component/class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ parameters:
appcat:
registry: ghcr.io
repository: vshn/appcat
tag: v4.85.0
tag: v4.86.0
functionAppcat:
registry: ${appcat:images:appcat:registry}
repository: ${appcat:images:appcat:repository}
Expand Down
1 change: 1 addition & 0 deletions component/component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ local ns = kube.Namespace(params.namespace) {
metadata+: {
labels+: {
'openshift.io/cluster-monitoring': 'true',
'appuio.io/organization': 'vshn',
} + params.namespaceLabels,
annotations+: params.namespaceAnnotations,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- --secure-port=9443
- --tls-cert-file=/apiserver.local.config/certificates/tls.crt
- --tls-private-key-file=/apiserver.local.config/certificates/tls.key
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,86 @@ rules:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnkeycloaks
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnkeycloaks/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnmariadbs
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnmariadbs/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnminios
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnminios/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,90 @@ webhooks:
resources:
- persistentvolumeclaims
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-vshn-appcat-vshn-io-v1-vshnkeycloak
failurePolicy: Fail
name: vshnkeycloak.vshn.appcat.vshn.io
rules:
- apiGroups:
- vshn.appcat.vshn.io
apiVersions:
- v1
operations:
- CREATE
- UPDATE
- DELETE
resources:
- vshnkeycloaks
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-vshn-appcat-vshn-io-v1-vshnmariadb
failurePolicy: Fail
name: vshnmariadb.vshn.appcat.vshn.io
rules:
- apiGroups:
- vshn.appcat.vshn.io
apiVersions:
- v1
operations:
- CREATE
- UPDATE
- DELETE
resources:
- vshnmariadbs
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-vshn-appcat-vshn-io-v1-vshnminio
failurePolicy: Fail
name: vshnminio.vshn.appcat.vshn.io
rules:
- apiGroups:
- vshn.appcat.vshn.io
apiVersions:
- v1
operations:
- CREATE
- UPDATE
- DELETE
resources:
- vshnminios
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-vshn-appcat-vshn-io-v1-vshnnextcloud
failurePolicy: Fail
name: vshnnextcloud.vshn.appcat.vshn.io
rules:
- apiGroups:
- vshn.appcat.vshn.io
apiVersions:
- v1
operations:
- CREATE
- UPDATE
- DELETE
resources:
- vshnnextclouds
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand All @@ -87,6 +171,8 @@ webhooks:
apiVersions:
- v1
operations:
- CREATE
- UPDATE
- DELETE
resources:
- vshnredis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
env:
- name: PLANS_NAMESPACE
value: syn-appcat
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
annotations: {}
labels:
appuio.io/organization: vshn
name: syn-appcat
openshift.io/cluster-monitoring: 'true'
name: syn-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.85.0-func
package: ghcr.io/vshn/appcat:v4.86.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.85.0
image: ghcr.io/vshn/appcat:v4.86.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Loading

0 comments on commit a6c7a84

Please sign in to comment.