Commit graph

186 commits

Author SHA1 Message Date
Matthew Fisher
b5af54d44c
Merge pull request #3567 from jumal/master
Create missing directories when saving files in chartutil.SaveDir
2018-02-28 12:59:43 -08:00
Matthew Fisher
86ae040bfa
Merge pull request #3491 from oilbeater/fix-defer-in-loop
defer in loop may cause resource leak
2018-02-27 19:52:00 +00:00
Jean-Philippe Courson
5b77335415 Create missing directories when saving files in chartutil.SaveDir 2018-02-24 17:12:37 +00:00
Thibaut Rousseau
a59d212512
docs: Fix FromJson comment 2018-02-12 00:33:28 +01:00
oilbeater
757db3a062 defer in loop may cause resource leak 2018-02-10 16:58:39 +08:00
Matthew Fisher
14c7be1f92
Merge pull request #3288 from bradbeam/starter
feat Making starter templates more versatile
2018-01-19 11:14:21 -08:00
Matt Farina
c359ea66ed
Merge pull request #3350 from mattfarina/fix/3349
fix(capabilities): Adding GitVersion to default set
2018-01-19 10:18:20 -05:00
Matt Farina
d5a865b5f4
fix(capabilities): Adding GitVersion to default set
Prior to this, using the semver template functions with the full
version, which is represented in the GitVersion, was not possible
for helm template and lint commands because the property was not
populated by default. This update adds default handling.

Closes #3349
2018-01-16 13:02:30 -05:00
Reinhard Nägele
f47e1619b0 Update initial chart experience
* Add template for chart name
* Use named ports and simplify service configuration
* Add affinity
* Add tolerations
* Use 'with' statements where possible
* Enhance ingress
* Add fullnameOverride to fullname template
2018-01-12 14:41:03 +01:00
Matthew Fisher
e1027fae73
refactor symWalk() into pkg/sympath (#3199)
* refactor symWalk() into pkg/sympath

* add Go copyright

* remove dead code
2018-01-08 15:13:13 -08:00
Adam Reese
a31e3b8fe1
ref(*): kubernetes v1.9 support (#3234) 2018-01-05 12:30:26 -08:00
Brad Beam
8e0eface2c Making starter templates more versatile
This adds support for changing '<CHARTNAME>'
occurances in starter chart to the destination
chart name
2018-01-01 04:34:38 +00:00
Nauris Sadovskis
bd8178d50b Fix package url 2017-12-14 12:09:33 +00:00
Matthew Fisher
7c79d1c765
Merge pull request #3193 from burdiyan/master
ref(helm): improve fullname template in starter chart
2017-11-23 07:45:51 -08:00
Johnny Bergström
7cc610960f Walk symbolic link directories
Continue walking symlinks to be able to use them
for sub-charts. Useful when not specifying requirements
but still want to share charts locally.
2017-11-23 11:41:09 +01:00
Alexandr Burdiyan
f432e07126 ref(helm): improve fullname template in starter chart
Closes #1186
2017-11-23 11:23:32 +01:00
Johnny Bergström
d762a42168 Fix helmignore for .* (#3114)
When the first rule matching entry for top level dir
will be empty string, the .* rule will match.
Skip this entry as it's not needed for processing.
2017-11-22 09:20:41 -07:00
Maxime Guyot
c864ba179e Add fullnameOverride 2017-11-10 10:52:56 +01:00
Dhilip
67af4998de helm create all defined template names should be namespaced … (#2845)
* helm create all defined template names should be namespaced https://docs.helm.sh/chart_best_practices/#names-of-defined-templates

* Update Doc

* Update example
2017-10-06 09:04:53 -06:00
Matthew Fisher
e3e1116eaa Merge pull request #2857 from llsheldon/fix-dependency-alias
fix(helm):Fix dependency aliaes not working
2017-10-03 10:59:11 -07:00
Matthew Fisher
f278675f98 remove references to facebookgo/symwalk 2017-09-26 15:21:40 -07:00
Matthew Fisher
211f5f6f33 Revert "fix(helm): resolve symlinks when loading chart"
This reverts commit edd4e56112.
2017-09-26 15:02:33 -07:00
Matthew Fisher
cf3fc21e81 Merge pull request #2898 from zlabjp/kube-version
feat(helm): add --kube-version flag to helm template
2017-09-25 15:19:05 -07:00
carlory
ad2d8e434a fix fromjson comment 2017-09-18 15:46:36 +08:00
carlory
b9d3974df0 fix func comment 2017-09-18 15:38:35 +08:00
Kazuki Suda
fa3ee5aecf feat(helm): add --kube-version flag to helm template
This commit adds --kube-version flag to helm template. It allows you to
override the Kubernetes version used as Capabilities.KubeVersion.Major/Minor (e.g. 1.7).
2017-09-11 11:22:00 +09:00
Kazuki Suda
3508cebbf6 Use the same defaults as done in helm lint for Capabilities 2017-09-11 10:09:42 +09:00
Michelle Noorali
84bb77f183 Merge pull request #1997 from AmandaCameron/issue/1401
Take a crack at Issue #1401
2017-09-08 07:58:37 -06:00
Amanda Cameron
415e52bf55 Add support for sub-directory scanning as in issue #1401 2017-09-08 09:33:44 -04:00
llsheldon
0440b54bbf fix(helm):Fix dependency aliaes not working
The alias functionality only works when a hardcoded version
is used. Any use of semver logic causes unexpected behavior.
I use version.IsCompatibleRange to check the dependency version.

Closes #2794
2017-09-07 19:46:13 +08:00
Adnan Abdulhussein
8fd8a7c324 fix(create): port-forward should use internal port
cc @james-w
2017-09-07 10:43:53 +01:00
Justin Scott
4a02a71f1e WIP feat(helm): add template command
This adds the functionality from the helm-template plugin to allow the
rendering of templates without Tiller.

Closes #2755
2017-08-28 18:04:56 -07:00
Kira
4c1a47480e feat(2450): add annotations to chart metadata (#2671)
* feat(2450): add options to chart metadata
2017-08-16 18:27:13 -04:00
Maxime Guyot
bbf2d6b7e8 Fix the default NOTES.txt 2017-08-09 13:29:51 +02:00
Miouge1
6cfed9d635 Updating default values.yaml comments
Following the instructions to simply uncomment the following lines results in a invalid yaml output
2017-07-27 10:53:52 +02:00
Steven E. Harris
e8d80729ac Merge pull request #2703 from rbwsam/ref/simplify_error
ref(pkg/chartutil): replace use of 'fmt.Efforf'
2017-07-25 10:14:32 -04:00
Sam Leavens
098df8b186 ref(pkg/chartutil): improve comment spacing
Reduce comment spacing to single tab.
2017-07-20 14:21:40 -07:00
Sam Leavens
f7ca52dfc8 ref(pkg/chartutil): improve comment for PathValue
Make comment for PathValue more explanatory.
2017-07-20 13:59:28 -07:00
Sam Leavens
cf09e344d1 fix(pkg/chartutil): Fix test, improve message
Fix inverted equaility check and update error message.
2017-07-20 13:19:48 -07:00
Sam Leavens
8df52b6501 ref(pkg/chartutil): move comment
Move comment out of test. Move ref location in test.
2017-07-20 13:10:59 -07:00
Sam Leavens
3ee70291c8 ref(pkg/chartutil): Capitalize YAML
Capitalize "yaml" in error message. Remove empty var from test error message.
2017-07-20 11:52:49 -07:00
Sam Leavens
51b59497ee ref(pkg/chartutil): decrease map lookups
Decrease map lookups in `chartutil.coalesceValues` and move comment to unit
test.

Closes #2663
2017-07-19 17:55:11 -07:00
Sam Leavens
9b8928edf4 ref(pkg/chartutil): replace use of 'fmt.Efforf'
'fmt.Errorf' is unnecessary when checking for 0 length path in Values.PathValue
due to the lack of formatting. Add test covering changes.
2017-07-19 15:53:12 -07:00
Scott Rigby
6dc31f8e96 Test that the coalesced key is properly removed for all YAML null syntax options, but not for empty string 2017-07-07 14:32:56 -04:00
Scott Rigby
645f01eb22 New Helm functionality to delete a coalesced YAML key when the value is nil.
- Note that this covers all YAML null syntax options:
  ref: http://yaml.org/type/null.html
- Note that we do a nil comparison because the encoding/yaml package parses
  YAML properly and any variation of null, Null, NULL, or ~ is converted to nil
  by the time we get here.
2017-07-07 14:32:56 -04:00
Matt Butcher
883da97396 Merge pull request #2607 from sushilkm/issues/2599
Adds charts in "charts\" directory to dependencies
2017-07-06 21:27:37 -06:00
Ilya Semenov
13b15f5662 Remove service.type mention from ingress docs 2017-07-02 16:04:50 +07:00
Justin Scott
af4c243ee3 Correct punctuation and capitalization for user facing strings. 2017-06-26 10:23:26 -07:00
Sushil Kumar
82da721c0a Added tests for different combinations of subcharts & requirements.yaml
Added more tests to test following comibnations of subcharts and requirements.yaml
- [ ] subcharts not specified in requirements.yaml
- [ ] some subcharts specified in requirements.yaml while others should be picked directly from "charts\"
- [ ] all subcharts specified in requirements.yaml without alias
- [ ] subcharts specified in requirements.yaml with alias is already tested
2017-06-22 10:44:20 -07:00
Sushil Kumar
7ce5c7925b Adds charts in "charts\" directory to dependencies
Dependencies should be processed even if they are not added to requirements.yaml
Fixes https://github.com/kubernetes/helm/issues/2599
2017-06-21 15:40:37 -07:00