diff --git a/intents-operator/README.md b/intents-operator/README.md index 19103aef..75b58972 100644 --- a/intents-operator/README.md +++ b/intents-operator/README.md @@ -20,6 +20,7 @@ | `operator.autoCreateNetworkPoliciesForExternalTraffic` | Automatically allow external traffic, if a new ClientIntents resource would result in blocking external (internet) traffic and there is an Ingress/Service resource indicating external traffic is expected. | `true` | | `operator.autoCreateNetworkPoliciesForExternalTrafficDisableIntentsRequirement` | **experimental** - If `autoCreateNetworkPoliciesForExternalTraffic` is enabled, do not require ClientIntents resources - simply create network policies based off of the existence of an Ingress/Service resource. | `false` | | `operator.resources` | Resources override. | | +| `operator.enableDatabaseReconciler` | **experimental** - Enables experimental support for database intents (coming soon!) | `false` | ## Watcher parameters | Key | Description | Default | diff --git a/intents-operator/crds/clientintents-customresourcedefinition.yaml b/intents-operator/crds/clientintents-customresourcedefinition.yaml index 53eb0651..1f5f4256 100644 --- a/intents-operator/crds/clientintents-customresourcedefinition.yaml +++ b/intents-operator/crds/clientintents-customresourcedefinition.yaml @@ -39,6 +39,26 @@ spec: calls: items: properties: + databaseResources: + items: + properties: + operations: + items: + enum: + - ALL + - SELECT + - INSERT + - UPDATE + - DELETE + type: string + type: array + table: + type: string + required: + - operations + - table + type: object + type: array name: type: string resources: @@ -94,6 +114,7 @@ spec: enum: - http - kafka + - database type: string required: - name diff --git a/intents-operator/templates/intents-operator-deployment.yaml b/intents-operator/templates/intents-operator-deployment.yaml index 631584d6..920b790a 100644 --- a/intents-operator/templates/intents-operator-deployment.yaml +++ b/intents-operator/templates/intents-operator-deployment.yaml @@ -54,6 +54,9 @@ spec: {{- else }} - --telemetry-enabled=true {{- end }} + {{- if eq true .Values.operator.enableDatabaseReconciler }} + - --enable-database-reconciler=true + {{- end }} command: - /manager diff --git a/intents-operator/values.yaml b/intents-operator/values.yaml index 6538427a..9923c17d 100644 --- a/intents-operator/values.yaml +++ b/intents-operator/values.yaml @@ -14,6 +14,7 @@ operator: autoCreateNetworkPoliciesForExternalTraffic: true autoCreateNetworkPoliciesForExternalTrafficDisableIntentsRequirement: false enableIstioPolicyCreation: true + enableDatabaseReconciler: false resources: { } # We usually recommend not to specify default resources and to leave this as a conscious