[CPS] Configure roles-wrapper dependency 74/127774/2
authorBruno Sakoto <bruno.sakoto@bell.ca>
Tue, 15 Mar 2022 02:50:52 +0000 (22:50 -0400)
committerBruno Sakoto <bruno.sakoto@bell.ca>
Wed, 30 Mar 2022 10:49:16 +0000 (06:49 -0400)
If needed, RBAC roles are created when deploying cps chart.

This change is coming from the need to deploy cps chart standalone
independently from onap main chart.

A previous change has been made in
https://gerrit.onap.org/r/c/oom/+/126713 and reverted with
https://gerrit.onap.org/r/c/oom/+/126961 for onap main chart
compatibility.

Then this current change supports both integrated and standalone cps
deployments depending on a configurable variable. Default deployment
remains onap integrated one.

Issue-ID: CPS-862
Change-Id: Ic787a8bcf9373f060a91966614a0145dec2a7c90
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
(cherry picked from commit 5470cda865785bd638aab556dfdb127ce97913ef)

kubernetes/cps/requirements.yaml
kubernetes/cps/values.yaml

index bd9a80c..317f7be 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2021 Bell Canada.
+# Copyright (C) 2021, 2022 Bell Canada.
 # Modifications Copyright © 2021 Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,10 @@ dependencies:
   - name: common
     version: ~9.x-0
     repository: '@local'
+  - name: roles-wrapper
+    version: ~9.x-0
+    repository: '@local'
+    condition: standaloneDeployment
   - name: cps-core
     version: ~9.x-0
     repository: '@local'
index 6093fa7..754b016 100755 (executable)
@@ -32,6 +32,9 @@ secrets:
     passwordPolicy: generate
 
 passwordStrengthOverride: basic
+
+standaloneDeployment: false
+
 global:
   ingress:
     virtualhost: