This fix solves the problem that is "pod is not restarted,
although charm mongodb secret config has changed".
Change-Id: Ifbb8a5e0e986563f42739db7b5669f933be6c5aa
Signed-off-by: aticig <gulsum.atici@canonical.com>
# Add Pod restart policy
restart_policy = PodRestartPolicy()
- restart_policy.add_secrets(secret_names=(mongodb_secret_name))
+ restart_policy.add_secrets(secret_names=(mongodb_secret_name,))
pod_spec_builder.set_restart_policy(restart_policy)
# Add container to pod spec