changed PodEnvironmentSecret location namespace (#1177)

Signed-off-by: Ildar Valiullin <preved.911@gmail.com>
This commit is contained in:
preved911 2020-10-22 09:49:30 +03:00 committed by GitHub
parent 22fa0875e2
commit d9f5d1c9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ func (c *Cluster) getPodEnvironmentSecretVariables() ([]v1.EnvVar, error) {
return secretPodEnvVarsList, nil
}
secret, err := c.KubeClient.Secrets(c.OpConfig.PodEnvironmentSecret).Get(
secret, err := c.KubeClient.Secrets(c.Namespace).Get(
context.TODO(),
c.OpConfig.PodEnvironmentSecret,
metav1.GetOptions{})