Skip to content

fix(manager): update routes and error handling - #388

Merged
technosophos merged 2 commits into
helm:masterfrom
technosophos:fix/manager-routes
Mar 16, 2016
Merged

technosophos merged 2 commits into
helm:masterfrom
technosophos:fix/manager-routes

Conversation

@technosophos

Copy link
Copy Markdown
Member

No description provided.

Errors are now returned in the best matching format for the
HTTP Accept header.
@michelleN michelleN added the lgtm label Mar 16, 2016
technosophos added a commit that referenced this pull request Mar 16, 2016
fix(manager): update routes and error handling
@technosophos
technosophos merged commit 98d5501 into helm:master Mar 16, 2016
func registerDeploymentRoutes(c *router.Context, h *router.Handler) {
re := regexp.MustCompile("{[a-z]+}")

h.Add("GET /healthz", healthz)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All routes are considered deployment routes?

@technosophos
technosophos deleted the fix/manager-routes branch October 4, 2016 02:23
MichaelMorrisEst pushed a commit to Nordix/helm that referenced this pull request Nov 17, 2023
feat: helmfile.yaml layering enhancements

The current  [Layering](https://github.com/roboll/helmfile/blob/master/docs/writing-helmfile.md#layering) system didn't work as documented, as it relies on helmfile to template each "part" of your helmfile.yaml THEN merge them one by one.

The reality was that helmfile template all the parts of your helmfile.yaml at once, and then merge those YAML documents. In roboll/helmfile#388 (comment), @sruon was making a GREAT point that we may need to change helmfile to render templates earlier - that is to evaluate a template per each helmfile.yaml part separated by `---`. Sorry I missed my expertise to follow your great idea last year @sruon  😭 

Anyways, this, in combination with the wrong documentation, has made so many people confused. To finally overcome this situation, here's a fairly large PR that introduces the 2 enhancements:

- `bases:` for easier layering without go template expressions, especially `{{ readFunc "path/to/file" }}`s. This is the first commit of this PR.
- `helmfile.yaml` is splited by the separator `---` at first. Each part is then rendered as a go template(double-render applies as before). Finally, All the results are merged in the order of occurence. I assume this as an enhanced version of @sruon's work. This is the second commit of this PR.

Resolves helm#388
Resolve helm#584
Resolves helm#585 (`HELMFILE_EXPERIMENTA=true -f helmfile.yaml helmfile` disables the whole-file templating, treating the helmfile.yaml as a regular YAML file as the file ext. denotes. Use `helmfile.yaml.gotmpl` or `helmfile.gotmpl` to enable)
Fixes helm#568 (Use `bases` or `readFile` rather than not importing implicitly with `helmfile.d`
MichaelMorrisEst pushed a commit to Nordix/helm that referenced this pull request Nov 17, 2023
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.

4 participants