Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
gke demo cluster deployment on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Kurilov committed Jun 13, 2023
1 parent bb8a30a commit b8f5380
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,4 @@ jobs:
- name: Helm Upgrade
run: |
helm upgrade --install ${COMPONENT} ${COMPONENT}-0.0.0.tgz \
--set db.username=root \
--set db.password.secret.enabled=true
--set db.password.secret.enabled=false,db.protocol=mongodb+srv,db.tls.enabled=true,db.tls.insecure=true,db.hostname=${{ secrets.DB_HOST_DEMO }},db.username=${{ secrets.DB_USERNAME_DEMO }},db.password.raw=${{ secrets.DB_PASSWORD_DEMO }}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/producer-rss/templates/cronjob-arxiv-org-cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/producer-rss/templates/cronjob-hn-org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/producer-rss/templates/cronjob-lenta-ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/producer-rss/templates/cronjob-techcrunch-com.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/producer-rss/templates/cronjob-yle-fi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: API_WRITER_URI
value: "{{ .Values.api.writer.uri }}"
- name: DB_URI
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}:{{ .Values.db.port }}/?retryWrites=true&w=majority"
value: "{{ .Values.db.protocol }}://{{ .Values.db.hostname }}/?retryWrites=true&w=majority"
- name: DB_NAME
value: {{ .Values.db.name }}
- name: DB_USERNAME
Expand Down
3 changes: 1 addition & 2 deletions helm/producer-rss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ api:
uri: "writer:50051"
db:
protocol: mongodb
hostname: mongodb
port: 27017
hostname: "mongodb:27017"
# Database name to use.
name: producer-rss
username: "root"
Expand Down

0 comments on commit b8f5380

Please sign in to comment.