Skip to content

Commit

Permalink
Ensure invalidate-cache doesn't run by default. (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
absoludity authored Mar 6, 2020
1 parent d1d9648 commit c864b73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chart/kubeapps/templates/apprepository-jobs-preupgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.featureFlags.invalidateCache }}
# Ensure db indexes are set and invalidate the chart cache during both install and upgrade.
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -66,3 +67,4 @@ spec:
key: postgresql-password
name: {{ .Values.postgresql.existingSecret }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/kubeapps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -641,4 +641,6 @@ authProxy:
## These are used to switch on in development features or new features not yet released.
featureFlags:
reposPerNamespace: false
# The invalidateCache flag must be set to default to true when we next release the Kubeapps app.
invalidateCache: false
operators: false
1 change: 1 addition & 0 deletions script/deploy-dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ deploy-dev: deploy-dex deploy-openldap update-apiserver-etc-hosts
--set useHelm3=true \
--set postgresql.enabled=true \
--set featureFlags.reposPerNamespace=true \
--set featureFlags.invalidateCache=true \
--set mongodb.enabled=false
kubectl apply -f ./docs/user/manifests/kubeapps-local-dev-users-rbac.yaml
@echo "\nEnsure you have the entry '127.0.0.1 dex.dex' in your /etc/hosts, then run\n"
Expand Down
4 changes: 3 additions & 1 deletion script/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ if [[ "${HELM_VERSION:-}" =~ "v2" ]]; then
"${HELM_CLIENT_TLS_FLAGS[@]}" \
--set tillerProxy.tls.key="$(cat "${CERTS_DIR}/helm.key.pem")" \
--set tillerProxy.tls.cert="$(cat "${CERTS_DIR}/helm.cert.pem")" \
--set featureFlags.invalidateCache=true \
"${img_flags[@]}" \
"${db_flags[@]}"
else
Expand All @@ -131,6 +132,7 @@ else
kubectl create ns kubeapps
helm dep up "${ROOT_DIR}/chart/kubeapps/"
helm install kubeapps-ci --namespace kubeapps "${ROOT_DIR}/chart/kubeapps" \
--set featureFlags.invalidateCache=true \
"${img_flags[@]}" \
"${db_flags[@]}" \
--set useHelm3=true
Expand Down Expand Up @@ -240,4 +242,4 @@ if ! kubectl exec -it "$pod" -- /bin/sh -c "INTEGRATION_ENTRYPOINT=http://kubeap
kubectl cp "${pod}:/app/reports" ./reports
exit 1
fi
info "Integration tests succeded!!"
info "Integration tests succeded!!"

0 comments on commit c864b73

Please sign in to comment.