Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Jan 19, 2024
1 parent 8cdca9f commit af491a2
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 77 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ Depending on the installation you perform, some tasks may be necessary or not. T
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| cert-manager-issuer.enabled | bool | `true` | |
| cert-manager.enabled | bool | `true` | |
| cert-manager.installCRDs | bool | `true` | |
Expand Down Expand Up @@ -142,14 +138,13 @@ Depending on the installation you perform, some tasks may be necessary or not. T
| dex.service.ports.http.port | int | `8000` | |
| dex.service.type | string | `"NodePort"` | |
| diracx.hostname | string | `""` | Required: The hostname where the webapp/API is running |
| diracx.manageOSIndices | bool | `true` | |
| diracx.osDbs.dbs | string | `nil` | Which DiracX OpenSearch DBs are used? |
| diracx.osDbs.default | string | `nil` | |
| diracx.pythonModulesToInstall | list | `[]` | List of install specifications to pass to pip before launching each container |
| diracx.service.port | int | `8000` | |
| diracx.settings | object | "e.g. DIRACX_CONFIG_BACKEND_URL=..." | Settings to inject into the API container via environment variables |
| diracx.settings.DIRACX_CONFIG_BACKEND_URL | string | `"git+file:///cs_store/initialRepo"` | This corresponds to the basic dirac.cfg which must be present on all the servers TODO: autogenerate all of these |
| diracx.sqlDbs.dbs | string | `nil` | |
| diracx.sqlDbs.dbs | string | `nil` | Which DiracX MySQL DBs are used? |
| diracx.sqlDbs.default | string | `nil` | |
| diracxWeb.service.port | int | `8080` | |
| fullnameOverride | string | `""` | |
Expand Down
2 changes: 0 additions & 2 deletions diracx/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ metadata:
labels:
{{- include "diracx.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "diracx.selectorLabels" . | nindent 6 }}
Expand Down
28 changes: 0 additions & 28 deletions diracx/templates/hpa.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions diracx/templates/init-os/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ spec:
name: diracx-os-root-connection-urls
key: DIRACX_OS_DB_{{ $dbName | upper }}
{{- end }}
envFrom:
- secretRef:
name: diracx-init-os-secrets
resources:
{{- toYaml .Values.initOs.resources | nindent 12 }}
volumes:
Expand Down
4 changes: 3 additions & 1 deletion diracx/templates/init-secrets/_init-secrets.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ generate_secret_if_needed diracx-sql-root-connection-urls \



# If we deploy MySQL ourselves
{{- if .Values.initOs.enabled }}
# If we deploy opensearch ourselves
{{- if .Values.opensearch.enabled }}

# Make sure that there are no default connection settings
Expand Down Expand Up @@ -190,3 +191,4 @@ generate_secret_if_needed diracx-os-root-connection-urls \

{{- end }}
{{- end }}
{{- end }}
3 changes: 0 additions & 3 deletions diracx/templates/init-sql/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ spec:
name: diracx-sql-root-connection-urls
key: DIRACX_DB_URL_{{ $dbName | upper }}
{{- end }}
envFrom:
- secretRef:
name: diracx-init-mysql-secrets
resources:
{{- toYaml $initSQLValues.resources | nindent 12 }}
volumes:
Expand Down
19 changes: 0 additions & 19 deletions diracx/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,3 @@ metadata:
stringData:
{{ .Values.diracx.settings | toYaml | indent 2 }}
---
{{- if index .Values "init-sql" "enabled" }}
apiVersion: v1
kind: Secret
metadata:
name: diracx-init-mysql-secrets
stringData:
{{ (index .Values "init-sql" "env") | toYaml | indent 2 }}
---
{{- end }}

{{- if .Values.initOs.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: diracx-init-os-secrets
stringData:
{{ .Values.initOs.env | toYaml | indent 2 }}
---
{{- end }}
2 changes: 0 additions & 2 deletions diracx/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ metadata:
labels:
{{- include "diracx.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "diracxWeb.selectorLabels" . | nindent 6 }}
Expand Down
17 changes: 4 additions & 13 deletions diracx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ securityContext:

#################

# TODO: should only be present during install
init-cs:
# Automatically initialize the repository in the CS volume
enabled: true
Expand Down Expand Up @@ -121,12 +120,8 @@ diracx:
DIRACX_CONFIG_BACKEND_URL: "git+file:///cs_store/initialRepo"
DIRACX_SERVICE_AUTH_TOKEN_KEY: "file:///signing-key/rsa256.key"
DIRACX_SERVICE_AUTH_ALLOWED_REDIRECTS: '["http://anything:8000/docs/oauth2-redirect"]'
# Should DiracX include an init container which manages the OS DB indices?
# TODO: move to pre-upgrade hook
manageOSIndices: true


# TODO:
# If mysql is enabled, you are not allowed
# to set the username passwords
sqlDbs:
Expand All @@ -136,7 +131,7 @@ diracx:
# user: dirac
# password: password123
# host: sqlHost:123
# # -- Which DiracX MySQL DBs are used?
# -- Which DiracX MySQL DBs are used?
dbs:
# AuthDB:
# JobDB:
Expand All @@ -148,8 +143,11 @@ diracx:
# password: hush
# host: proxyHost:345

# If opensearch is enabled, you are not allowed
# to set the username passwords
osDbs:
default:

# -- Which DiracX OpenSearch DBs are used?
dbs:
# JobParametersDB:
Expand Down Expand Up @@ -366,13 +364,6 @@ resources:
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit af491a2

Please sign in to comment.