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

PR for appcat on spks/deletion_protection #510

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ parameters:
appcat:
registry: ghcr.io
repository: vshn/appcat
tag: v4.97.2
tag: v4.101.0
functionAppcat:
registry: ${appcat:images:appcat:registry}
repository: ${appcat:images:appcat:repository}
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/billing/appcat/appcat/10_function_appcat.yaml
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,65 @@ rules:
- update
- watch
- apiGroups:
- kubernetes.crossplane.io
- syn.tools
resources:
- objects
- compositemariadbdatabaseinstances
verbs:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
resources:
- compositemariadbinstances
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
resources:
- compositemariadbinstances/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
resources:
- compositemariadbuserinstances
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
resources:
- compositeredisinstances
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- syn.tools
resources:
- compositeredisinstances/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
Expand Down Expand Up @@ -141,17 +195,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnpostgresqls/finalizers
verbs:
- create
- 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 @@ -5,6 +5,44 @@ metadata:
cert-manager.io/inject-ca-from: syn-appcat/webhook-certificate
name: appcat-validation
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-mysql-sql-crossplane-io-v1alpha1-database
failurePolicy: Fail
name: databases.mysql.vshn.appcat.vshn.io
rules:
- apiGroups:
- mysql.sql.crossplane.io
apiVersions:
- v1alpha1
operations:
- DELETE
resources:
- databases
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-mysql-sql-crossplane-io-v1alpha1-grant
failurePolicy: Fail
name: grants.mysql.vshn.appcat.vshn.io
rules:
- apiGroups:
- mysql.sql.crossplane.io
apiVersions:
- v1alpha1
operations:
- DELETE
resources:
- grants
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -47,6 +85,44 @@ webhooks:
resources:
- objectbuckets
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-kubernetes-crossplane-io-v1alpha2-object
failurePolicy: Fail
name: objects.vshn.appcat.vshn.io
rules:
- apiGroups:
- kubernetes.crossplane.io
apiVersions:
- v1alpha2
operations:
- DELETE
resources:
- objects
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-kubernetes-crossplane-io-v1alpha1-object
failurePolicy: Fail
name: objectsv1alpha1.vshn.appcat.vshn.io
rules:
- apiGroups:
- kubernetes.crossplane.io
apiVersions:
- v1alpha1
operations:
- DELETE
resources:
- objects
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -91,6 +167,44 @@ webhooks:
resources:
- persistentvolumeclaims
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-helm-crossplane-io-v1beta1-release
failurePolicy: Fail
name: releases.vshn.appcat.vshn.io
rules:
- apiGroups:
- helm.crossplane.io
apiVersions:
- v1beta1
operations:
- DELETE
resources:
- releases
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: syn-appcat
path: /validate-mysql-sql-crossplane-io-v1alpha1-user
failurePolicy: Fail
name: users.mysql.vshn.appcat.vshn.io
rules:
- apiGroups:
- mysql.sql.crossplane.io
apiVersions:
- v1alpha1
operations:
- DELETE
resources:
- users
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
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.97.2-func
package: ghcr.io/vshn/appcat:v4.101.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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
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.97.2
image: ghcr.io/vshn/appcat:v4.101.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Loading