Skip to content

Commit

Permalink
chore(deps): update open-feature/flagd (#499)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 1, 2023
1 parent ffd3e0a commit 83fbb00
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apis/core/v1alpha1/flagsourceconfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const (
defaultEvaluator string = "json"
defaultImage string = "ghcr.io/open-feature/flagd"
// renovate: datasource=github-tags depName=open-feature/flagd/flagd
defaultTag string = "v0.5.4"
defaultTag string = "v0.6.2"
defaultLogFormat string = "json"
defaultProbesEnabled bool = true
SyncProviderKubernetes SyncProviderType = "kubernetes"
Expand Down
4 changes: 2 additions & 2 deletions chart/open-feature-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The command removes all the Kubernetes components associated with the chart and
| `sidecarConfiguration.metricsPort` | Sets the value of the `XXX_METRICS_PORT` environment variable for the injected sidecar. | `8014` |
| `sidecarConfiguration.socketPath` | Sets the value of the `XXX_SOCKET_PATH` environment variable for the injected sidecar. | `""` |
| `sidecarConfiguration.image.repository` | Sets the image for the injected sidecar. | `ghcr.io/open-feature/flagd` |
| `sidecarConfiguration.image.tag` | Sets the version tag for the injected sidecar. | `v0.5.4` |
| `sidecarConfiguration.image.tag` | Sets the version tag for the injected sidecar. | `v0.6.2` |
| `sidecarConfiguration.providerArgs` | Used to append arguments to the sidecar startup command. This value is a comma separated string of key values separated by '=', e.g. `key=value,key2=value2` results in the appending of `--sync-provider-args key=value --sync-provider-args key2=value2`. | `""` |
| `sidecarConfiguration.envVarPrefix` | Sets the prefix for all environment variables set in the injected sidecar. | `FLAGD` |
| `sidecarConfiguration.defaultSyncProvider` | Sets the value of the `XXX_SYNC_PROVIDER` environment variable for the injected sidecar container. There are 3 valid sync providers: `kubernetes`, `filepath` and `http`. | `kubernetes` |
Expand All @@ -114,7 +114,7 @@ The command removes all the Kubernetes components associated with the chart and
| `flagdProxyConfiguration.port` | Sets the port to expose the sync API on. | `8015` |
| `flagdProxyConfiguration.metricsPort` | Sets the port to expose the metrics API on. | `8016` |
| `flagdProxyConfiguration.image.repository` | Sets the image for the flagd-proxy deployment. | `ghcr.io/open-feature/flagd-proxy` |
| `flagdProxyConfiguration.image.tag` | Sets the tag for the flagd-proxy deployment. | `v0.2.4` |
| `flagdProxyConfiguration.image.tag` | Sets the tag for the flagd-proxy deployment. | `v0.2.7` |
| `flagdProxyConfiguration.debugLogging` | Controls the addition of the `--debug` flag to the container startup arguments. | `false` |

### Operator resource configuration
Expand Down
4 changes: 2 additions & 2 deletions chart/open-feature-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sidecarConfiguration:
## @param sidecarConfiguration.image.repository Sets the image for the injected sidecar.
repository: "ghcr.io/open-feature/flagd"
## @param sidecarConfiguration.image.tag Sets the version tag for the injected sidecar.
tag: v0.5.4
tag: v0.6.2
## @param sidecarConfiguration.providerArgs Used to append arguments to the sidecar startup command. This value is a comma separated string of key values separated by '=', e.g. `key=value,key2=value2` results in the appending of `--sync-provider-args key=value --sync-provider-args key2=value2`.
providerArgs: ""
## @param sidecarConfiguration.envVarPrefix Sets the prefix for all environment variables set in the injected sidecar.
Expand All @@ -42,7 +42,7 @@ flagdProxyConfiguration:
## @param flagdProxyConfiguration.image.repository Sets the image for the flagd-proxy deployment.
repository: "ghcr.io/open-feature/flagd-proxy"
## @param flagdProxyConfiguration.image.tag Sets the tag for the flagd-proxy deployment.
tag: v0.2.4
tag: v0.2.7
## @param flagdProxyConfiguration.debugLogging Controls the addition of the `--debug` flag to the container startup arguments.
debugLogging: false

Expand Down
2 changes: 1 addition & 1 deletion controllers/common/flagd-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
FlagdProxyServiceAccountName = "open-feature-operator-flagd-proxy"
FlagdProxyServiceName = "flagd-proxy-svc"
// renovate: datasource=github-tags depName=open-feature/flagd/flagd-proxy
DefaultFlagdProxyTag = "v0.2.2"
DefaultFlagdProxyTag = "v0.2.7"
DefaultFlagdProxyImage = "ghcr.io/open-feature/flagd-proxy"
DefaultFlagdProxyPort = 8015
DefaultFlagdProxyMetricsPort = 8016
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/flag-evaluation.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

FLAG_KEY="$1"
EXPECTED_RESPONSE="$2"
EXPECTED_RESPONSE_CONTAIN="$2"

# attempt up to 5 times
MAX_ATTEMPTS=5
Expand All @@ -23,12 +23,12 @@ do
RESPONSE=$(curl -s -X POST "localhost:30000/schema.v1.Service/ResolveBoolean" -d "{\"flagKey\":\"$FLAG_KEY\",\"context\":{}}" -H "Content-Type: application/json")
RESPONSE="${RESPONSE//[[:space:]]/}" # strip whitespace from response

if [ "$RESPONSE" == "$EXPECTED_RESPONSE" ]
if [[ "$RESPONSE" == *"$EXPECTED_RESPONSE_CONTAIN"* ]]
then
exit 0
fi

echo "Expected response for flag $FLAG_KEY: $EXPECTED_RESPONSE"
echo "Expected response for flag $FLAG_KEY to contain: EXPECTED_RESPONSE_CONTAIN"
echo "Got response for flag $FLAG_KEY: $RESPONSE"
echo "Retrying in ${RETRY_INTERVAL} seconds"
sleep "${RETRY_INTERVAL}"
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/kuttl/assets/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ spec:
- /bin/sh
- -ec
- |
EXPECTED_RESPONSE='{"value":true,"reason":"STATIC","variant":"on"}'
EXPECTED_RESPONSE_CONTAIN='"value":true,"reason":"STATIC","variant":"on"'
RESPONSE=$(curl -s -X POST "open-feature-e2e-test-service:30000/schema.v1.Service/ResolveBoolean" -d '{"flagKey":"simple-flag","context":{}}' -H "Content-Type: application/json")
RESPONSE="${RESPONSE//[[:space:]]/}" # strip whitespace from response
if [ "$RESPONSE" == "$EXPECTED_RESPONSE" ]
if [[ "$RESPONSE" == *"$EXPECTED_RESPONSE_CONTAIN"* ]]
then
exit 0
fi
echo "Expected response: $EXPECTED_RESPONSE"
echo "Expected response to contain: $EXPECTED_RESPONSE_CONTAIN"
echo "Got response: $RESPONSE"
exit 1
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-file-sync/00-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
evaluator: json
defaultSyncProvider: filepath
# renovate: datasource=github-tags depName=open-feature/flagd/flagd
tag: v0.5.4
tag: v0.6.2
sources:
- source: end-to-end-test
provider: filepath
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-file-sync/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
- name: open-feature-e2e-test
image: nginx:stable-alpine
- name: flagd # this part verifies flagd injection happened
image: ghcr.io/open-feature/flagd:v0.5.4
image: ghcr.io/open-feature/flagd:v0.6.2
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-flagd-proxy-sync/00-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
evaluator: json
defaultSyncProvider: flagd-proxy
# renovate: datasource=github-tags depName=open-feature/flagd/flagd
tag: v0.5.4
tag: v0.6.2
sources:
- source: end-to-end-test
provider: flagd-proxy
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-flagd-proxy-sync/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
- name: open-feature-e2e-test
image: nginx:stable-alpine
- name: flagd # this part verifies flagd injection happened
image: ghcr.io/open-feature/flagd:v0.5.4
image: ghcr.io/open-feature/flagd:v0.6.2
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-k8s-sync/00-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
evaluator: json
defaultSyncProvider: kubernetes
# renovate: datasource=github-tags depName=open-feature/flagd/flagd
tag: v0.5.4
tag: v0.6.2
sources:
- source: end-to-end-test
provider: kubernetes
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/kuttl/fsconfig-k8s-sync/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
- name: open-feature-e2e-test
image: nginx:stable-alpine
- name: flagd # this part verifies flagd injection happened
image: ghcr.io/open-feature/flagd:v0.5.4
image: ghcr.io/open-feature/flagd:v0.6.2
6 changes: 3 additions & 3 deletions test/e2e/kuttl/inject-flagd/00-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ spec:
- /bin/sh
- -ec
- |
EXPECTED_RESPONSE='{"value":true,"reason":"STATIC","variant":"on"}'
EXPECTED_RESPONSE_CONTAIN='"value":true,"reason":"STATIC","variant":"on"'
RESPONSE=$(curl -s -X POST "open-feature-e2e-test-service:30000/schema.v1.Service/ResolveBoolean" -d '{"flagKey":"simple-flag","context":{}}' -H "Content-Type: application/json")
RESPONSE="${RESPONSE//[[:space:]]/}" # strip whitespace from response
if [ "$RESPONSE" == "$EXPECTED_RESPONSE" ]
if [[ "$RESPONSE" == *"$EXPECTED_RESPONSE_CONTAIN"* ]]
then
exit 0
fi
echo "Expected response: $EXPECTED_RESPONSE"
echo "Expected response to contain: $EXPECTED_RESPONSE_CONTAIN"
echo "Got response: $RESPONSE"
exit 1
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion test/e2e/kuttl/inject-flagd/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ spec:
- name: open-feature-e2e-test
image: nginx:stable-alpine
- name: flagd # this part verifies flagd injection happened
image: ghcr.io/open-feature/flagd:v0.5.4
image: ghcr.io/open-feature/flagd:v0.6.2
4 changes: 2 additions & 2 deletions test/e2e/tests/001.flagd-response.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
FAILURE=0

flagKeys=('simple-flag' 'simple-flag-filepath' 'simple-flag-filepath2')
expectedFlagResponses=('{"value":true,"reason":"STATIC","variant":"on"}' '{"value":true,"reason":"STATIC","variant":"on"}' '{"value":true,"reason":"STATIC","variant":"on"}')
expectedResponseContain=('value":true,"reason":"STATIC","variant":"on"' '"value":true,"reason":"STATIC","variant":"on"' '"value":true,"reason":"STATIC","variant":"on"')

for i in "${!flagKeys[@]}"; do
./"$(dirname "${BASH_SOURCE[0]}")"/../flag-evaluation.sh "${flagKeys[$i]}" "${expectedFlagResponses[$i]}"
./"$(dirname "${BASH_SOURCE[0]}")"/../flag-evaluation.sh "${flagKeys[$i]}" "${expectedResponseContain[$i]}"
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ];
then
Expand Down

0 comments on commit 83fbb00

Please sign in to comment.