Commit graph

107 commits

Author SHA1 Message Date
Mark Sagi-Kazar
6d9e15bd1a
feat: add networking.k8s.io/v1 support to ingress template
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-04-25 12:22:57 +02:00
Nick Jones
042567808f
Update default ingress values section to correspond with template
This commit updates the default section in values.yaml for the example
ingress definition to correspond with the template.

Signed-off-by: Nick Jones <nick@dischord.org>
2021-01-13 22:58:08 +00:00
Matthew Fisher
f228a7c36c
Merge pull request #9057 from ssalaues/fix/ingress-templating-error
fix: ingress path issue
2020-12-02 08:35:56 -08:00
rimas
ce1a46899f Fixes #9083
Signed-off-by: rimas <rmocius@gmail.com>
2020-12-01 18:50:14 +02:00
Salim Salaues
50144aad03 fix: ingress path issue
Signed-off-by: Salim Salaues <salim@openinvest.co>
2020-11-24 00:20:47 -08:00
Martin Hickey
8667aa4f98
Merge pull request #8874 from consideRatio/pr/helm-create-template-indentation
helm create: make generated YAML indentation more consistent
2020-10-13 20:04:39 +01:00
Matthew Fisher
e73af10d0b
Merge pull request #8696 from f0rmiga/patch-1
fix: boilerplate template indentation
2020-10-13 11:36:26 -07:00
Erik Sundell
1d9767fea2 helm create: make generated YAML indentation more consistent
Signed-off-by: Erik Sundell <erik@sundellopensource.se>
2020-10-12 15:45:27 +02:00
Matt Farina
7953adb06c
Merge branch 'master' into fix/helm-create-overwrite 2020-09-17 13:56:39 -04:00
Matt Butcher
106f1fb45c
fixed bug that caused helm create to not overwrite modified files
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 11:35:46 -06:00
Thulio Ferraz Assis
b4bb73d8ce
fix: if not .Values.autoscaling.enabled indent
Signed-off-by: Thulio Ferraz Assis <thulio.assis@suse.com>
2020-09-16 20:42:05 -05:00
Matt Butcher
c4ef82be13
validate the name passed in during helm create
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-16 16:35:43 -06:00
Thulio Ferraz Assis
6766017d38
fix: with .Values.podAnnotations indent template
Signed-off-by: Thulio Ferraz Assis <thulio.assis@suse.com>
2020-09-03 13:48:56 -05:00
Martin Hickey
daa104d60e Revert PR 8562
Revert of PR 8562 as the container version may not represent the
application version.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-09-03 17:13:31 +00:00
Martin Hickey
91094186eb
Merge pull request #8562 from andytom/chore/update_starter_chart
Update Common Lables template in starter chart
2020-08-11 12:29:04 +01:00
Thomas O'Donnell
4b1fa60d58 Update Common Lables template in starter chart
Have update the Common Labels template in the starter chart so that the
value for the `app.kubernetes.io/version` is set to the same value as
the image tag used in the deployment.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2020-08-10 15:44:53 +02:00
She Jiayu
d141593d83 Avoid hardcoded container port in default notes
Signed-off-by: She Jiayu <shejiayu1998@qq.com>
2020-07-23 12:43:45 +08:00
Dong Gang
9777925a2a fix(create): update the hook name of test-connection pod
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-07-16 09:10:03 +08:00
Adam Reese
aa03319669
fix(chartutil): do not set helpers.tpl filetype for vim
Helpers filetype is not mustache

Signed-off-by: Adam Reese <adam@reese.io>
2020-06-12 08:39:26 -07:00
Matt Farina
54e5088a50
Fixing docs from version to appVersion (#7975)
In the created chart from `helm create` is notes a tag overrides
version. It actually overrides appVersion. Updating the docs
to reflect reality.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-23 17:49:43 -06:00
Matt Butcher
7b89e66e0c
fix: Fixed a regression that was introduced with changed nil handling (#7938)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-16 14:31:45 -06:00
Martin Hickey
1c9b54ad7f
Merge pull request #7795 from consideRatio/template-indent
Make helm create command's templates more consistent
2020-04-15 09:40:23 +01:00
Matt Farina
08c612eedf
Adding notes on semver to create Chart.yaml
The version field in the Chart.yaml has a comment describing it
but it did not note the version needs to follow SemVer. There
have been numerous questions, over time, about this format. Add
note here so it's exposed in more places.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-08 15:41:39 -04:00
Matthew Fisher
b735abe837
Merge pull request #7879 from naseemkullah/pod-annotations
[create] feat: add pod annotations
2020-04-07 10:09:54 -07:00
Naseem
f7972d075e
feat: allow image tag override
While using the chart version as image tag is the sanest default, it is not uncommon to want to override this if using a custom image, or using helm to manage  an in-house app running different tags across different environments.

Signed-off-by: Naseem <naseem@transit.app>
2020-04-05 12:18:28 -04:00
Naseem
c4fc8b7de8
feat: add pod annotations
With the rise of sidecar injectors, pod annotations configuration is becoming more and more important.

Signed-off-by: Naseem <naseem@transit.app>
2020-04-05 12:14:01 -04:00
Martin Hickey
783be10aef
Merge pull request #7381 from naseemkullah/create-hpa
[helm create] Add hpa boilerplate
2020-03-31 16:25:51 +01:00
Erik Sundell
cead0efa69 helm create command's templates more consistent
- Removed most right whitespace chomps except those directly following a
  template definition where it make sense to not lead with a blank line.
  The system applied is now to almost always left whitespace chomp but
  also whitespace chomp right if its the first thing in a file or
  template definition.
- Updated indentation to be systematic throughout all the boilerplace
  files.

Signed-off-by: Erik Sundell <erik.i.sundell@gmail.com>
2020-03-23 19:28:53 +01:00
Matt Farina
1bd819a7b2
Fixes issue where <CHARTNAME> is left in starter values file
This is a leftover bug from #7201.

Closes #7532

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-02-06 12:01:03 -05:00
Shota Nakamura
0beb9f7040 fix(chartutil): remove empty lines and a space from rendered chart templates (#7455)
Signed-off-by: sukimoyoi <alice89yryr0@gmail.com>
2020-01-27 11:00:26 +00:00
Naseem
b9a8e98bca
Add hpa boilerplate
Signed-off-by: Naseem <naseem@transit.app>
2020-01-11 01:03:01 -05:00
Naseem
a963736f66 [helm create] Include serviceAccount.annotations value (#7246)
* Include serviceAccount.annotations value

Signed-off-by: Naseem <naseemkullah@gmail.com>

* Add comment about service account annotations

Signed-off-by: Naseem <naseemkullah@gmail.com>
2020-01-09 14:04:02 +00:00
Jan Heylen
a2bbb67839 fix(helm): add .orig as typical backup file
Mercurial VCS (hg) backout's can generate '.orig' files
to avoid these being picked, generate a .helmignore where
also the .orig files are ignored.

Signed-off-by: Jan Heylen <jan.heylen@nokia.com>
2019-12-20 17:28:00 +01:00
Jeff Bachtel
2e1c54855e Add namespace option to example kubectl command
Signed-off-by: Jeff Bachtel <jeff.bachtel@ironnetcybersecurity.com>
2019-10-30 14:29:39 -06:00
Matthew Fisher
0f26eeb8fd
Merge pull request #6519 from SimonAlling/dev-v3
fix(pkg/chartutil): include values.schema.json in packaged chart
2019-10-11 09:02:01 -07:00
Martin Hickey
dd1a440026
Add support to scaffold chart for ingress prior to k8s 1.14 (#6651)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-11 15:33:30 +01:00
Simon Alling
50675e7cd7 fix(pkg/chartutil): include values.schema.json in packaged chart
Before this commit:

    $ helm lint my-chart            # Finds errors in values.yaml
    $ helm package my-chart
    $ helm lint my-chart-1.0.0.tgz  # Does not find errors in values.yaml

Signed-off-by: Simon Alling <alling.simon@gmail.com>

Co-authored-by: Andreas Lindhé <andreas@lindhe.io>
2019-10-10 20:56:06 +02:00
Martin Hickey
335d27a976
Fix ingress API group in scaffold chart (#6591)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-07 15:46:02 +01:00
Matthew Fisher
9510713d21
fix(chartutil): port over enhancements to helm create from Helm 2
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-03 12:34:58 -07:00
Matt Farina
9bc7934f35
Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
Martin Hickey
db15a6f898
Create charts directory for scaffold chart (#6516)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-09-30 16:37:34 +01:00
Cindy O'Neill
41e9359716 handle ingress apiVersion change for kubernete versions
Signed-off-by: Cindy O'Neill <cubiedoo2@gmail.com>
2019-09-18 11:11:34 -06:00
Reinhard Nägele
38e41e12c9 ref(*): Improve and fix scaffold chart and API versions (#6426)
* Use `apps/v1` for Deployment
* Reformat comments
* Consistently use `nindent` and indent properly
* Introduce named template for selector labels
* Fix label selector in `NOTES.txt`

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2019-09-18 12:24:03 +01:00
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