Skip to content

Commit

Permalink
Merge pull request #42 from RasaHQ/v3-actions
Browse files Browse the repository at this point in the history
switch back to offical actions
  • Loading branch information
wochinge authored Apr 23, 2020
2 parents c17b2bb + cbccbfd commit f3f8e6d
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 26 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@ jobs:
run: |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Lint chart
- name: Lint chart using Helm CLI
run: |
helm lint --strict ${CHART}
# TODO: Consider switching back to this once it's Helm 3 compatible
# - name: Run chart-testing (lint)
# id: lint
# uses: helm/chart-testing-action@v1.0.0-alpha.3
# with:
# command: lint
# image: quay.io/helmpack/chart-testing:v3.0.0-beta.2
- name: Run chart-testing (lint)
id: lint
uses: helm/chart-testing-action@v1.0.0-rc.2
with:
command: lint
config: ct.yaml

deploy_chart:
name: Test the deployment of the chart
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: wochinge/chart-releaser-action@chart-releaser-from-git
uses: helm/chart-releaser-action@v1.0.0-rc.2
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
CHART_RELEASE_COMMIT_HASH: "89c97cd5a8e28959ffe6c272b64c695d068f3f7f"
2 changes: 1 addition & 1 deletion charts/rasa-x/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2

version: "1.2.5"
version: "1.2.6"
appVersion: "0.27.4"

name: rasa-x
Expand Down
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/app-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ spec:
httpGet:
path: "{{ .Values.app.endpoints.healthCheckUrl }}"
port: "http"
{{- with .Values.app.resources }}
resources:
{{- toYaml .Values.app.resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
env:
{{- toYaml .Values.app.extraEnvs | nindent 10 }}
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/duckling-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
httpGet:
path: "/"
port: "http"
{{- with .Values.duckling.resources }}
resources:
{{- toYaml .Values.duckling.resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/event-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ spec:
value: "false"
{{- include "rasa-x.psql.envs" . | nindent 8 }}
{{- include "rasax.event-service.extra.envs" . | nindent 8 }}
{{- with .Values.eventService.resources }}
resources:
{{- toYaml .Values.eventService.resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: "/app/endpoints.yml"
subPath: "endpoints.yml"
Expand Down
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ spec:
readOnly: true
mountPath: "/opt/bitnami/certs"
{{ end }}
{{- with .Values.nginx.resources }}
resources:
{{- toYaml .Values.nginx.resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
volumes:
- configMap:
items:
Expand Down
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/rasa-deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ spec:
- --cors
- '*'
{{ if $.Values.debugMode }}- --debug{{ end }}
{{- with .resources }}
resources:
{{- toYaml .resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
env:
- name: "DB_PASSWORD"
valueFrom:
Expand Down
4 changes: 3 additions & 1 deletion charts/rasa-x/templates/rasa-x-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ spec:
- mountPath: "/app/git"
name: "rasa-x-claim"
subPath: "git"
{{- with .Values.rasax.resources }}
resources:
{{- toYaml .Values.rasax.resources | nindent 10 }}
{{- toYaml . | nindent 10 }}
{{- end }}
volumes:
- name: "environments"
configMap:
Expand Down
Empty file.
18 changes: 9 additions & 9 deletions charts/rasa-x/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ rasax:
# initialProbeDelay for the `readinessProbe` and the `livenessProbe`
initialProbeDelay: 10
# resources which Rasa X is required / allowed to use
resources:
resources: {}
# extraEnvs are environment variables which can be added to the Rasa X deployment
extraEnvs: []
# - name: SOME_CUSTOM_ENV_VAR
Expand Down Expand Up @@ -131,7 +131,7 @@ rasa:
# rasaEnvironment it used to indicate the origin of events published to RabbitMQ (App ID message property)
rasaEnvironment: "production"
# resources which rasaProduction is required / allowed to use
resources:
resources: {}
# rasaWorker is the container which does computational heavy tasks such as training
rasaWorker:
# replicaCount of the Rasa worker container
Expand All @@ -145,7 +145,7 @@ rasa:
# rasaEnvironment it used to indicate the origin of events published to RabbitMQ (App ID message property)
rasaEnvironment: "worker"
# resources which rasaWorker is required / allowed to use
resources:
resources: {}

# event-service specific settings
eventService:
Expand All @@ -172,7 +172,7 @@ eventService:
# "beta.kubernetes.io/instance-type": "g3.8xlarge"

# resources which the event service is required / allowed to use
resources:
resources: {}
# extraEnvs are environment variables which can be added to the eventService deployment
extraEnvs: []
# - name: SOME_CUSTOM_ENV_VAR
Expand All @@ -189,9 +189,9 @@ app:
# port on which the custom action server runs
port: 5055
# resources which app is required / allowed to use
resources:
resources: {}
# extraEnvs are environment variables which can be added to the app deployment
extraEnvs:
extraEnvs: []
# - name: DATABASE_URL
# valueFrom:
# secretKeyRef:
Expand Down Expand Up @@ -235,7 +235,7 @@ nginx:
# port is the port which the nginx service exposes for HTTP connections
port: 8000
# nodePort can be used with a service of type `NodePort` to expose the service on a certain port of the node (https://kubernetes.io/docs/concepts/services-networking/service/#nodeport)
nodePort:
nodePort: ""
# externalIPs can be used to expose the service to certain IPs (https://kubernetes.io/docs/concepts/services-networking/service/#external-ips)
externalIPs: []
# initialProbeDelay for the `readinessProbe` and the `livenessProbe`
Expand All @@ -253,7 +253,7 @@ nginx:
# "beta.kubernetes.io/instance-type": "g3.8xlarge"

# resources which nginx is required / allowed to use
resources:
resources: {}

# Duckling specific settings
duckling:
Expand All @@ -280,7 +280,7 @@ duckling:
# "beta.kubernetes.io/instance-type": "g3.8xlarge"

# resources which duckling is required / allowed to use
resources:
resources: {}

# rasaSecret object which supplies passwords, tokens, etc. See
# https://rasa.com/docs/rasa-x/openshift-kubernetes/#providing-access-credentials-using-an-external-secret
Expand Down
2 changes: 2 additions & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ remote: origin
chart-dirs:
- charts
helm-extra-args: --timeout 600
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami

0 comments on commit f3f8e6d

Please sign in to comment.