Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Helm template naming in yaml files #174

Merged
merged 3 commits into from
Sep 3, 2019
Merged

Conversation

rvmiller89
Copy link
Contributor

@rvmiller89 rvmiller89 commented Aug 31, 2019

Description

Fixes both Helm and YAML-based deployment by standardizing on collection-sumologic app labels (removing "fluentd" all together).

Also removes spurious release: collection in prometheus overrides, which was causing problems with YAML-based prometheus operator deployment.

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods via YAML files with Prometheus + FluentBit Helm
  • Redeploy fluentd and fluentd-events pods, Prometheus, Fluent-Bit via Helm
  • Confirm events, logs, and metrics (including fluentd and fluentbit) are coming in

@rvmiller89 rvmiller89 force-pushed the rmiller-helm-yaml-test branch 2 times, most recently from 01d23c0 to 66df36a Compare September 1, 2019 01:39
Copy link
Contributor

@maimaisie maimaisie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@@ -12,26 +12,18 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
If dryRun=true, we use fixed value "fluentd".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this comment

{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end -}}
{{- end -}}

{{/*
Create default fully qualified labels.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If dryRun=true, we use the Chart name "sumologic" and do not include labels specific to Helm.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@rvmiller89 rvmiller89 merged commit 2b24687 into master Sep 3, 2019
@rvmiller89 rvmiller89 deleted the rmiller-helm-yaml-test branch September 3, 2019 16:08
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants