Skip to content

Commit

Permalink
netris-controller: mongodb and mariadb init scripts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pogossian committed Apr 12, 2021
1 parent a76a2e0 commit cf4b852
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/netris-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: v2.9.0-1
appVersion: v2.9.0-2
home: https://netris.ai
icon: https://www.netris.ai/wp-content/uploads/2020/05/logo-600.png # [todo] Change url to permalink
keywords:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
data:
init: |-
init.js: |-
use {{ .Values.mongodb.auth.database }}
db.createCollection("audit_log", {capped: true, size: 1073741824});
db.audit_log.createIndex({"updatedAt":-1});
db.audit_log.createIndex({"createdAt":-1});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1652,10 +1652,10 @@ data:
users.sql: |-
USE {{ .Values.mariadb.auth.database }};
INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | sha1sum }}','','info@netris.ai','',NULL,0,'','','Netris',NULL,0,1,'enabled','','', NULL, NULL);
INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | sha1sum }}','Netris','info@netris.local','',NULL,0,'','','Netris',NULL,0,1,'enabled','','', NULL, NULL);
INSERT INTO `user_to_tenant` VALUES (1,1,0,'w');
INSERT INTO `users` VALUES (2,'k8swatcher','{{ .Values.netris.authKey | sha1sum }}','K8SWatcher Agent','k8swatcher@netris.ai','',NULL,0,'','','Netris',NULL,0,1,'disabled','','', NULL, NULL);
INSERT INTO `users` VALUES (2,'k8swatcher','{{ .Values.netris.authKey | sha1sum }}','K8SWatcher Agent','k8swatcher@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','', NULL, NULL);
INSERT INTO `user_to_tenant` VALUES (2,2,0,'w');
vpn_scores.sql: |
USE {{ .Values.mariadb.auth.database }};
Expand Down

0 comments on commit cf4b852

Please sign in to comment.