Skip to content

Commit ed4e40e

Browse files
authored
fix: remove unnecessary bundle cache volume (#964)
Signed-off-by: Joe Lanford <[email protected]>
1 parent 16cf334 commit ed4e40e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cmd/manager/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,13 @@ func main() {
198198
os.Exit(1)
199199
}
200200

201+
localStorageRoot := filepath.Join(cachePath, "bundles")
202+
if err := os.MkdirAll(localStorageRoot, 0755); err != nil {
203+
setupLog.Error(err, "unable to create local storage root directory", "root", localStorageRoot)
204+
os.Exit(1)
205+
}
201206
localStorage := &storage.LocalDirectory{
202-
RootDirectory: filepath.Join(cachePath, "bundles"),
207+
RootDirectory: localStorageRoot,
203208
URL: url.URL{},
204209
}
205210
if err := clusterExtensionFinalizers.Register(deleteCachedBundleKey, finalizerFunc(func(ctx context.Context, obj client.Object) (crfinalizer.Result, error) {

config/base/manager/manager.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ spec:
6161
volumeMounts:
6262
- name: cache
6363
mountPath: /var/cache
64-
- name: bundle-cache
65-
mountPath: /var/cache/bundles
6664
securityContext:
6765
allowPrivilegeEscalation: false
6866
capabilities:
@@ -113,5 +111,3 @@ spec:
113111
volumes:
114112
- name: cache
115113
emptyDir: {}
116-
- name: bundle-cache
117-
emptyDir: {}

0 commit comments

Comments
 (0)