Skip to content

Commit

Permalink
Merge pull request #148 from SumoLogic/maisie-fix-helm-template
Browse files Browse the repository at this point in the history
Only pass in our own yamls to helm template cmd
  • Loading branch information
maimaisie authored Aug 19, 2019
2 parents 59f32aa + 99d0d34 commit 57fa26e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ ruby deploy/test/test_docker.rb

if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ -n "$GITHUB_TOKEN" ]; then
echo "Generating yaml from helm chart..."
# echo "# This file is auto-generated." > deploy/kubernetes/fluentd-sumologic.yaml.tmpl
echo "# This file is auto-generated." > deploy/kubernetes/fluentd-sumologic.yaml.tmpl
sudo helm init --client-only
cd deploy/helm/sumologic
sudo helm dependency update
cd ../../../
# sudo helm template deploy/helm/sumologic --namespace "\$NAMESPACE" --set dryRun=true >> deploy/kubernetes/fluentd-sumologic.yaml.tmpl

with_files=`ls deploy/helm/sumologic/templates/*.yaml | sed 's#deploy/helm/sumologic/templates#-x templates#g' | sed 's/yaml/yaml \\\/g'`
eval 'sudo helm template deploy/helm/sumologic $with_files --namespace "\$NAMESPACE" --set dryRun=true >> deploy/kubernetes/fluentd-sumologic.yaml.tmpl'

if [[ $(git diff deploy/kubernetes/fluentd-sumologic.yaml.tmpl) ]]; then
echo "Detected changes in 'fluentd-sumologic.yaml.tmpl', committing the updated version to $TRAVIS_BRANCH..."
Expand Down
2 changes: 0 additions & 2 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ sumologic:
## ref: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter#configuration
bearerCacheTtl: "3600"

## Add manual changes to this file

## Configure fluent-bit
## ref: https://github.com/helm/charts/blob/master/stable/fluent-bit/values.yaml
fluent-bit:
Expand Down

0 comments on commit 57fa26e

Please sign in to comment.