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

Support single yaml files? #1757

Closed
GoldenMouse opened this issue Apr 6, 2021 · 4 comments
Closed

Support single yaml files? #1757

GoldenMouse opened this issue Apr 6, 2021 · 4 comments

Comments

@GoldenMouse
Copy link

Maybe a silly request but can helmfile support applying just a single manifest file? Sometime we have some extraneous set of yamls that isn't in a chart yet such as CRDs.

@mlushpenko
Copy link
Contributor

It is supported if you create a folder for that manifest and then reference it as a chart. See here for more details #673

@GoldenMouse
Copy link
Author

Sweet thank you!

@mumoshu
Copy link
Collaborator

mumoshu commented Apr 18, 2021

// Linking #1720 as a related issue

@FlorianPatzer
Copy link

This does not work using fetch. Is this intended behavior?

Take a simple example:
helmfile.d
|_test.yaml
manifests
|_noops.yaml

with test.yaml containing:

releases:
  - name: manifests
    chart: "../manifests"

and noops.yaml containing:

kind: ConfigMap
apiVersion: v1
metadata:
  name: test-noop-only
data:
  NOOP: |

docker run --rm --net=host -v "${HOME}/.kube:/helm/.kube" -v "${HOME}/.config/helm:/helm/.config/helm" -v "${PWD}:/wd" --workdir /wd ghcr.io/helmfile/helmfile:v1.0.0-rc.4 helmfile fetch

:v1.0.0-rc.4 helmfile fetch
Building dependency release=manifests, chart=../manifests
in helmfile.d/test.yaml: [building dependencies of local chart: command "/usr/local/bin/helm" exited with non-zero status:

PATH:
  /usr/local/bin/helm

ARGS:
  0: helm (4 bytes)
  1: dependency (10 bytes)
  2: build (5 bytes)
  3: ../manifests (12 bytes)

ERROR:
  exit status 1

EXIT STATUS
  1

STDERR:
  Error: Chart.yaml file is missing

COMBINED OUTPUT:
  Error: Chart.yaml file is missing]

There is no error when adding --skip-deps.

fetch seems to skip the chart preparation

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

4 participants