Commit graph

25 commits

Author SHA1 Message Date
Matt Farina
fba311ba23
Merge pull request #6243 from technosophos/feat/5871-crds-directory
feat: Add support for a crds/ directory
2019-08-20 11:38:28 -04:00
Adam Reese
b2d5e41fc7
ref(*): remove dead code
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-19 10:22:27 -07:00
Matt Butcher
98426d6ad3
feat: Add support for a crds/ directory
Closes #5871

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-08-16 16:26:55 -06:00
Taylor Thomas
a749cf4c4e docs(chart): updates APIVersionV2 comment to reflect the proper name
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-06 11:14:51 -06: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
Adam Reese
45f63628e1
ref(pkg/chart): remove unused chart.RawValues
Signed-off-by: Adam Reese <adam@reese.io>
2019-05-16 11:03:21 -07:00
Martin Hickey
1915358a21
Merge pull request #5538 from hickeyma/add-app-version
feat(*): Add app version to history table
2019-04-30 09:23:21 +01:00
Ian Howell
ffff0e8c33 Feat/schema validation (#5350)
* Add the Schema type and a function to read it

* Added a function to read a schema from a file

* Check that values.yaml matches schema

This commit uses the gojsonschema package to validate a values.yaml file
against a corresponding values.schema.yaml file.

* Add functionality to generate a schema from a values.yaml

* Add Schema to Chart and loader

* Clean up implementation in chartutil

* Add tests for helm install with schema

* Add schema validation to helm lint

* Clean up "matchSchema"

* Modify error output

* Add documentation

* Fix a linter issue

* Fix a test that broke during a rebase

* Clean up documentation

* Specify JSONSchema spec

Since JSONSchema is still in a draft state as of this commit, we need to
specify a particular version of the JSONSchema spec

* Switch to using builtin functionality for file extensions

* Switch to using a third-party library for JSON conversion

* Use the constants from the gojsonschema package

* Updates to unit tests

* Minor change to avoid string cast

* Remove JSON Schema generation

* Change Schema type from map[string]interface{} to []byte

* Convert all Schema YAML to JSON

* Fix some tests that were broken by a rebase

* Fix up YAML/JSON conversions

* This checks subcharts for schema validation

The final coalesced values for a given chart will be validated against
that chart's schema, as well as any dependent subchart's schema

* Add unit tests for ValidateAgainstSchema

* Remove nonessential test files

* Remove a misleading unit test

The TestReadSchema unit test was simply testing the ReadValues function,
which is already being validated in the TestReadValues unit test

* Update documentation to reflect changes to subchart schemas
2019-04-26 08:45:03 -07:00
Martin Hickey
b600f6090e Add app version to history table
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-23 17:02:01 +01:00
Adam Reese
e458a67f0c
ref(pkg/chart): add validation method to chart
Consolidate validation of Chart.yaml.

Signed-off-by: Adam Reese <adam@reese.io>
2019-04-05 13:40:06 -07:00
Matt Butcher
f3bfae5ea7
fix: fix a number of style errors (#5136)
This fixes a dozen or so style errors, almost all of which were just missing comments.

I left several which are fixed in other outstanding PRs, or which belong to code that is about to be removed.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-01-07 21:40:24 -07:00
Adam Reese
f5b6ff2832
ref(pkg/chart): rename files to be consistent with types
Signed-off-by: Adam Reese <adam@reese.io>
2018-11-14 11:05:14 -08:00
Adam Reese
21259507bd
ref(*): rename requirements.lock to Chart.lock
Signed-off-by: Adam Reese <adam@reese.io>
2018-08-29 14:43:37 -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
Matt Butcher
4a6c1e308b fix(pkg/chart): remove pkg/chart
This is the final step in replacing pkg/chart with pkg/chartutil.

This also removes the last of the TOML code.
2016-06-16 13:46:20 -06:00
Matt Butcher
88622a20da fix(helm): read values.yaml instead of values.toml
Closes #822
2016-06-14 12:06:19 -06:00
vaikas-google
9b4d2616c2 Add ability to untar charts after downloading them 2016-05-06 09:47:54 -07:00
Brian
c349bfbffd feat(chart2proto): chart to proto transformations for helm grpc client 2016-05-02 14:19:42 -06:00
Brian
7bc50a5d79 feat(tiller): add initial tiller client for basic helm installs.
1. install command loads chart archive.
  2. invokes helm api to transform the pkg/chart.Chart type
     to it's proto model.
  3. the client then establishes a connection to tiller.
  4. sends InstallReleaseRequest, receives InstallReleaseResponse.

todo (for complete install):
  - walk pkg/chart.{Values,Deps,Templates} types and populate proto
    definitions for various apis/messages.
2016-04-22 10:15:20 -06:00
Matt Butcher
1dd6c01f5d fix(helm): improve create help 2016-04-18 10:17:41 -06:00
Matt Butcher
a97bf8b7c0 feat(helm): implement 'helm create' 2016-04-18 10:17:41 -06:00
Matt Butcher
5b78c77f3f feat(chart): add chart package
This is the chart package from k8s/helm, modified for usage here.
2016-04-14 12:25:00 -06:00