diff --git a/scouter/activities/activities.py b/scouter/activities/activities.py index d04c03e..4100f85 100644 --- a/scouter/activities/activities.py +++ b/scouter/activities/activities.py @@ -40,7 +40,9 @@ class Activities(Postgres, Redis, Kafka, Gates): host=redis_config['host'], port=redis_config['port'], logger=logger, - notification_handler=notification_handler + notification_handler=notification_handler, + username=redis_config['username'], + password=redis_config['password'] ) # Initialize Kafka diff --git a/tests/activities/test_activities.py b/tests/activities/test_activities.py index 2a42392..36d06ee 100644 --- a/tests/activities/test_activities.py +++ b/tests/activities/test_activities.py @@ -24,7 +24,9 @@ def test___init__(mock_gates_init, mock_kafka_init, mock_redis_init, mock_postgr redis_config = { 'host': 'localhost', - 'port': 6379 + 'port': 6379, + 'username': 'redis', + 'password': 'redis' } kafka_config = { @@ -67,6 +69,8 @@ def test___init__(mock_gates_init, mock_kafka_init, mock_redis_init, mock_postgr ANY, host=redis_config['host'], port=redis_config['port'], + username=redis_config['username'], + password=redis_config['password'], logger=logger, notification_handler=notification_handler ) @@ -104,7 +108,9 @@ def test_prepare_activity(_mock_kafka_init, redis_config = { 'host': 'localhost', - 'port': 6379 + 'port': 6379, + 'username': 'redis', + 'password': 'redis' } kafka_config = { diff --git a/values.yaml b/values.yaml index 5652c90..5730c43 100644 --- a/values.yaml +++ b/values.yaml @@ -11,7 +11,7 @@ image: # This sets the pull policy for images. pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. - tag: "0.0.1" + tag: "0.0.2" # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ imagePullSecrets: @@ -175,9 +175,14 @@ env: ssh: enabled: true - secretName: git-ssh-key-temp + secretName: git-ssh-key-sientia-scouter-worker sshPath: /mnt/.ssh knownHostsPath: /mnt/known_hosts # kubectl create secret docker-registry docker-hub-secret --namespace sientia --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=5I5zpQ6sRaHqX1hD3dr+2mo647yO3FRc359/wu6gsP+ACRDRz5mp -# helm upgrade --install sientia-dataops-scouter sientia/sientia-module -n sientia --create-namespace -f ./values.yaml \ No newline at end of file +# helm upgrade --install sientia-scouter-worker sientia/sientia-module -n sientia --create-namespace -f ./values.yaml --version 0.1.0-uat + +# kubectl create secret generic git-ssh-key-sientia-scouter-worker \ +# --namespace sientia \ +# --from-file=ssh-privatekey=git_key \ +# --type=kubernetes.io/ssh-auth \ No newline at end of file