From d170f6484ea277b06975b953e923a4efd0f45e17 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Thu, 28 Nov 2024 15:52:57 +0100 Subject: [PATCH] fix: linting issues fixed. various updates to the config map and secrets. --- charts/coconut-app/templates/configmap.yaml | 11 +++ charts/coconut-app/templates/secret.yml | 16 +++ charts/coconut-app/values.yaml | 104 +++++++++++--------- 3 files changed, 82 insertions(+), 49 deletions(-) diff --git a/charts/coconut-app/templates/configmap.yaml b/charts/coconut-app/templates/configmap.yaml index c8e6442..acc2d6d 100644 --- a/charts/coconut-app/templates/configmap.yaml +++ b/charts/coconut-app/templates/configmap.yaml @@ -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 }} \ No newline at end of file diff --git a/charts/coconut-app/templates/secret.yml b/charts/coconut-app/templates/secret.yml index 3cfad29..c6a582d 100644 --- a/charts/coconut-app/templates/secret.yml +++ b/charts/coconut-app/templates/secret.yml @@ -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 -}} \ No newline at end of file diff --git a/charts/coconut-app/values.yaml b/charts/coconut-app/values.yaml index 50cc09e..467b5ba 100644 --- a/charts/coconut-app/values.yaml +++ b/charts/coconut-app/values.yaml @@ -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: @@ -32,7 +32,7 @@ logProperties: logChannel: stack logLevel: debug -#DB Properties +# DB Properties rdkitcatridgepostgres: enabled: true auth: @@ -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 @@ -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: @@ -221,16 +202,14 @@ 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 @@ -238,6 +217,7 @@ redis: service: type: LoadBalancer replica: + replicaCount: 1 persistence: enabled: true size: 1Gi @@ -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: {}