fix(phpmyadmin) code cleanup (#7361)

* fix(phpmyadmin) code cleanup

* fix variable example defaults
This commit is contained in:
Xstar97TheNoob
2023-02-17 06:27:23 -05:00
committed by GitHub
parent bb7d2b695a
commit 3bf585fa5a
3 changed files with 55 additions and 46 deletions
+7 -6
View File
@@ -1,8 +1,3 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- Tools-Utilities
- Other
apiVersion: v2 apiVersion: v2
appVersion: "latest" appVersion: "latest"
dependencies: dependencies:
@@ -27,4 +22,10 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/phpmyadmin - https://github.com/truecharts/charts/tree/master/charts/incubator/phpmyadmin
- https://hub.docker.com/r/phpmyadmin/phpmyadmin - https://hub.docker.com/r/phpmyadmin/phpmyadmin
type: application type: application
version: 2.0.10 version: 2.0.11
annotations:
truecharts.org/catagories: |
- Tools-Utilities
- Other
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+32 -28
View File
@@ -9,41 +9,45 @@ questions:
# Include{replica1} # Include{replica1}
# Include{controllerExpertExtraArgs} # Include{controllerExpertExtraArgs}
- variable: env - variable: env
group: "App Configuration" group: App Configuration
label: "Image Environment" label: Image Environment
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: MYSQL_USER - variable: MYSQL_USER
label: "MYSQL_USER" label: MYSQL User
description: "Container Variable MYSQLUSER"
schema: schema:
type: string type: string
default: "root" default: ""
- variable: MYSQL_PASSWORD - variable: MYSQL_PASSWORD
label: "MYSQL_PASSWORD" label: MYSQL Password
description: "Container Variable MYSQLPASSWORD"
schema: schema:
type: string type: string
default: "root" default: ""
- variable: PMA_HOST - variable: PMA_HOST
label: "PMA_HOST" label: PWA Host
description: "Container Variable PMAHOST" description: define address/host name of the db
schema: schema:
type: string type: string
default: "192.168.70.99" default: "192.168.70.99"
- variable: PMA_PORT - variable: PMA_PORT
label: "PMA_PORT" label: PWA Port
description: "Container Variable PMAPORT" description: define port of the MySQL server
schema: schema:
type: string type: string
default: "3306" default: "3306"
- variable: PMA_ABSOLUTE_URI
label: PWA Absolute URi
description: The full URL to phpMyAdmin
schema:
type: string
default: ""
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: "Main Service" label: Main Service
description: "The Primary service on which the healthcheck runs, often the webUI" description: The Primary service on which the healthcheck runs, often the webUI
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -51,14 +55,14 @@ questions:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: "Main Service Port Configuration" label: Main Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 8080 default: 8080
@@ -70,7 +74,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: "Main Ingress" label: Main Ingress
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -82,41 +86,41 @@ questions:
# Include{security} # Include{security}
# Include{securityContextAdvancedRoot} # Include{securityContextAdvancedRoot}
- variable: privileged - variable: privileged
label: "Privileged mode" label: Privileged mode
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: readOnlyRootFilesystem - variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem" label: ReadOnly Root Filesystem
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: allowPrivilegeEscalation - variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation" label: Allow Privilege Escalation
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: runAsNonRoot - variable: runAsNonRoot
label: "runAsNonRoot" label: runAsNonRoot
schema: schema:
type: boolean type: boolean
default: false default: false
# Include{podSecurityContextRoot} # Include{podSecurityContextRoot}
- variable: runAsUser - variable: runAsUser
label: "runAsUser" label: runAsUser
description: "The UserID of the user running the application" description: The UserID of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: runAsGroup - variable: runAsGroup
label: "runAsGroup" label: runAsGroup
description: The groupID this App of the user running the application" description: The groupID this App of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: fsGroup
description: "The group that should own ALL storage." description: The group that should own ALL storage.
schema: schema:
type: int type: int
default: 568 default: 568
+16 -12
View File
@@ -1,25 +1,29 @@
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/phpmyadmin
tag: latest@sha256:34b663ed38d6c87e061f431b02199bc4ace35d95a71aba6ab1125137dc477a78
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
env: env:
MYSQL_PASSWORD: root MYSQL_PASSWORD: root
MYSQL_USER: root MYSQL_USER: root
PMA_HOST: 192.168.70.99 PMA_HOST: 192.168.70.99
PMA_PORT: "3306" PMA_PORT: "3306"
image: # PMA_ABSOLUTE_URI: ""
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/phpmyadmin
tag: latest@sha256:34b663ed38d6c87e061f431b02199bc4ace35d95a71aba6ab1125137dc477a78
persistence: {}
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
service: service:
main: main:
ports: ports:
main: main:
port: 8080 port: 8080
protocol: TCP protocol: HTTP
targetPort: 80 targetPort: 80
portal: portal: