Skip to content

Commit

Permalink
fix: remove unnecessary bundle cache volume (#964)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Jun 21, 2024
1 parent 16cf334 commit ed4e40e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ func main() {
os.Exit(1)
}

localStorageRoot := filepath.Join(cachePath, "bundles")
if err := os.MkdirAll(localStorageRoot, 0755); err != nil {
setupLog.Error(err, "unable to create local storage root directory", "root", localStorageRoot)
os.Exit(1)
}
localStorage := &storage.LocalDirectory{
RootDirectory: filepath.Join(cachePath, "bundles"),
RootDirectory: localStorageRoot,
URL: url.URL{},
}
if err := clusterExtensionFinalizers.Register(deleteCachedBundleKey, finalizerFunc(func(ctx context.Context, obj client.Object) (crfinalizer.Result, error) {
Expand Down
4 changes: 0 additions & 4 deletions config/base/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ spec:
volumeMounts:
- name: cache
mountPath: /var/cache
- name: bundle-cache
mountPath: /var/cache/bundles
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -113,5 +111,3 @@ spec:
volumes:
- name: cache
emptyDir: {}
- name: bundle-cache
emptyDir: {}

0 comments on commit ed4e40e

Please sign in to comment.