Skip to content

Commit

Permalink
fix: linting issues fixed. various updates to the config map and secr…
Browse files Browse the repository at this point in the history
…ets.
  • Loading branch information
CS76 committed Nov 28, 2024
1 parent 0219ae4 commit d170f64
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 49 deletions.
11 changes: 11 additions & 0 deletions charts/coconut-app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,14 @@ data:
DOI_HOST: {{ .Values.doi.doiHost }}
DOI_PROVIDER: {{ .Values.doi.doiProvider }}

#Datacite Properties
DATACITE_PREFIX: "{{ .Values.datacite.prefix }}"
DATACITE_ENDPOINT: {{ .Values.datacite.endpoint }}

#OAuth Properties
{{ if .Values.oauthProperties.github.enabled }}
GITHUB_REDIRECT_URL: {{ .Values.oauthProperties.github.redirectURL }}
{{ end }}
{{ if .Values.oauthProperties.google.enabled }}
GOOGLE_REDIRECT_URL: {{ .Values.oauthProperties.google.redirectURL }}
{{ end }}
16 changes: 16 additions & 0 deletions charts/coconut-app/templates/secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,20 @@ data:
{{- if .Values.larabug.enabled }}
LB_KEY: {{ .Values.larabug.lbKey |b64enc | quote }}
LB_PROJECT_KEY: {{ .Values.larabug.lbProjectKey |b64enc | quote }}
{{- end -}}

#OAuth Properties Secrets
{{- if .Values.oauthProperties.github.enabled }}
GITHUB_CLIENT_ID: {{ .Values.oauthProperties.github.clientID |b64enc | quote }}
GITHUB_CLIENT_SECRET: {{ .Values.oauthProperties.github.clientSecret |b64enc | quote }}
{{- end -}}
{{- if .Values.oauthProperties.google.enabled }}
GOOGLE_CLIENT_ID: {{ .Values.oauthProperties.google.clientID |b64enc | quote }}
GOOGLE_CLIENT_SECRET: {{ .Values.oauthProperties.google.clientSecret |b64enc | quote }}
{{- end -}}

{{- if .Values.datacite.enabled }}
#Datacite Secrets
DATACITE_USERNAME: {{ .Values.datacite.username |b64enc | quote }}
DATACITE_SECRET: {{ .Values.datacite.secret |b64enc | quote }}
{{- end -}}
104 changes: 55 additions & 49 deletions charts/coconut-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ replicaCount: 1
# Default app properties for laravel.
appProperties:
name: coconut
key:
key: base64:88Td66VUaLDIea0DEgJQVdoXU1WolK+kdoEPBepQYH0=
env: production
debug: true
url: https://coconut.naturalproducts.net/
queueConnection: sync
schemaVersion: 1.0
description: |
COCONUT Online is an open-source project that stores, searches, and analyzes Natural Products (NPs).
The database contains over 50 open NP resources, and the data is accessible free of charge and without any restrictions.
Each entry corresponds to a "flat" NP structure and is associated with their known stereochemical forms,
COCONUT Online is an open-source project that stores, searches, and analyzes Natural Products (NPs).
The database contains over 50 open NP resources, and the data is accessible free of charge and without any restrictions.
Each entry corresponds to a "flat" NP structure and is associated with their known stereochemical forms,
literature, organisms that produce them, natural geographic presence, and precomputed molecular properties if available.
webservices:
Expand All @@ -32,7 +32,7 @@ logProperties:
logChannel: stack
logLevel: debug

#DB Properties
# DB Properties
rdkitcatridgepostgres:
enabled: true
auth:
Expand Down Expand Up @@ -110,7 +110,7 @@ ingress:
# hosts:
# - chart-example.local

resources:
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
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -152,37 +152,18 @@ cheminfo-microservice:
type: ClusterIP
port: 80

# oauthProperties:
# enabled: false
# twitterClientID:
# twitterClientSecret:
# twitterRedirectUrl:
# githubClientID:
# githubClientSecret:
# githubRedirectUrl:
# orcidClientID:
# orcidClientSecret:
# orcidRedirectUrl:
# orcidEnvironment:

#Enable this properties for Single Sign-On follow the documentation for more info https://docs.coconut.org/docs/developer-guides/configurations/oauth
# oauthProperties:
# twitter:
# enabled: false
# clientID:
# clientSecret:
# redirectURL:
# github:
# enabled: false
# clientID:
# clientSecret:
# redirectURL:
# orcid:
# enabled: false
# clientID:
# clientSecret:
# redirectURL:
# environment:
# Enable this properties for Single Sign-On follow the documentation for more info https://docs.coconut.org/docs/developer-guides/configurations/oauth
oauthProperties:
google:
enabled: false
clientID:
clientSecret:
redirectURL:
github:
enabled: false
clientID:
clientSecret:
redirectURL:

# storage:
# pvc:
Expand Down Expand Up @@ -221,23 +202,22 @@ worker:

redis:
enabled: false
#architecture: standalone
# architecture: standalone
auth:
enabled: true
password: secret
global:
storageClass: standard
#host: nmrxiv-redis-master
# host: nmrxiv-redis-master
port: 6379
replica:
replicaCount: 1
master:
persistence:
enabled: true
size: 1Gi
service:
type: LoadBalancer
replica:
replicaCount: 1
persistence:
enabled: true
size: 1Gi
Expand Down Expand Up @@ -270,21 +250,47 @@ scheduler:

larabug:
enabled: false
lbKey:
lbKey:
lbProjectKey:

datacite:
enabled: false
host:
username:
secret:
prefix:
endpoint: https://api.test.datacite.org

rabbitmq:
enabled: false
queueConnection: sync
port: 5672
# host: nmrxiv-rabbitmq
auth:
username: 'rabbitmq_user'
password: 'password'
# erlangCookie: 'erlangCookieerlangCookie'
global:
storageClass: 'standard'
metrics:
enabled: false
ingress:
enabled: false
path: '/'
hostname: ''

fileStorage:
# Below values are for file storage configuration.
# You can have desired S3 compatible driver of your choice. Follow to read more https://laravel.com/docs/9.x/filesystem
enabled: false
fileSystemDriver:
fileSystemDriverPublic:
awsAccessKeyID:
awsSecretAccessKey:
awsDefaultRegion:
awsBucket:
fileSystemDriver:
fileSystemDriverPublic:
awsAccessKeyID:
awsSecretAccessKey:
awsDefaultRegion:
awsBucket:
awsEndpoint:
awsURL:
awsURL:

nodeSelector: {}

Expand Down

0 comments on commit d170f64

Please sign in to comment.