Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Nov 9, 2020
2 parents fd7ac0e + c05a464 commit 92555cf
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
name: adminer
appVersion: 4.7.7
version: 0.1.5
version: 0.1.6
description: Adminer is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB
home: https://www.adminer.org
icon: https://raw.githubusercontent.com/Kong/docker-official-docs/master/adminer/logo.png
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ The following table lists the configurable parameters of the Adminer chart and t
| **Affinity** |
| `affinity` | node/pod affinities | `{}` |
| **LivenessProbe** |
| `livenessProbe` | Liveness probe settings | `nil` |
| `livenessProbe` | Liveness probe settings | `nil` |
| **ReadnessProbe** |
| `readinessProbe` | Readiness probe settings | `nil` |
| `readinessProbe` | Readiness probe settings | `nil` |
| `volumeMounts` | Add volumeMount to the adminer container | `nil` |
| `volumes` | Add volumes to the pod | `nil` |

## Credits

Expand Down
32 changes: 23 additions & 9 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,32 @@ spec:
containerPort: 8080
protocol: TCP
env:
- name: ADMINER_PLUGINS
value: {{ .Values.config.plugins }}
- name: ADMINER_DESIGN
value: {{ .Values.config.design }}
- name: ADMINER_DEFAULT_SERVER
value: {{ .Values.config.externalserver }}
- name: ADMINER_PLUGINS
value: {{ .Values.config.plugins }}
- name: ADMINER_DESIGN
value: {{ .Values.config.design }}
- name: ADMINER_DEFAULT_SERVER
value: {{ .Values.config.externalserver }}
{{- with .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{ toYaml .Values.livenessProbe | indent 12 }}
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 12 }}
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
23 changes: 23 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,29 @@ ingress:
hosts: []
path: /

# kubectl create secret generic ca --from-file=ca.pem
# cat > login-ssl.php << EOF
# <?php
# require_once('plugins/login-ssl.php');
# return new AdminerLoginSsl(array("ca" => "/secrets/ca.pem"));
# EOF
# kubectl create configmap plugins-enabled --from-file=login-ssl.php
# volumeMounts:
# - name: ca
# mountPath: "/secrets/"
# readOnly: true
# - name: plugins-enabled
# mountPath: "/var/www/html/plugins-enabled/"
# readOnly: true

# volumes:
# - name: ca
# secret:
# secretName: ca
# - name: plugins-enabled
# configMap:
# name: plugins-enabled

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 92555cf

Please sign in to comment.