[
https://issues.jboss.org/browse/WFWIP-211?page=com.atlassian.jira.plugin....
]
Jeff Mesnil edited comment on WFWIP-211 at 10/1/19 8:40 AM:
------------------------------------------------------------
[~mchoma] I'm not able to reproduce with wildfly-operator upstream from
https://github.com/wildfly/wildfly-operator/commit/fe4dece576e6b5c49faba5...
{code}
$ cat deploy/crds/quickstart-cr.yaml
apiVersion:
wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
name: quickstart
spec:
applicationImage:
"quay.io/wildfly-quickstarts/wildfly-operator-quickstart:17.0"
replicas: 2
storage:
emptyDir:
medium: Memory
sizeLimit: 5Mi
$ kubectl apply -f deploy/crds/quickstart-cr.yaml
wildflyserver.wildfly.org/quickstart created
$ kubectl get -o yaml wfly
...
spec:
applicationImage: quay.io/wildfly-quickstarts/wildfly-operator-quickstart:17.0
replicas: 2
storage:
emptyDir:
medium: Memory
sizeLimit: 5Mi
...
kubectl get -o yaml pod quickstart-0
...
volumes:
- emptyDir:
medium: Memory
sizeLimit: 5Mi
name: quickstart-volume
- name: default-token-dd4mv
secret:
defaultMode: 420
secretName: default-token-dd4mv
...
{code}
was (Author: jmesnil):
I'm not able to reproduce with wildfly-operator upstream from
https://github.com/wildfly/wildfly-operator/commit/fe4dece576e6b5c49faba5...
{code}
$ cat deploy/crds/quickstart-cr.yaml
apiVersion:
wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
name: quickstart
spec:
applicationImage:
"quay.io/wildfly-quickstarts/wildfly-operator-quickstart:17.0"
replicas: 2
storage:
emptyDir:
medium: Memory
sizeLimit: 5Mi
$ kubectl apply -f deploy/crds/quickstart-cr.yaml
wildflyserver.wildfly.org/quickstart created
$ kubectl get -o yaml wfly
...
spec:
applicationImage: quay.io/wildfly-quickstarts/wildfly-operator-quickstart:17.0
replicas: 2
storage:
emptyDir:
medium: Memory
sizeLimit: 5Mi
...
kubectl get -o yaml pod quickstart-0
...
volumes:
- emptyDir:
medium: Memory
sizeLimit: 5Mi
name: quickstart-volume
- name: default-token-dd4mv
secret:
defaultMode: 420
secretName: default-token-dd4mv
...
{code}
emptyDir.sizeLimit not propagated to Pod Spec
---------------------------------------------
Key: WFWIP-211
URL:
https://issues.jboss.org/browse/WFWIP-211
Project: WildFly WIP
Issue Type: Bug
Components: OpenShift
Reporter: Martin Choma
Assignee: Jeff Mesnil
Priority: Blocker
Labels: operator
# {code:yaml}
apiVersion:
wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
name: operator-empty-dir
namespace: mchoma
spec:
applicationImage: 'registry.access.redhat.com/jboss-eap-7/eap72-openshift:1.1'
size: 1
storage:
emptyDir:
medium: Memory
sizeLimit: 1Mi
{code}
# wait until pod are started and look into pod yaml definition "1 Mi" is not
there
{code:yaml}
...
serviceAccount: default
serviceAccountName: default
subdomain: operator-empty-dir-headless
terminationGracePeriodSeconds: 30
volumes:
- emptyDir:
medium: Memory
name: operator-empty-dir-volume
- name: default-token-j2grg
secret:
defaultMode: 420
secretName: default-token-j2grg
status:
conditions:
...
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)