Remove build tag in static site (#77)
* Chart schema edit * Build tag removed
This commit is contained in:
@@ -3,14 +3,13 @@
|
|||||||
"schemaIDs": [
|
"schemaIDs": [
|
||||||
"#/properties/gitCloneUrl",
|
"#/properties/gitCloneUrl",
|
||||||
"#/properties/buildImage",
|
"#/properties/buildImage",
|
||||||
"#/properties/buildTag",
|
|
||||||
"#/properties/buildScript",
|
"#/properties/buildScript",
|
||||||
"#/properties/builtAssets"
|
"#/properties/builtAssets"
|
||||||
|
|
||||||
],
|
],
|
||||||
"uiSchema": {
|
"uiSchema": {
|
||||||
"#/properties/buildScript":{
|
"#/properties/buildScript": {
|
||||||
"ui:widget": "textarea"
|
"ui:widget": "textarea",
|
||||||
|
"ui:rows": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"metaData": {
|
"metaData": {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-con
|
- name: init-con
|
||||||
image: {{ .Values.buildImage }}:{{ .Values.buildTag }}
|
image: {{ .Values.buildImage }}
|
||||||
{{- if .Values.buildScript }}
|
{{- if .Values.buildScript }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
|
|||||||
@@ -5,11 +5,8 @@ tests:
|
|||||||
- it: Should set image, tag and command
|
- it: Should set image, tag and command
|
||||||
set:
|
set:
|
||||||
gitCloneUrl: https:/github.com/mycompany/myrepo.git
|
gitCloneUrl: https:/github.com/mycompany/myrepo.git
|
||||||
buildImage: nginx
|
buildImage: nginx:x.y.z
|
||||||
buildTag: x.y.z
|
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].image
|
path: spec.template.spec.initContainers[0].image
|
||||||
value: nginx:x.y.z
|
value: nginx:x.y.z
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"gitCloneUrl": "https://github.com/gimlet-io/hugo-site.git",
|
"gitCloneUrl": "https://github.com/gimlet-io/hugo-site.git",
|
||||||
"buildImage": "node",
|
"buildImage": "node:latest",
|
||||||
"buildTag": "latest",
|
|
||||||
"buildScript": "npm install && npm install -g gatsby-cli && gatsby build",
|
"buildScript": "npm install && npm install -g gatsby-cli && gatsby build",
|
||||||
"builtAssets": "public/"
|
"builtAssets": "public/"
|
||||||
}
|
}
|
||||||
@@ -17,7 +16,6 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"gitCloneUrl",
|
"gitCloneUrl",
|
||||||
"buildImage",
|
"buildImage",
|
||||||
"buildTag",
|
|
||||||
"buildScript",
|
"buildScript",
|
||||||
"builtAssets"
|
"builtAssets"
|
||||||
],
|
],
|
||||||
@@ -34,13 +32,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Build image",
|
"title": "Build image",
|
||||||
"description": "The image that will be used for the build proccess",
|
"description": "The image that will be used for the build proccess",
|
||||||
"default":"bitnami/git"
|
"default": "bitnami/git:latest"
|
||||||
},
|
|
||||||
"buildTag": {
|
|
||||||
"$id": "#/properties/buildTag",
|
|
||||||
"type": "string",
|
|
||||||
"title": "Image tag",
|
|
||||||
"default": "latest"
|
|
||||||
},
|
},
|
||||||
"buildScript": {
|
"buildScript": {
|
||||||
"$id": "#/properties/buildScript",
|
"$id": "#/properties/buildScript",
|
||||||
@@ -119,7 +111,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"additionalProperties": true
|
"additionalProperties": true
|
||||||
}
|
}
|
||||||
@@ -63,8 +63,7 @@ affinity: {}
|
|||||||
|
|
||||||
# values to build and deploy static sites
|
# values to build and deploy static sites
|
||||||
gitCloneUrl: https://github.com/gimlet-io/hugo-site.git
|
gitCloneUrl: https://github.com/gimlet-io/hugo-site.git
|
||||||
buildImage: bitnami/git # the image must have git installed
|
buildImage: bitnami/git:latest # the image must have git installed
|
||||||
buildTag: latest
|
|
||||||
buildScript: |
|
buildScript: |
|
||||||
# !/usr/bin/env bash
|
# !/usr/bin/env bash
|
||||||
# pre -reqs
|
# pre -reqs
|
||||||
|
|||||||
Reference in New Issue
Block a user