Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 7, 2023
1 parent dc5487e commit 9198c87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/flagdinjector/flagdinjector.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (fi *FlagdContainerInjector) createConfigMap(ctx context.Context, namespace
}
ff, err := common.FindFlagConfig(ctx, fi.Client, namespace, name)
if err != nil {
return fmt.Errorf("could not retrieve feature flag configuration %s/%s: %w", namespace, name, err)
return fmt.Errorf("could not retrieve featureflag %s/%s: %w", namespace, name, err)
}

references = append(references, ff.GetReference())
Expand Down
2 changes: 1 addition & 1 deletion config/rbac/flagd_kubernetes_sync_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
name: flagd-kubernetes-sync
rules:
- apiGroups: ["core.openfeature.dev"]
resources: ["flagsourceconfigurations", "featureflagconfigurations"]
resources: ["featureflagsources", "featureflags"]
verbs: ["get", "watch", "list"]
2 changes: 0 additions & 2 deletions test/e2e/kuttl/inject-flagd/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

apiVersion: v1
kind: Pod
metadata:
annotations:
openfeature.dev/allowkubernetessync: "true"
openfeature.dev/enabled: "true"
openfeature.dev/featureflagsource: "source-configuration"
labels:
Expand Down

0 comments on commit 9198c87

Please sign in to comment.