working version
This commit is contained in:
parent
c79a64905e
commit
747c771fce
2
charts/semaphoreui/.gitignore
vendored
Normal file
2
charts/semaphoreui/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
Chart.lock
|
||||
charts/
|
18
charts/semaphoreui/Chart.yaml
Normal file
18
charts/semaphoreui/Chart.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: v2
|
||||
name: semaphoreui
|
||||
description: Powerful API for Ansible
|
||||
type: application
|
||||
version: 1.0.0
|
||||
appVersion: v2.10.31
|
||||
kubeVersion: ">=1.27.0"
|
||||
home: https://semaphoreui.com/
|
||||
sources:
|
||||
- https://git.rre.nu/jonas/helm-charts
|
||||
maintainers:
|
||||
- name: Jonas Forsberg
|
||||
email: barregargamel@gmail.com
|
||||
dependencies:
|
||||
- name: lib
|
||||
repository: "file://../../../lib/"
|
||||
version: 1.0.1
|
2
charts/semaphoreui/Makefile
Normal file
2
charts/semaphoreui/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
doc:
|
||||
frigate gen --output-format markdown --no-deps --no-credits ./ > README.md
|
33
charts/semaphoreui/README.md
Normal file
33
charts/semaphoreui/README.md
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
Semaphoreui
|
||||
===========
|
||||
|
||||
Powerful API for Ansible
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the Semaphoreui chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------ | ----------------------- | -------------- |
|
||||
| `image.repository` | | `"semaphoreui/semaphore"` |
|
||||
| `config` | | `{}` |
|
||||
| `service.http.enabled` | | `true` |
|
||||
| `service.http.ports.http.port` | | `80` |
|
||||
| `service.http.ports.http.targetPort` | | `3000` |
|
||||
| `ingress.enabled` | | `false` |
|
||||
| `ingress.service` | what service should the ingress target | `"http"` |
|
||||
| `ingress.servicePort` | | `80` |
|
||||
| `ingress.className` | | `"nginx"` |
|
||||
| `ingress.hosts` | | `[{"host": "example.local", "paths": [{"path": "/", "pathType": "Prefix"}]}]` |
|
||||
| `ingress.annotations` | | `{}` |
|
||||
| `controller.command` | Need to override server-wrapper due to stupid DB ping in container | `["/bin/sh"]` |
|
||||
| `controller.args` | | `["/var/local/bin/entrypoint.sh"]` |
|
||||
| `volumes` | | `[{"name": "config", "secret": {"secretName": "semaphoreui-config", "optional": false}}, {"name": "entrypoint", "configMap": {"name": "semaphoreui-entrypoint", "items": [{"key": "entrypoint.sh", "path": "entrypoint.sh"}]}}]` |
|
||||
| `volumeMounts` | | `[{"name": "config", "mountPath": "/var/semaphoreui-secret", "readOnly": true}, {"name": "entrypoint", "mountPath": "/var/local/bin/entrypoint.sh", "subPath": "entrypoint.sh"}]` |
|
||||
|
||||
|
||||
|
||||
|
||||
|
1
charts/semaphoreui/templates/base.tpl
Normal file
1
charts/semaphoreui/templates/base.tpl
Normal file
@ -0,0 +1 @@
|
||||
{{ include "lib.all" . }}
|
10
charts/semaphoreui/templates/config.tpl
Normal file
10
charts/semaphoreui/templates/config.tpl
Normal file
@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: semaphoreui-config
|
||||
namespace: {{ .Values.namespace | default "default" }}
|
||||
labels:
|
||||
{{- include "lib.labels" . | nindent 4}}
|
||||
type: Opauge
|
||||
data:
|
||||
config.json: {{ toJson .Values.config | b64enc }}
|
28
charts/semaphoreui/templates/entrypoint.sh
Normal file
28
charts/semaphoreui/templates/entrypoint.sh
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: semaphoreui-entrypoint
|
||||
namespace: {{ .Values.namespace | default "default" }}
|
||||
labels:
|
||||
{{- include "lib.labels" . | nindent 4}}
|
||||
data:
|
||||
entrypoint.sh: |
|
||||
#!/bin/sh
|
||||
echo "creating /etc/semaphore/config.json"
|
||||
cp /var/semaphoreui-secret/config.json /etc/semaphore/config.json
|
||||
if test -f /etc/semaphore/packages.txt; then
|
||||
echo "Installing additional system dependencies"
|
||||
apk add --no-cache --upgrade \
|
||||
$(cat /etc/semaphore/packages.txt | xargs)
|
||||
else
|
||||
echo "No additional system dependencies to install"
|
||||
fi
|
||||
if test -f /etc/semaphore/requirements.txt; then
|
||||
echo "Installing additional python dependencies"
|
||||
pip3 install --upgrade \
|
||||
-r /etc/semaphore/requirements.txt
|
||||
else
|
||||
echo "No additional python dependencies to install"
|
||||
fi
|
||||
echo "Starting semapore server"
|
||||
exec /usr/local/bin/semaphore server --config /etc/semaphore/config.json
|
92
charts/semaphoreui/values.yaml
Normal file
92
charts/semaphoreui/values.yaml
Normal file
@ -0,0 +1,92 @@
|
||||
image:
|
||||
repository: semaphoreui/semaphore
|
||||
|
||||
config: {}
|
||||
# bolt:
|
||||
# host: # Path to the BoltDB database file
|
||||
# mysql:
|
||||
# host: # MySQL database host
|
||||
# name: # MySQL database (schema) name
|
||||
# user: # MySQL user name
|
||||
# pass: # MySQL user's password
|
||||
# postgres:
|
||||
# host: # Postgres database host
|
||||
# name: # Postgres database (schema) name
|
||||
# user: # Postgres user name
|
||||
# pass: # Postgres user's password
|
||||
# dialect: bolt # Can be mysql, postgres or bolt
|
||||
# port: 3000 # TCP port on which the web interface will be available. Default: 3000
|
||||
# interface: # Useful if your server has multiple network interfaces
|
||||
# tmp_path: /tmp/semaphore # Path to directory where cloned repositories and generated files are stored. Default: /tmp/semaphore
|
||||
# access_key_encryption: # Secret key used for encrypting access keys in database. Read more in [Database encryption reference](https://docs.semaphoreui.com/administration-guide/security#database-encryption).
|
||||
# web_host: # Can be useful if you want to use Semaphore by the subpath, for example: http://yourdomain.com/semaphore. Do not add a trailing /.
|
||||
# email_sender:
|
||||
# email_host:
|
||||
# email_port:
|
||||
# email_secure:
|
||||
# email_username:
|
||||
# email_password:
|
||||
# email_alert:
|
||||
# telegram_alert:
|
||||
# slack_alert: # Set to True to enable pushing alerts to slack. It should be used in combination with slack_url
|
||||
# slack_url: # The slack webhook url. Semaphore will used it to POST Slack formatted json alerts to the provided url
|
||||
# rocketchat_alert: # Set to True to enable pushing alerts to Rocket.Chat. It should be used in combination with rocketchat_url. Available since v2.9.56.
|
||||
# rocketchat_url: # The rocketchat webhook url. Semaphore will used it to POST Rocket.Chat formatted json alerts to the provided url. Available since v2.9.56.
|
||||
# ldap_enable:
|
||||
# ldap_needtls:
|
||||
# ldap_binddn:
|
||||
# ldap_bindpassword:
|
||||
# ldap_server:
|
||||
# ldap_searchdn:
|
||||
# concurrency_mode: # Can be unset/empty or project or node. When set to project, tasks will run in parallel if and only if they do not share the same project id, with no regard to the nodes/hosts that are affected. When set to node, a task will run in parallel if and only if the hosts affected by tasks already running does not intersect with the hosts that would be affected by the task in question. If concurrency_mode is not specified or left empty, no task will start before the previous one has finished.
|
||||
#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
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
service: http # what service should the ingress target
|
||||
servicePort: 80
|
||||
className: "nginx"
|
||||
hosts:
|
||||
- host: example.local
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
annotations:
|
||||
{}
|
||||
|
||||
|
||||
controller:
|
||||
command: ["/bin/sh"] # Need to override server-wrapper due to stupid DB ping in container
|
||||
args:
|
||||
- /var/local/bin/entrypoint.sh
|
||||
|
||||
volumes:
|
||||
- name: config
|
||||
secret:
|
||||
secretName: semaphoreui-config
|
||||
optional: false
|
||||
- name: entrypoint
|
||||
configMap:
|
||||
name: semaphoreui-entrypoint
|
||||
items:
|
||||
- key: entrypoint.sh
|
||||
path: entrypoint.sh
|
||||
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /var/semaphoreui-secret
|
||||
readOnly: true
|
||||
- name: entrypoint
|
||||
mountPath: /var/local/bin/entrypoint.sh
|
||||
subPath: entrypoint.sh
|
Loading…
Reference in New Issue
Block a user