This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #360 from laverya/use-helm-to-pull-helm-charts
Use helm to pull helm charts
- Loading branch information
Showing
58 changed files
with
1,753 additions
and
231 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# mysql helm chart rendering example, using stable/mysql version 0.8.3 | ||
--- | ||
assets: | ||
v1: | ||
- inline: | ||
contents: | | ||
this exists to create the charts directory | ||
it should be removed when that bug is resolved | ||
see https://github.com/replicatedhq/ship/issues/373 | ||
dest: ./charts/mkdir.sh | ||
mode: 0777 | ||
- helm: | ||
dest: charts/rendered | ||
helm_fetch: | ||
chart_ref: stable/mysql | ||
version: "0.8.3" | ||
config: {} | ||
lifecycle: | ||
v1: | ||
- render: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"v1":{"config":{}}} |
3 changes: 3 additions & 0 deletions
3
integration/base/helm-fetch/expected/installer/charts/mkdir.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
this exists to create the charts directory | ||
it should be removed when that bug is resolved | ||
see https://github.com/replicatedhq/ship/issues/373 |
81 changes: 81 additions & 0 deletions
81
integration/base/helm-fetch/expected/installer/charts/rendered/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
##--- | ||
# Source: mysql/templates/deployment.yaml | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: ship-mysql | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
release: "ship" | ||
heritage: "Tiller" | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
app: ship-mysql | ||
spec: | ||
initContainers: | ||
- name: "remove-lost-found" | ||
image: "busybox:1.25.0" | ||
imagePullPolicy: "IfNotPresent" | ||
command: ["rm", "-fr", "/var/lib/mysql/lost+found"] | ||
volumeMounts: | ||
- name: data | ||
mountPath: /var/lib/mysql | ||
containers: | ||
- name: ship-mysql | ||
image: "mysql:5.7.14" | ||
imagePullPolicy: "IfNotPresent" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
|
||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: ship-mysql | ||
key: mysql-root-password | ||
- name: MYSQL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: ship-mysql | ||
key: mysql-password | ||
- name: MYSQL_USER | ||
value: "" | ||
- name: MYSQL_DATABASE | ||
value: "" | ||
ports: | ||
- name: mysql | ||
containerPort: 3306 | ||
livenessProbe: | ||
exec: | ||
command: | ||
- sh | ||
- -c | ||
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}" | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
timeoutSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
readinessProbe: | ||
exec: | ||
command: | ||
- sh | ||
- -c | ||
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}" | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
timeoutSeconds: 1 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
volumeMounts: | ||
- name: data | ||
mountPath: /var/lib/mysql | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: ship-mysql |
18 changes: 18 additions & 0 deletions
18
integration/base/helm-fetch/expected/installer/charts/rendered/templates/pvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
##--- | ||
# Source: mysql/templates/pvc.yaml | ||
|
||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: ship-mysql | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
release: "ship" | ||
heritage: "Tiller" | ||
spec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: "8Gi" |
20 changes: 20 additions & 0 deletions
20
integration/base/helm-fetch/expected/installer/charts/rendered/templates/secrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
##--- | ||
# Source: mysql/templates/secrets.yaml | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ship-mysql | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
release: "ship" | ||
heritage: "Tiller" | ||
type: Opaque | ||
data: | ||
|
||
mysql-root-password: "Q0RLbmszeFp3Sw==" | ||
|
||
|
||
mysql-password: "elNHSU5EblpxcA==" | ||
|
19 changes: 19 additions & 0 deletions
19
integration/base/helm-fetch/expected/installer/charts/rendered/templates/svc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
##--- | ||
# Source: mysql/templates/svc.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ship-mysql | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
release: "ship" | ||
heritage: "Tiller" | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: mysql | ||
port: 3306 | ||
targetPort: mysql | ||
selector: | ||
app: ship-mysql |
14 changes: 14 additions & 0 deletions
14
...on/base/helm-fetch/expected/installer/charts/rendered/templates/tests/test-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
##--- | ||
# Source: mysql/templates/tests/test-configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ship-mysql-test | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
heritage: "Tiller" | ||
release: "ship" | ||
data: | ||
run.sh: |- | ||
44 changes: 44 additions & 0 deletions
44
integration/base/helm-fetch/expected/installer/charts/rendered/templates/tests/test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
##--- | ||
# Source: mysql/templates/tests/test.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: ship-mysql-test | ||
labels: | ||
app: ship-mysql | ||
chart: "mysql-0.8.3" | ||
heritage: "Tiller" | ||
release: "ship" | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
initContainers: | ||
- name: test-framework | ||
image: dduportal/bats:0.4.0 | ||
command: | ||
- "bash" | ||
- "-c" | ||
- | | ||
set -ex | ||
# copy bats to tools dir | ||
cp -R /usr/local/libexec/ /tools/bats/ | ||
volumeMounts: | ||
- mountPath: /tools | ||
name: tools | ||
containers: | ||
- name: ship-test | ||
image: "mysql:5.7.14" | ||
command: ["/tools/bats/bats", "-t", "/tests/run.sh"] | ||
volumeMounts: | ||
- mountPath: /tests | ||
name: tests | ||
readOnly: true | ||
- mountPath: /tools | ||
name: tools | ||
volumes: | ||
- name: tests | ||
configMap: | ||
name: ship-mysql-test | ||
- name: tools | ||
emptyDir: {} | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# mysql helm chart rendering example, using stable/mysql version 0.8.3 | ||
--- | ||
assets: | ||
v1: | ||
- inline: | ||
contents: | | ||
this exists to create the charts directory | ||
it should be removed when that bug is resolved | ||
see https://github.com/replicatedhq/ship/issues/373 | ||
dest: ./charts/mkdir.sh | ||
mode: 0777 | ||
- helm: | ||
dest: charts/rendered | ||
helm_fetch: | ||
chart_ref: stable/mysql | ||
version: "0.8.3" | ||
config: {} | ||
lifecycle: | ||
v1: | ||
- render: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
disable_online: true | ||
|
||
skip_cleanup: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.