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

How to install latest version (helmfile) #15

Open
teebu opened this issue Mar 25, 2022 · 1 comment
Open

How to install latest version (helmfile) #15

teebu opened this issue Mar 25, 2022 · 1 comment

Comments

@teebu
Copy link

teebu commented Mar 25, 2022

Changing the tag to "latest" seem to not be compatible with this chartfile. When I go here I can't find any viable tags.

I updated the helmfile to say:

    values:
      - baseURL: "https://{{ .Values.analytics_domain }}"
      - disableAuth: false
      - disableRegistration: false
      - image:
          tag: "latest"

But the init pod log is throwing a missing base url error.

{"init terminating in do_boot",{#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<"BASE_URL configuration option is required.

If I remove the tag line, it works but installs an older version.

@teebu
Copy link
Author

teebu commented Mar 26, 2022

After some trial and error, it seems like the latest version 1.4.4 reads the BASE_URL from a secret and not env.

I added to secret.yaml

  {{- if .Values.baseURL }}
  BASE_URL: {{ .Values.baseURL | toString | b64enc }}
  {{- end }}

And for good measure, added to deployment.yaml (maybe not needed):

{{- if .Values.baseURL }}
- name: BASE_URL
  valueFrom:
    secretKeyRef:
      key: BASE_URL
      name: {{ include "plausible-analytics.fullname" . }}
{{- end }}

Also, because I am modified chart locally, I had to change chart to .

releases:
  - name: plausible
    namespace: {{ .Values.default_namespace }}
    chart: . # 8gears/plausible-analytics
    atomic: true

Note: all these changes were deployed using helmfile. helmfile --file my-helmfile.yaml apply

@teebu teebu changed the title How to install latest version? How to install latest version Mar 26, 2022
@teebu teebu changed the title How to install latest version How to install latest version (helmfile) Mar 26, 2022
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

No branches or pull requests

1 participant