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

feat: All the paths are relative to helmfile.yaml #261

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Aug 30, 2018

helmfile lint works with relative chart reference (#252)
The tempalte function readFile accepts the path relative to helmfile.yaml

Resolves #246
Fixes #252

`helmfile lint` works with relative chart reference (roboll#252)
The tempalte function `readFile` accepts the path relative to helmfile.yaml

Resolves roboll#246
Fixes roboll#252
@mumoshu mumoshu merged commit 421299c into roboll:master Aug 30, 2018
@mumoshu mumoshu deleted the paths-are-relative-to-helmfile branch August 30, 2018 12:54
mumoshu added a commit to mumoshu/helmfile that referenced this pull request Aug 30, 2018
Fixes for the bugs that are introduced by roboll#261, that is values.yaml files specified in `values:` have redundant base path in their prefixes, and remaining .dec files after secrets decryption(roboll#251 (comment))
mumoshu added a commit that referenced this pull request Aug 30, 2018
Fixes for the bugs that are introduced by #261, that is values.yaml files specified in `values:` have redundant base path in their prefixes, and remaining .dec files after secrets decryption(#251 (comment))
return chart
}
return filepath.Join(basePath, chart)
}

func isLocalChart(chart string) bool {
regex, _ := regexp.Compile("^[.]?./")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mumoshu Is there a reason a / is required to be a local chart? Its seems valid to have the helmfile.yaml in the same folder as a local chart:

├── Chart.yaml
├── charts
│   ├── grafana-1.14.7.tgz
│   ├── influxdb-0.11.0.tgz
│   ├── kapacitor-1.1.0.tgz
│   ├── telegraf-ds-1.7.4.tgz
│   └── telegraf-s-1.7.4.tgz
├── helmfile.d
│   └── helmfile.yaml

And the helmfile.yaml:

releases:
- name: myrelease
  chart: ..

I'd expect the regex to just be ^[.].

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I can work around this by adding a trailing slash / to my chart path.

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

Successfully merging this pull request may close these issues.

2 participants