diff --git a/Makefile b/Makefile index 1019ceb72..163caa3be 100644 --- a/Makefile +++ b/Makefile @@ -292,7 +292,7 @@ $(foreach IMAGE,$(IMAGES),clean-$(IMAGE)-image): clean-%-image: ##################################################################################################################### update-chart-deps: build/toolchain/bin/helm$(EXE_EXTENSION) - (cd $(REPOSITORY_ROOT)/install/helm/open-match; $(HELM) repo add incubator https://charts.helm.sh/incubator; $(HELM) dependency update) + (cd $(REPOSITORY_ROOT)/install/helm/open-match; $(HELM) repo add incubator https://charts.helm.sh/incubator; $(HELM) repo add bitnami https://charts.bitnami.com/bitnami;$(HELM) dependency update) lint-chart: build/toolchain/bin/helm$(EXE_EXTENSION) build/toolchain/bin/ct$(EXE_EXTENSION) (cd $(REPOSITORY_ROOT)/install/helm; $(HELM) lint $(OPEN_MATCH_HELM_NAME)) @@ -305,8 +305,8 @@ build/chart/open-match-$(BASE_VERSION).tgz: build/toolchain/bin/helm$(EXE_EXTENS build/chart/index.yaml: build/toolchain/bin/helm$(EXE_EXTENSION) gcloud build/chart/open-match-$(BASE_VERSION).tgz mkdir -p $(BUILD_DIR)/chart-index/ - -gsutil cp gs://open-match-chart/chart/index.yaml $(BUILD_DIR)/chart-index/ - -gsutil -m cp gs://open-match-chart/chart/open-match-* $(BUILD_DIR)/chart-index/ + -gsutil cp $(_CHARTS_BUCKET)/chart/index.yaml $(BUILD_DIR)/chart-index/ + -gsutil -m cp $(_CHARTS_BUCKET)/chart/open-match-* $(BUILD_DIR)/chart-index/ $(HELM) repo index $(BUILD_DIR)/chart-index/ $(HELM) repo index --merge $(BUILD_DIR)/chart-index/index.yaml $(BUILD_DIR)/chart/ @@ -320,7 +320,7 @@ install-chart-prerequisite: build/toolchain/bin/kubectl$(EXE_EXTENSION) update-c $(KUBECTL) apply -f install/gke-metadata-server-workaround.yaml # Used for Open Match development. Install om-configmap-override.yaml by default. -HELM_UPGRADE_FLAGS = --cleanup-on-fail -i --no-hooks --debug --timeout=600s --namespace=$(OPEN_MATCH_KUBERNETES_NAMESPACE) --set global.gcpProjectId=$(GCP_PROJECT_ID) --set open-match-override.enabled=true --set redis.password=$(REDIS_DEV_PASSWORD) +HELM_UPGRADE_FLAGS = --cleanup-on-fail -i --no-hooks --debug --timeout=600s --namespace=$(OPEN_MATCH_KUBERNETES_NAMESPACE) --set global.gcpProjectId=$(GCP_PROJECT_ID) --set open-match-override.enabled=true --set redis.password=$(REDIS_DEV_PASSWORD) --set redis.usePassword=false --set redis.sentinel.usePassword=false # Used for generate static yamls. Install om-configmap-override.yaml as needed. HELM_TEMPLATE_FLAGS = --no-hooks --namespace $(OPEN_MATCH_KUBERNETES_NAMESPACE) --set usingHelmTemplate=true HELM_IMAGE_FLAGS = --set global.image.registry=$(REGISTRY) --set global.image.tag=$(TAG) @@ -837,13 +837,13 @@ md-test: docker ci-deploy-artifacts: install/yaml/ $(SWAGGER_JSON_DOCS) build/chart/ gcloud ifeq ($(_GCB_POST_SUBMIT),1) - gsutil cp -a public-read $(REPOSITORY_ROOT)/install/yaml/* gs://open-match-chart/install/v$(BASE_VERSION)/yaml/ - gsutil cp -a public-read $(REPOSITORY_ROOT)/api/*.json gs://open-match-chart/api/v$(BASE_VERSION)/ + gsutil cp -a public-read $(REPOSITORY_ROOT)/install/yaml/* $(_CHARTS_BUCKET)/install/v$(BASE_VERSION)/yaml/ + gsutil cp -a public-read $(REPOSITORY_ROOT)/api/*.json $(_CHARTS_BUCKET)/api/v$(BASE_VERSION)/ # Deploy Helm Chart # Since each build will refresh just it's version we can allow this for every post submit. # Copy the files into multiple locations to keep a backup. - gsutil cp -a public-read $(BUILD_DIR)/chart/*.* gs://open-match-chart/chart/by-hash/$(VERSION)/ - gsutil cp -a public-read $(BUILD_DIR)/chart/*.* gs://open-match-chart/chart/ + gsutil cp -a public-read $(BUILD_DIR)/chart/*.* $(_CHARTS_BUCKET)/chart/by-hash/$(VERSION)/ + gsutil cp -a public-read $(BUILD_DIR)/chart/*.* $(_CHARTS_BUCKET)/chart/ else @echo "Not deploying build artifacts to open-match.dev because this is not a post commit change." endif diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 5e177a506..7be6259bd 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -90,7 +90,7 @@ steps: - id: 'Build: Assets' name: 'gcr.io/$PROJECT_ID/open-match-build' - args: ['make', 'assets', '-j12'] + args: ['make', '_CHARTS_BUCKET=${_CHARTS_BUCKET}', 'assets', '-j12'] volumes: - name: 'go-vol' path: '/go' @@ -132,7 +132,7 @@ steps: - id: 'Deploy: Deployment Configs' name: 'gcr.io/$PROJECT_ID/open-match-build' - args: ['make', '_GCB_POST_SUBMIT=${_GCB_POST_SUBMIT}', '_GCB_LATEST_VERSION=${_GCB_LATEST_VERSION}', 'SHORT_SHA=${SHORT_SHA}', 'BRANCH_NAME=${BRANCH_NAME}', 'ci-deploy-artifacts'] + args: ['make', '_GCB_POST_SUBMIT=${_GCB_POST_SUBMIT}', '_GCB_LATEST_VERSION=${_GCB_LATEST_VERSION}', 'SHORT_SHA=${SHORT_SHA}', 'BRANCH_NAME=${BRANCH_NAME}', '_CHARTS_BUCKET=${_CHARTS_BUCKET}', 'ci-deploy-artifacts'] waitFor: ['Lint: Format, Vet, Charts', 'Test: Deploy Open Match'] volumes: - name: 'go-vol' @@ -169,6 +169,7 @@ substitutions: _GCB_LATEST_VERSION: "undefined" _ARTIFACTS_BUCKET: "gs://open-match-build-artifacts/output/" _LOGS_BUCKET: "gs://open-match-build-logs/" + _CHARTS_BUCKET: "gs://open-match-chart" logsBucket: '${_LOGS_BUCKET}' options: sourceProvenanceHash: ['SHA256'] diff --git a/install/helm/open-match/Chart.yaml b/install/helm/open-match/Chart.yaml index a3dcd4c79..a061317b0 100644 --- a/install/helm/open-match/Chart.yaml +++ b/install/helm/open-match/Chart.yaml @@ -18,8 +18,8 @@ version: 0.0.0-dev name: open-match dependencies: - name: redis - version: 9.5.0 - repository: https://charts.helm.sh/stable + version: 12.3.3 + repository: https://charts.bitnami.com/bitnami condition: open-match-core.redis.enabled - name: open-match-telemetry version: 0.0.0-dev diff --git a/internal/testing/e2e/common.go b/internal/testing/e2e/common.go index f3680fbef..95e1b18f2 100644 --- a/internal/testing/e2e/common.go +++ b/internal/testing/e2e/common.go @@ -222,7 +222,7 @@ redis: sentinelPort: 26379 sentinelMaster: om-redis-master sentinelHostname: open-match-redis - sentinelUsePassword: + sentinelUsePassword: false usePassword: false passwordPath: /opt/bitnami/redis/secrets/redis-password pool: diff --git a/third_party/swaggerui/config.json b/third_party/swaggerui/config.json index 6c70b3cf3..a3a6db48d 100644 --- a/third_party/swaggerui/config.json +++ b/third_party/swaggerui/config.json @@ -7,4 +7,4 @@ {"name": "Synchronizer", "url": "https://open-match.dev/api/v0.0.0-dev/synchronizer.swagger.json"}, {"name": "Evaluator", "url": "https://open-match.dev/api/v0.0.0-dev/evaluator.swagger.json"} ] -} +} \ No newline at end of file