Skip to content

Diff exits with error when using raw chart - race condition? #177

Closed

Description

@D3N14L

We are using the raw chart to create resources before applying the actual chart. Example:

releases:
{{ if .Values.install_cert_manager }}
- name: route53-credentials-secret
  chart: incubator/raw
  values:
  - resources:
    - apiVersion: v1
      kind: Secret
      metadata:
        name: route53-credentials-secret
        namespace: cert-manager
      type: Opaque
      stringData:
        secret-access-key: {{ .Values.Route53UserSecretKey }}

Sometimes the helm diff plugin exits with an error. Not always and not always on the same point.

A typical error message is:

Comparing release=cert-manager-le-staging, chart=incubator/raw
in data/helmfile/helmfile.yaml: in .helmfiles[5]: in helmfile.d/cert-manager-config.yaml: failed processing release route53-credentials-secret: helm exited with status 1:
  Error: Failed to render chart: exit status 1: Error: file '/Users/user/Library/Caches/helm/repository/' does not appear to be a gzipped archive; got 'application/octet-stream'

  Error: plugin "diff" exited with error

Doing a watch on the raw-0.2.3.tgz I can see that the files creation time gets updated before the helmfile is applied. I assume there is a race condtition when updating and reading the file.

Activity

  1. stale commented on Apr 15, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions