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

Varfiles with "type: helm" and sources.repository.url not working #6146

Closed
ManAnRuck opened this issue Jun 5, 2024 · 1 comment · Fixed by #6147 or #6156
Closed

Varfiles with "type: helm" and sources.repository.url not working #6146

ManAnRuck opened this issue Jun 5, 2024 · 1 comment · Fixed by #6147 or #6156
Assignees
Labels

Comments

@ManAnRuck
Copy link
Contributor

Bug

Current behavior

env file not found (is looking in wrong directory for the varfiles in .garden/sources/…)

Error processing config for Deploy action redis:
Could not find varfile at path './.env'. Absolute path: /…/garden/examples/redis/.garden/sources/action/deploy.redis--88237447a8/.env

Expected behavior

varfiles should be searched within the action directory

Reproducible example

garden.yml

apiVersion: garden.io/v1
kind: Project
name: redis
environments:
  - name: local
    variables:
      baseHostname: redis.local.demo.garden
providers:
  - name: local-kubernetes
    environments: [local]
variables:
  userId: ${kebabCase(local.username)}

redis.garden.yml

kind: Deploy
description: Redis service for queueing votes before they are aggregated
type: helm
name: redis
varfiles:
  - ./.env
source:
  repository: 
    url: https://github.com/bitnami/charts#main
spec:
  chart:
    path: bitnami/redis
  values:
    auth:
      enabled: false

.env

TEST=test
garden dev
garden deploy

Workaround

don't use varfiles

Suggested solution(s)

varfiles location should be relative to the action yaml definition file

Additional context

Your environment

  • OS: macOS
  • How I'm running Kubernetes: docker desktop

0.13.30

@ManAnRuck
Copy link
Contributor Author

i am currently thinking about what is a better solution.

  1. trying to resolve varfiles and value files relative to original file
  2. or copy varfiles and valuefiles into the .garden action directory
    any suggestions or other ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants