Skip to content

Commit aa195ce

Browse files
authored
Set a size limit of (20Mi) on the temporary emptyDirs (#789)
1 parent 2d00b20 commit aa195ce

File tree

6 files changed

+26
-18
lines changed

6 files changed

+26
-18
lines changed

bundle/manifests/open-liberty.clusterserviceversion.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
"name": "openliberty-app-sample"
1212
},
1313
"spec": {
14-
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4",
14+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921",
1515
"expose": true,
1616
"manageTLS": true,
1717
"replicas": 1,
@@ -65,7 +65,7 @@ metadata:
6565
"name": "openliberty-app-sample"
6666
},
6767
"spec": {
68-
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4",
68+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921",
6969
"expose": true,
7070
"replicas": 1,
7171
"service": {
@@ -104,7 +104,7 @@ metadata:
104104
categories: Application Runtime
105105
certified: "true"
106106
containerImage: icr.io/appcafe/open-liberty-operator:daily
107-
createdAt: "2025-11-11T20:08:30Z"
107+
createdAt: "2025-11-11T22:02:01Z"
108108
description: Deploy and manage containerized Liberty applications
109109
features.operators.openshift.io/disconnected: "true"
110110
features.operators.openshift.io/fips-compliant: "true"
@@ -1236,7 +1236,7 @@ spec:
12361236
fieldRef:
12371237
fieldPath: metadata.annotations['olm.targetNamespaces']
12381238
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
1239-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
1239+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
12401240
- name: RELATED_IMAGE_OPEN_LIBERTY_OPERATOR
12411241
value: icr.io/appcafe/open-liberty-operator:daily
12421242
image: icr.io/appcafe/open-liberty-operator:daily
@@ -1292,9 +1292,11 @@ spec:
12921292
serviceAccountName: olo-controller-manager
12931293
terminationGracePeriodSeconds: 10
12941294
volumes:
1295-
- emptyDir: {}
1295+
- emptyDir:
1296+
sizeLimit: 20Mi
12961297
name: scratch
1297-
- emptyDir: {}
1298+
- emptyDir:
1299+
sizeLimit: 20Mi
12981300
name: socket
12991301
permissions:
13001302
- rules:
@@ -1535,7 +1537,7 @@ spec:
15351537
provider:
15361538
name: IBM
15371539
relatedImages:
1538-
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
1540+
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
15391541
name: liberty-sample-app
15401542
- image: icr.io/appcafe/open-liberty-operator:daily
15411543
name: open-liberty-operator

config/manager/manager.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
fieldRef:
7171
fieldPath: metadata.annotations['olm.targetNamespaces']
7272
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
73-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
73+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
7474
- name: RELATED_IMAGE_OPEN_LIBERTY_OPERATOR
7575
value: OPERATOR_IMAGE
7676
securityContext:
@@ -99,9 +99,11 @@ spec:
9999
subPath: operator.sock
100100
volumes:
101101
- name: scratch
102-
emptyDir: {}
102+
emptyDir:
103+
sizeLimit: 20Mi
103104
- name: socket
104-
emptyDir: {}
105+
emptyDir:
106+
sizeLimit: 20Mi
105107
serviceAccountName: controller-manager
106108
terminationGracePeriodSeconds: 10
107109
affinity:

config/samples/apps.openliberty.io_v1_openlibertyapplications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: OpenLibertyApplication
33
metadata:
44
name: openliberty-app-sample
55
spec:
6-
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
6+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
77
expose: true
88
manageTLS: true
99
replicas: 1

config/samples/apps.openliberty.io_v1beta2_openlibertyapplications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: openliberty-app-sample
55
spec:
66
# Add fields here
7-
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
7+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
88
expose: true
99
replicas: 1
1010
service:

internal/deploy/kubectl/openliberty-app-operator.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ spec:
302302
- name: WATCH_NAMESPACE
303303
value: OPEN_LIBERTY_WATCH_NAMESPACE
304304
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
305-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
305+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
306306
- name: RELATED_IMAGE_OPEN_LIBERTY_OPERATOR
307307
value: icr.io/appcafe/open-liberty-operator:daily
308308
image: icr.io/appcafe/open-liberty-operator:daily
@@ -361,7 +361,9 @@ spec:
361361
serviceAccountName: olo-controller-manager
362362
terminationGracePeriodSeconds: 10
363363
volumes:
364-
- emptyDir: {}
364+
- emptyDir:
365+
sizeLimit: 20Mi
365366
name: scratch
366-
- emptyDir: {}
367+
- emptyDir:
368+
sizeLimit: 20Mi
367369
name: socket

internal/deploy/kustomize/daily/base/open-liberty-operator.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
fieldRef:
5151
fieldPath: metadata.namespace
5252
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
53-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:fbe77bebd1d61bd7f39929fd8ff42a0ad56a148d29aa3665c23058dd6f5568f4
53+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:752fe4e5133dd87c7266142cd1b954a2a96b08c077cecb10e91e1070e8276921
5454
- name: RELATED_IMAGE_OPEN_LIBERTY_OPERATOR
5555
value: icr.io/appcafe/open-liberty-operator:daily
5656
image: icr.io/appcafe/open-liberty-operator:daily
@@ -109,7 +109,9 @@ spec:
109109
serviceAccountName: olo-controller-manager
110110
terminationGracePeriodSeconds: 10
111111
volumes:
112-
- emptyDir: {}
112+
- emptyDir:
113+
sizeLimit: 20Mi
113114
name: scratch
114-
- emptyDir: {}
115+
- emptyDir:
116+
sizeLimit: 20Mi
115117
name: socket

0 commit comments

Comments
 (0)