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

Helm upgrade only the specific dependent chart #4575

Closed
anannaya opened this issue Sep 2, 2018 · 4 comments
Closed

Helm upgrade only the specific dependent chart #4575

anannaya opened this issue Sep 2, 2018 · 4 comments

Comments

@anannaya
Copy link

anannaya commented Sep 2, 2018

I have umbrella chart
nkcscf/
├── charts
│   ├── coredisp-18.5.0-PI.2.IT.2-3.tgz
│   ├── gmdisp-18.5.0-PI.2.IT.2-3.tgz
│   ├── icscf-18.5.0-PI.2.IT.2-3.tgz
│   ├── mastericm-18.5.0-PI.2.IT.2-3.tgz
│   ├── pcscf-18.5.0-PI.2.IT.2-3.tgz
│   └── scscf-18.5.0-PI.2.IT.2-3.tgz
├── Chart.yaml
├── example-values.yaml
├── LICENSE
├── OWNERS
├── README.md
├── requirements.lock
├── requirements.yaml
├── templates
│   ├── _helpers.tpl
│   └── pvc.yaml
└── values.yaml

Part of values.yaml file.
{{
scscf:

required: true  
 global:
   scscf_image:
     name: scscf
     tag: NODB
icscf:
 required: true  
 global:
   icscf_image:
     name: icscf
     tag: NODB

I want to upgrade only one specific chart by changing the image. I have changed the image in values.yaml and tried $helm upgrade nkcscf nkcscf/ it didnt upgrade ? Is there way to upgrade the only the specific helm chart?

In each charts i have multiple containers, 1 container is common across all the dependent charts. Is there any way i can upgrade only the specific chart by with the latest common container image??

@anannaya anannaya changed the title Helm upgrade only the dependent chart Helm upgrade only the specific dependent chart Sep 2, 2018
@anannaya
Copy link
Author

anannaya commented Sep 3, 2018

Is this possible?

@bacongobbler
Copy link
Member

If you upgraded an umbrella chart's dependency tree then called helm upgrade on the umbrella chart, that should work.

What was the value changed from, in this case? If there was no difference between version 1 and version 2, helm will think there's nothing to upgrade so something had to change for an upgrade to occur.

@anannaya
Copy link
Author

anannaya commented Sep 3, 2018

@bacongobbler Thanks for the response.. My problem is
I have Umbrella chart Example CSCF which has a dependencies on scscf,icscf,pcscf microservices .. The s,i,p cscfs has multiple containers and they share a one common container.
For example : CSCF
-> scscf (mcc,scscf)
-> pcscf(mcc,pcscf)
-> icscf(mcc,icscf)
In case of upgrade I want to upgrade only one dependent chart like scscf with new mcc container image.

In values.yaml: I am using global variables

global:
    mcc_image:

scscf:
   scscf_image:
   user: scscf
pcscf:
  pcscf_image:
  user: pcscf
icscf:
  icscf_image:
  user: icscf

I want to upgrade the only scscf pod with new mcc_image without impacting the other dependent charts.
One solution would be :
-> move the mcc_image variable under all the dependent charts scope.. I dont want to do that.

Is there any other way?

@anannaya
Copy link
Author

anannaya commented Sep 3, 2018

@bacongobbler This looks like #2076 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants