Commit graph

64 commits

Author SHA1 Message Date
Adam Reese
b6fdd8783b
feat(cmd/helm): remove need for helm init command
* allow repository config via cli
* make `helm repo add` create repo config file if it does not exist
* squash a ton of bugs

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-22 23:31:50 -07:00
Martin Hickey
149da7c77e Update scaffold chart to v2 apiVersion
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-07-29 19:02:59 +01:00
Liu Liqiang
49120340d3 Fix paths in the ingress template and values file written by helm create
Signed-off-by: Liu Liqiang <liuliqiang@smartx.com>
2019-07-23 17:25:47 +08:00
Oleg Sidorov
ec440d446d Replaced ghodss/yaml with sigs.k8s.io/yaml
This commit replaces usage of github.com/ghodss/yaml with it's forked
version maintained by SIG community. The replaced library has
low-to-none support activity unlike the latter. We believe the new
Helm branch could benefit from using the community-supported version on
a long-term run as yaml parser is a key component of Helm chart rendering
engine.

This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which
is backwards compatible with ghodss/yaml 1.0.0.

This change also resolves the outdated dependency version lock for
ghodss/yaml (currently 1.0.0) and makes it possible to port changes from
https://github.com/helm/helm/pull/6010 to dev-v3.

Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
2019-07-12 16:52:15 +02:00
Matt Farina
379b2b177c
Updating to the new Ingress group version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-06-17 12:10:34 -04:00
Martin Hickey
ecf4eda6c5 Fix scaffold chart label in helper template
The 'app.kubernetes.io/version' label was not being rendered as
expected. It was appending onto the label before it and also
the next label label was appending onto it on the same line.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-05-09 10:56:46 +01:00
Luis Davim
82ffe56ca6
Reduce template code duplication. Fixes #5372
Signed-off-by: Luis Davim <luis.davim@jet.com>
2019-05-07 12:03:54 -04:00
Luis Davim
4425f86865
Add app.kubernetes.io/version label
Signed-off-by: Luis Davim <luis.davim@jet.com>
2019-05-07 11:59:49 -04:00
Matt Farina
af7eab0325
Updating to the k8s label convention
Closes #4335

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-05-07 11:26:31 -04:00
Martin Hickey
f12c2a3111 Change the nginx app version to a set tag
Want to avoid moving tags like using 'stable'. Therefore,
specify the specifc nginx version/tag.

Update from comment review:
- https://github.com/helm/helm/pull/5662#discussion_r280122531

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-05-02 10:00:41 +01:00
Martin Hickey
86c5e52ac4 Fix the image field for the scaffold chart application
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-30 18:13:17 +01:00
Matthew Fisher
d3f0ac9343
ref(create): app version should be 0.1.0
When creating a Helm chart for the first time, the assumption should be that the app version is also 0.1.0, implying this is for a new application.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-04-15 12:06:16 -07:00
Adam Reese
295092cd7d
ref(pkg/action): refactoring dup code and linter fixes
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-26 11:11:27 -07:00
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
Adam Reese
f7a7a157ce
ref(*): merge requirement.yaml into Chart.yaml
Signed-off-by: Adam Reese <adam@reese.io>
2018-08-29 14:05:37 -07:00
Adam Reese
516c53dae6
ref(chart): use map for chart.Values
Signed-off-by: Adam Reese <adam@reese.io>
2018-08-29 09:56:19 -07:00
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
Adam Reese
f012940d9c
ref(*): refactor chart/chartutil
ref(chartutil): move chart loading out of chartutil into new package
    add chart loader interface to allow lazy loading
feat(chart): create chart accessors
ref(*): cleanup requirements
ref(tiller): remove optional template engines
ref(tiller): simplify sorting releases and hooks
ref(*): code simplification
ref(hapi): move chart package out of hapi
ref(chart): add requirements and lock to Chart struct
2018-08-24 11:28:29 -07:00
Adam Reese
aa859e3f88
feat(*): remove Time, Namespace, and Revision from template functions
Removes Time, Namespace, and Revision from being exposed to templates to
make template rendering discrete and repeatable.
2018-05-18 12:09:54 -07:00
Adam Reese
726e3c41be
feat(*): print stacktrace on error with debug enabled 2018-05-10 09:34:41 -07:00
Adam Reese
4c95185164
ref(*): replace chart.config with []byte 2018-04-20 00:13:19 -07:00
Adam Reese
36536d77ba
ref(*): remove protobuf any type 2018-04-18 16:28:50 -07:00
Adam Reese
6345f04190
ref(hapi): convert protobuf to go types 2018-04-18 14:53:38 -07:00
Steffen Windoffer
8bd42d2645 remove unused servicePort from default ingress template 2018-04-06 11:21:54 +02:00
Zack Williams
1d3ae54185 Fix #3822 2018-04-03 13:10:56 -07: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
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
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
Alexandr Burdiyan
f432e07126 ref(helm): improve fullname template in starter chart
Closes #1186
2017-11-23 11:23:32 +01: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
Adnan Abdulhussein
8fd8a7c324 fix(create): port-forward should use internal port
cc @james-w
2017-09-07 10:43:53 +01: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
Ilya Semenov
13b15f5662 Remove service.type mention from ingress docs 2017-07-02 16:04:50 +07:00
Reinhard Nägele
76e6e15a0c Add comment on resources 2017-06-18 14:42:36 +02:00
Reinhard Nägele
51923e54b1 Improve 'helm create' 2017-06-16 09:41:38 +02:00
Adnan Abdulhussein
f8b2c5eb57 fix(create): incorrect URL in default NOTES.txt 2017-05-02 19:15:18 +01:00
Matthias Thubauville
ce505f16e6 Fix indent for defaultDeployment 2017-04-19 09:50:11 +02:00
Scott Rigby
5bdcbee9af Change secret name to something more standard 2017-04-08 23:17:51 -04:00
Scott Rigby
2be4547d13 Change to hosts array, and parameterize serviceName and servicePort 2017-04-08 23:17:23 -04:00
Scott Rigby
22cec7cdc1 Fix spacing 2017-03-25 20:01:08 -04:00
Scott Rigby
37fd7df627 chartutil create ingress example 2017-03-25 17:42:37 -04:00
z00358552
b0d4cacd54 fix(helm) change name length limit to 63 for helm create
since kubernetes 1.4, the upper limit for resource name is 63 characters,
so it is better to change the template when running `helm create` accordingly.
2017-01-17 15:51:31 +08:00
Lachlan Evenson
2e0f949d49
bugfix(tiller): replace + with - in Chart version to support Kubernetes constraint 2017-01-11 11:21:14 -08:00
John Hofman
c38fb120bf fix(helm): add trimSuffix to helper functions 2016-12-05 10:01:25 +01:00
Matt Butcher
5517d00a48 Merge pull request #1547 from technosophos/feat/packs
feat(helm): support 'helm create --starter=mypack'
2016-11-22 17:44:48 -07:00
Matt Butcher
784a339627
feat(helm): support 'helm create --pack=mypack'
This adds support for packs, pre-configured chart patterns that can be
used to quickly create a custom layout for your new chart.
2016-11-22 16:27:54 -07:00
Matt Butcher
0a163a2a3a
fix(helm): helm create will not overwrite existing files
It will ignore files if they exist, and create files if they were
missing.

Closes #1515
2016-11-14 11:49:19 -07:00
Sebastian Mandrean
b3d45aef7a fix(1516): use correct value reference in boilerplate NOTES.txt 2016-11-06 22:44:25 +01:00