Skip to content

Commit

Permalink
Merge pull request #3 from NikhilM98/lets-encrypt-switch
Browse files Browse the repository at this point in the history
Lets encrypt switch
  • Loading branch information
NikhilM98 authored Oct 28, 2020
2 parents ca8a508 + f859d2b commit f5c7801
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.3.2
version: 0.3.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ The hostname from which Sugarizer School Portal Server will be accessible. Must

- **https:** Boolean. Set it to `true` to enable HTTPS support.

- **production:** Boolean. Use to switch between letsencrypt Staging and Production server. Set it to `true` to switch to Production server.

**[database]**
- **databaseUrl:** The URL of the MongoDB database. If replicaset is used, it can be the name of your replicaset like `mymongodb` which maps to `mymongodb-mongodb-replicaset-0.mymongodb-mongodb-replicaset.default.svc.cluster.local:27017,mymongodb-mongodb-replicaset-1.mymongodb-mongodb-replicaset.default.svc.cluster.local:27017,mymongodb-mongodb-replicaset-2.mymongodb-mongodb-replicaset.default.svc.cluster.local:27017` in the .ini file or if a single database without replicaset is used, then it can be like `sugarizer-service-db-mymongodb.sugarizer-mymongodb.svc.cluster.local`.

Expand Down
19 changes: 15 additions & 4 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ entries:
school-portal-chart:
- apiVersion: v2
appVersion: 1.0.0
created: "2020-08-22T20:26:47.592736108+05:30"
created: "2020-10-28T13:19:01.753477643+05:30"
description: A Sugarizer School Portal Helm chart for Kubernetes
digest: 8e00f8cd22cfc39004417f3365a83dfaf72ccbbe5167a0fbb60d1e531921030c
icon: https://raw.githubusercontent.com/llaske/sugarizer/master/icons/sugarizer.svg
name: school-portal-chart
type: application
urls:
- packages/school-portal-chart-0.3.3.tgz
version: 0.3.3
- apiVersion: v2
appVersion: 1.0.0
created: "2020-10-28T13:19:01.75158749+05:30"
description: A Sugarizer School Portal Helm chart for Kubernetes
digest: a51788546872a11df8c9990042c4eac5470f863a57684a6ffdfaf0004e84534f
icon: https://raw.githubusercontent.com/llaske/sugarizer/master/icons/sugarizer.svg
Expand All @@ -14,7 +25,7 @@ entries:
version: 0.3.2
- apiVersion: v2
appVersion: 1.0.0
created: "2020-08-22T20:26:47.591454981+05:30"
created: "2020-10-28T13:19:01.749950292+05:30"
description: A Sugarizer School Portal Helm chart for Kubernetes
digest: 3fac3a4ea677a816d52e20c733d6bca06994f37ebb2746c0127b04b4eeb453b4
icon: https://raw.githubusercontent.com/llaske/sugarizer/master/icons/sugarizer.svg
Expand All @@ -25,7 +36,7 @@ entries:
version: 0.2.0
- apiVersion: v2
appVersion: 1.0.0
created: "2020-08-22T20:26:47.572724654+05:30"
created: "2020-10-28T13:19:01.748205643+05:30"
description: A Sugarizer School Portal Helm chart for Kubernetes
digest: 787040379d3dc3775de670a3685f66265817dbb4fddca90d98cc39a7215b1ce7
icon: https://raw.githubusercontent.com/llaske/sugarizer/master/icons/sugarizer.svg
Expand All @@ -34,4 +45,4 @@ entries:
urls:
- packages/school-portal-chart-0.1.0.tgz
version: 0.1.0
generated: "2020-08-22T20:26:47.571733155+05:30"
generated: "2020-10-28T13:19:01.747202067+05:30"
Binary file added packages/school-portal-chart-0.3.3.tgz
Binary file not shown.
5 changes: 4 additions & 1 deletion templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ metadata:
namespace: {{required "sspNamespace not defined" .Values.sspNamespace}}
spec:
acme:
# server: https://acme-v02.api.letsencrypt.org/directory
{{- if eq .Values.deployment.production true }}
server: https://acme-v02.api.letsencrypt.org/directory
{{- else }}
server: https://acme-staging-v02.api.letsencrypt.org/directory
{{- end }}
privateKeySecretRef:
name: ssp-acme-pk-{{required "sspNamespace not defined" .Values.sspNamespace}}
solvers:
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ hostName: amazon.sugarizer.tools
deployment:
host: amazon.sugarizer.tools
https: true
production: false # Required only if HTTPs is true. Use to switch between letsencrypt Staging and Production server.
database:
databaseUrl: mymongodb
replicaset: true
Expand Down

0 comments on commit f5c7801

Please sign in to comment.