Browse Source

Add content secret config param

Anuj Bansal 3 năm trước cách đây
mục cha
commit
8f64d79b46

+ 3 - 0
devops/kubernetes/orion/Pulumi.yaml

@@ -21,3 +21,6 @@ template:
     orionImage:
       description: The Orion image to use for running the orion node
       default: joystream/orion:latest
+    contentSecret:
+      description: Orion featured content secret
+      default: password123

+ 1 - 1
devops/kubernetes/orion/README.md

@@ -48,7 +48,7 @@ After cloning this repo, from this working directory, run these commands:
    $ pulumi config set isMinikube false
    ```
 
-   You can also set the `storage` config parameter if required. Check `Pulumi.yaml` file for additional parameters.
+   You can also set the `storage` and `contentSecret` config parameters if required. Check `Pulumi.yaml` file for additional parameters.
 
 1. Stand up the EKS cluster:
 

+ 2 - 1
devops/kubernetes/orion/index.ts

@@ -13,6 +13,7 @@ const name = 'orion'
 const queryNodeHost = config.require('queryNodeEndpoint')
 const lbReady = config.get('isLoadBalancerReady') === 'true'
 const orionImage = config.get('orionImage') || `joystream/orion:latest`
+const contentSecret = config.get('contentSecret') || `password123`
 const storage = parseInt(config.get('storage') || '40')
 const isMinikube = config.getBoolean('isMinikube')
 
@@ -91,7 +92,7 @@ const deployment = new k8s.apps.v1.Deployment(
                 },
                 {
                   name: 'ORION_FEATURED_CONTENT_SECRET',
-                  value: 'password123',
+                  value: contentSecret,
                 },
                 {
                   name: 'ORION_QUERY_NODE_URL',