Deletion Protection

The Deletion Protection feature is enabled by default and ensures your instance is not deleted by accident.

Configuration

Deletion protection can be enabled or disabled using the following configuration:

Example of a Keycloak instance with deletion protection on. Update the namespace!
apiVersion: vshn.appcat.vshn.io/v1
kind: VSHNKeycloak
metadata:
  name: keycloak-app1-prod
  namespace: <your-namespace>
spec:
  parameters:
    security:
      deletionProtection: true (1)
    service:
      version: "23"
      postgreSQLParameters: {}
    size:
      plan: standard-2
  writeConnectionSecretToRef:
    name: keycloak-creds
1 Enable or disable instance deletion protection.