Add global to possible values
This commit is contained in:
parent
0ca48c8cd1
commit
9b3fd3c895
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin
|
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
LOCALBIN ?= $(shell pwd)/bin
|
||||||
|
$(LOCALBIN):
|
||||||
|
mkdir -p $(LOCALBIN)
|
||||||
|
|
||||||
|
.PHONY: gen_docs
|
||||||
|
gen_docs: ## Generate helm documentation
|
||||||
|
test -s $(LOCALBIN)/helm-docs || GOBIN=$(LOCALBIN) go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
|
||||||
|
./bin/helm-docs --template-files=./README.md.gotmpl --template-files=./docs --sort-values-order file
|
||||||
|
|
||||||
|
.PHONY: gen_schema
|
||||||
|
gen_schema: ## Generate helm schema
|
||||||
|
test -s $(LOCALBIN)/helm-schema || GOBIN=$(LOCALBIN) go install github.com/dadav/helm-schema/cmd/helm-schema@latest
|
||||||
|
./bin/helm-schema --chart-search-root charts
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: softplayer-lib-crd
|
name: softplayer-lib-crd
|
||||||
description: A library to be reused accross softplayer charts
|
description: A library to be reused accross softplayer charts
|
||||||
type: library
|
type: library
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: allanger
|
- name: allanger
|
||||||
email: allanger@badhouseplants.net
|
email: allanger@badhouseplants.net
|
||||||
|
12
charts/crds/values.schema.json
Normal file
12
charts/crds/values.schema.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"global": {
|
||||||
|
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.",
|
||||||
|
"title": "global",
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "object"
|
||||||
|
}
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: softplayer-lib-workload
|
name: softplayer-lib-workload
|
||||||
description: A library to be reused accross softplayer charts
|
description: A library to be reused accross softplayer charts
|
||||||
type: library
|
type: library
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: allanger
|
- name: allanger
|
||||||
email: allanger@badhouseplants.net
|
email: allanger@badhouseplants.net
|
||||||
|
15
charts/workload/values.schema.json
Normal file
15
charts/workload/values.schema.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"global": {
|
||||||
|
"additionalProperties": false,
|
||||||
|
"title": "global",
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"global"
|
||||||
|
]
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
~
|
global: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user