Skip to content

Commit

Permalink
Merge pull request #82 from may-cat/78-fix-releases
Browse files Browse the repository at this point in the history
#78 autoupdate to helm's version, not to default "latest" in values.yaml
  • Loading branch information
may-cat authored Mar 27, 2018
2 parents b9c65c4 + 20e35b0 commit dffef8c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.idea
/log
/tmp
# dotenv
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: generic

if: tag IS present

install:
# Installing helm
- wget -q https://storage.googleapis.com/kubernetes-helm/helm-v2.6.2-linux-amd64.tar.gz
Expand All @@ -20,7 +22,7 @@ script:
- helm repo index charts/
- git add charts/
- git commit --message "Add new version ${TRAVIS_TAG}"
- git remote add origin-pages https://${GITHUB_TOKEN}@github.com/flant/loghouse.git
- git remote add origin-pages https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git push --quiet --set-upstream origin-pages gh-pages
after_success:
- true
2 changes: 1 addition & 1 deletion charts/loghouse/templates/clickhouse/clickhouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
mountPath: /var/lib/clickhouse
containers:
- name: clickhouse
image: flant/loghouse-clickhouse:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-clickhouse:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
ports:
- name: http
Expand Down
2 changes: 1 addition & 1 deletion charts/loghouse/templates/fluentd/fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
serviceAccountName: fluentd
containers:
- name: fluentd
image: flant/loghouse-fluentd:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-fluentd:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
env:
- name: FLUENTD_ARGS
Expand Down
2 changes: 1 addition & 1 deletion charts/loghouse/templates/loghouse/loghouse-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
command: ['/bin/sh', '-c', 'while ! getent ahostsv4 clickhouse; do sleep 1; done']
containers:
- name: cron
image: flant/loghouse-dashboard:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-dashboard:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: ['/bin/bash', '-l', '-c', 'rake create_logs_tables']
env:
Expand Down
2 changes: 1 addition & 1 deletion charts/loghouse/templates/loghouse/loghouse-init-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
command: [ '/bin/sh', '-c', 'while ! getent ahostsv4 clickhouse; do sleep 1; done' ]
containers:
- name: init
image: flant/loghouse-fluentd:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-fluentd:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: ['/bin/bash', '-l', '-c', 'clickhouse-client --host=${CLICKHOUSE_URL} --port=9000 --user=${CLICKHOUSE_USERNAME} --password=${CLICKHOUSE_PASSWORD} --query="CREATE DATABASE ${CLICKHOUSE_DATABASE};"']
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
command: [ '/bin/sh', '-c', 'while ! getent ahostsv4 clickhouse; do sleep 1; done' ]
containers:
- name: init-tables
image: flant/loghouse-dashboard:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-dashboard:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: ['/bin/bash', '-l', '-c', 'rake create_logs_tables']
env:
Expand Down
2 changes: 1 addition & 1 deletion charts/loghouse/templates/loghouse/loghouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: backend
image: flant/loghouse-dashboard:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-dashboard:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: ["bundle", "exec", "puma"]
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/loghouse/templates/tabix/tabix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: tabix
image: flant/loghouse-tabix:{{ default .Chart.Version .Values.version }}
image: flant/loghouse-tabix:{{ .Chart.Version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
ports:
- name: http
Expand Down
3 changes: 0 additions & 3 deletions charts/loghouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ partition_period: 1
# If you not want install fluentd on master
install_master: false

# For install specific version of Chart use version
version: latest

imagePullPolicy: Always

clickhouse:
Expand Down

0 comments on commit dffef8c

Please sign in to comment.