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

Add experimental support for the new database reconciler and its feature flag. #103

Merged
merged 1 commit into from
Aug 6, 2023
Merged
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
1 change: 1 addition & 0 deletions intents-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
21 changes: 21 additions & 0 deletions intents-operator/crds/clientintents-customresourcedefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -94,6 +114,7 @@ spec:
enum:
- http
- kafka
- database
type: string
required:
- name
Expand Down
3 changes: 3 additions & 0 deletions intents-operator/templates/intents-operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
{{- else }}
- --telemetry-enabled=true
{{- end }}
{{- if eq true .Values.operator.enableDatabaseReconciler }}
- --enable-database-reconciler=true
{{- end }}

command:
- /manager
Expand Down
1 change: 1 addition & 0 deletions intents-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading