Skip to content

Commit

Permalink
Ignore persistent config ConfigMaps for E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Sep 22, 2022
1 parent 590a2bb commit df0c514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/botkube/templates/persistent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.settings.persistentConfig.runtime.configMap.name }}
annotations:
botkube.io/disable: "true"
labels:
app.kubernetes.io/name: {{ include "botkube.name" . }}
helm.sh/chart: {{ include "botkube.chart" . }}
Expand Down Expand Up @@ -48,6 +50,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.settings.persistentConfig.startup.configMap.name }}
annotations:
botkube.io/disable: "true"
labels:
app.kubernetes.io/name: {{ include "botkube.name" . }}
helm.sh/chart: {{ include "botkube.chart" . }}
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/bots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ type Config struct {
SecondaryDiscordChannelIDName string `envconfig:"default=BOTKUBE_COMMUNICATIONS_DEFAULT-GROUP_DISCORD_CHANNELS_SECONDARY_ID"`
}
}
ConfigMap struct {
Namespace string `envconfig:"default=botkube"`
}
ClusterName string `envconfig:"default=sample"`
Slack SlackConfig
Discord DiscordConfig
Expand Down

0 comments on commit df0c514

Please sign in to comment.