mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-08 09:01:15 +02:00
#349 Fix Helm upgrade issue with PVC
This commit is contained in:
@@ -168,7 +168,7 @@ jenkins:
|
||||
|
||||
# className is storageClassName for PVC
|
||||
# See https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1 for more details
|
||||
className: "-"
|
||||
className: ""
|
||||
|
||||
# env contains container environment variables
|
||||
# PVC backup provider handles these variables:
|
||||
|
||||
@@ -50,7 +50,7 @@ func TestDeployHelmChart(t *testing.T) {
|
||||
}
|
||||
|
||||
cmd := exec.Command("helm", "upgrade", "jenkins", "./chart/jenkins-operator", "--namespace", namespace, "--debug",
|
||||
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace, "--install"))
|
||||
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace), "--install")
|
||||
output, err := cmd.CombinedOutput()
|
||||
require.NoError(t, err, string(output))
|
||||
|
||||
@@ -58,7 +58,7 @@ func TestDeployHelmChart(t *testing.T) {
|
||||
waitForJenkinsUserConfigurationToComplete(t, jenkins)
|
||||
|
||||
cmd = exec.Command("helm", "upgrade", "jenkins", "./chart/jenkins-operator", "--namespace", namespace, "--debug",
|
||||
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace, "--install"))
|
||||
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace), "--install")
|
||||
output, err = cmd.CombinedOutput()
|
||||
require.NoError(t, err, string(output))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user