Skip to content

Commit

Permalink
fix upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 31, 2025
1 parent 7266fe1 commit 84dd073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/pkg/upgrade/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func CreateUpgradeJob(
Name: "ec-charts-dir",
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: runtimeconfig.EmbeddedClusterChartsSubDir(),
Path: runtimeconfig.EmbeddedClusterChartsSubDirNoCreate(),
},
},
},
Expand Down Expand Up @@ -217,7 +217,7 @@ func CreateUpgradeJob(
},
{
Name: "ec-charts-dir",
MountPath: runtimeconfig.EmbeddedClusterChartsSubDir(),
MountPath: runtimeconfig.EmbeddedClusterChartsSubDirNoCreate(),
ReadOnly: true,
},
},
Expand Down
6 changes: 6 additions & 0 deletions pkg/runtimeconfig/runtimeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ func EmbeddedClusterChartsSubDir() string {
return path
}

// EmbeddedClusterChartsSubDirNoCreate returns the path to the directory where embedded-cluster helm charts
// are stored without creating the directory if it does not exist.
func EmbeddedClusterChartsSubDirNoCreate() string {
return filepath.Join(EmbeddedClusterHomeDirectory(), "charts")
}

// EmbeddedClusterImagesSubDir returns the path to the directory where docker images are stored.
func EmbeddedClusterImagesSubDir() string {
path := filepath.Join(EmbeddedClusterHomeDirectory(), "images")
Expand Down

0 comments on commit 84dd073

Please sign in to comment.