Skip to content

Commit

Permalink
Configure feature for new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenlj committed Mar 7, 2024
1 parent 84122a7 commit b38a772
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiven_poke/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class Settings(BaseSettings):
webhook_enabled: bool = True
push_gateway_address: Optional[str] = None
expiring_users_enabled: bool = False
topics_enabled: bool = True
topics_enabled: bool = False
override_slack_channel: Optional[str] = None

8 changes: 7 additions & 1 deletion charts/aiven-poke/Feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ dependencies:
environmentKinds:
- legacy
- tenant
- onprem
values:
aivenProject:
description: Which aiven project to look for topics in
description: Which aiven project to look for topics and users in
displayName: aiven project
computed:
template: '"{{ .Env.aiven_project }}"'
enableTopics:
description: Should we poke teams about expiring users
computed:
template: |
{{ ne .Env.kind "onprem" }}
aivenToken:
config:
type: string
Expand Down
2 changes: 2 additions & 0 deletions charts/aiven-poke/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ type: Opaque
stringData:
AIVEN_TOKEN: '{{ .Values.aivenToken }}'
WEBHOOK_URL: '{{ .Values.slackWebhookURL }}'
EXPIRING_USERS_ENABLED: '{{ .Values.enable_expiring_users }}'
TOPICS_ENABLED: '{{ .Values.enable_topics }}'
2 changes: 2 additions & 0 deletions charts/aiven-poke/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
slackWebhookURL: ""
aivenToken: ""
push_gateway_address: ""
enable_expiring_users: "true"
enable_topics: "true"

image:
repository: europe-north1-docker.pkg.dev/nais-io/nais/images/aiven-poke
Expand Down

0 comments on commit b38a772

Please sign in to comment.