Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong namespace parsing #19

Open
aokiji opened this issue Nov 25, 2019 · 0 comments
Open

Wrong namespace parsing #19

aokiji opened this issue Nov 25, 2019 · 0 comments

Comments

@aokiji
Copy link

aokiji commented Nov 25, 2019

I get wrong namespace detection on an install of stable/redis-ha on my kubernetes cluster.

root@salt # salt node helm.get_release redis | grep -A1 namespace
    namespace:
        5.0.5 

When it should be redis. This is causing that every time I run the helm state the redis cluster is recreated since its detecting a change in namespaces.

For what I was able to gather, the namespace is not obtained from the helm get command

$> helm get redis | grep NAMESPACE
EMPTY

And it fallback to getting it from helm list, and in this case the 6th column is APP_VERSION not NAMESPACE as its expected from the code.

$> helm list redis
NAME    REVISION        UPDATED                         STATUS          CHART           APP VERSION     NAMESPACE
redis   1               Mon Nov 25 16:30:58 2019        DEPLOYED        redis-ha-4.1.0  5.0.5           redis 

I'm using helm version:

$> helm version
Client: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
aokiji pushed a commit to aokiji/salt-formula-helm that referenced this issue Nov 25, 2019
Fix namespace parsing from fix position extraction to a yaml lookup.

Issue salt-formulas#19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant