From c79a64905e65a62e0c1a5f74ffcf9f87c61fd8a7 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 19 Oct 2024 11:33:27 +0200 Subject: [PATCH] . --- charts/ansible-semaphore/README.md | 7 ++++++- charts/ansible-semaphore/templates/config.tpl | 10 +++++++++ charts/ansible-semaphore/values.yaml | 21 ++++++++++++++++++- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 charts/ansible-semaphore/templates/config.tpl diff --git a/charts/ansible-semaphore/README.md b/charts/ansible-semaphore/README.md index be1c0f3..42b95bc 100644 --- a/charts/ansible-semaphore/README.md +++ b/charts/ansible-semaphore/README.md @@ -12,7 +12,7 @@ The following table lists the configurable parameters of the Ansible-semaphore c | Parameter | Description | Default | | ------------------------ | ----------------------- | -------------- | | `image.repository` | | `"ansiblesemaphore/semaphore"` | -| `config.boPath to the BoltDB database filelt.host` | Path to the BoltDB database file | `null` | +| `config.bolt.host` | Path to the BoltDB database file | `null` | | `config.mysql.host` | MySQL database host | `null` | | `config.mysql.name` | MySQL database (schema) name | `null` | | `config.mysql.user` | MySQL user name | `null` | @@ -50,6 +50,11 @@ The following table lists the configurable parameters of the Ansible-semaphore c | `oidc_providers` | OpenID provider settings. You can provide multiple OpenID providers. More about OpenID configuration read in [OpenID](https://docs.semaphoreui.com/administration-guide/openid/). | `null` | | `password_login_disable` | Disable login with using password. Only LDAP and OpenID. | `false` | | `non_admin_can_create_project` | Allow non-admin users to create new projects. | `false` | +| `service.http.enabled` | | `true` | +| `service.http.ports.http.port` | | `80` | +| `service.http.ports.http.targetPort` | | `3000` | +| `volumes` | | `[{"name": "config", "secret": {"secretName": "ansible-semaphore-config", "optional": false}}]` | +| `volumeMounts` | | `[{"name": "config", "mountPath": "/etc/semaphore", "readOnly": true}]` | diff --git a/charts/ansible-semaphore/templates/config.tpl b/charts/ansible-semaphore/templates/config.tpl new file mode 100644 index 0000000..bd3f5b6 --- /dev/null +++ b/charts/ansible-semaphore/templates/config.tpl @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Secret +metadata: + name: ansible-semaphore-config + namespace: {{- .Values.namespace }} + labels: + {{- include "lib.labels" . | nindent 4}} +type: Opauge +data: + config.json: {{ toJson .Values.config | b64enc }} diff --git a/charts/ansible-semaphore/values.yaml b/charts/ansible-semaphore/values.yaml index cf0a222..4d72333 100644 --- a/charts/ansible-semaphore/values.yaml +++ b/charts/ansible-semaphore/values.yaml @@ -2,7 +2,7 @@ image: repository: ansiblesemaphore/semaphore config: - boPath to the BoltDB database filelt: + bolt: host: # Path to the BoltDB database file mysql: host: # MySQL database host @@ -43,3 +43,22 @@ max_parallel_tasks: oidc_providers: # OpenID provider settings. You can provide multiple OpenID providers. More about OpenID configuration read in [OpenID](https://docs.semaphoreui.com/administration-guide/openid/). password_login_disable: false # Disable login with using password. Only LDAP and OpenID. non_admin_can_create_project: false # Allow non-admin users to create new projects. + +service: + http: + enabled: true + ports: + http: + port: 80 + targetPort: 3000 + +volumes: + - name: config + secret: + secretName: ansible-semaphore-config + optional: false + +volumeMounts: + - name: config + mountPath: /etc/semaphore + readOnly: true