#helmfile - July 2022

Balazs Varga
Balazs Vargaover 4 years ago
hello all, I have a question. I have 2 charts and I move 1 secret from 1 chart to another. I do the kubectl patch and change the annotations to able to do helmfile apply on the chart where I copied the secret. when I do the apply on the chart from I moved the secret I see it deletes the secret does not check the annotation. Is it a bug or known issue ?
Ayoub Mrini
Ayoub Mriniover 4 years ago
Hello,

Are we still using <http://quay.io/roboll/helmfile|quay.io/roboll/helmfile> for docker images? I cannot find v0.145.0 (released 6 days ago). Am I missing something?
Andrew Nazarov
Andrew Nazarovover 4 years ago(edited)
I’m wondering if release templates work with environments: I tried all possible syntaxes - nothing seems to work. Probably, I’m wrong conceptually.
sohaibahmed98
sohaibahmed98over 4 years ago
Moath
Moathover 4 years ago
👋 Hello, team!
I’m a helmfile newbie, and I’m having a hard time using diff :picard_fail:
On a helm, I used to do it this way:
helm diff upgrade grafana grafana/grafana --values grafana-values.yaml
How can I do such thing in helmfile ?

Thank you^
Jonathan Monnet
Jonathan Monnetover 4 years ago(edited)
hi everyone !
newbie on Helmfile i've started with this wonderful tools on sunday night.

atm i'm struggling with an issue about diffand my values.yaml

#helmfile.yaml
templates:
  default: &default
    cleanupOnFail: true
    chart: "{{`{{ .Release.Name }}`}}/{{`{{ .Release.Name }}`}}"
    namespace: "{{`{{ .Release.Name }}`}}"
    missingFileHandler: Warn
    # This section allows the destruction of the namespaces when: helmfile destroy
    hooks:
      - events: ["postuninstall"]
        showlogs: true
        command: "kubectl"
        args: ["delete", "namespaces", "{{`{{.Release.Namespace}}`}}"]
    values:
      - "environments/{{`{{ .Release.Name }}`}}/{{`{{ .Environment.Name }}`}}.yaml"
releases:
  # - name: cert-manager
  #   <<: *default
  #   namespace: certs

  - name: traefik
    <<: *default
    namespace: traefik
---

#environments/traefik/dev.yaml

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-dashboard
  namespace: traefik
spec:
  entryPoints:
    - web
    - websecure
  routes:
    - match: Host(`machin.com`) # Hostname to match
      kind: Rule
      services: # Service to redirect requests to
        - name: api@internal # Special service created by Traefik pod
          kind: TraefikService

first time i deploy everything seems good,,
but the next time i deploy with something changed into my dev.yamlfile
helmfiledo not sow any diff and i see nothing in K8S

=> $ helmfile -e dev apply --skip-deps

any idea ?
Balazs Varga
Balazs Vargaover 4 years ago
hello all,
any idea about this issue?
panic: runtime error: slice bounds out of range [:1451] with capacity 729
Brandon
Brandonover 4 years ago
Is there a way to apply labels to a namespace without using hooks?