[jboss-jira] [JBoss JIRA] (WFWIP-182) OCP4 Operator doesn't react on env update
Petr Kremensky (Jira)
issues at jboss.org
Tue Aug 27 08:29:00 EDT 2019
[ https://issues.jboss.org/browse/WFWIP-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petr Kremensky closed WFWIP-182.
--------------------------------
Resolution: Rejected
Sorry for false alarm, apparently the {{:last}} tag from a registry I store the operator was not pointing to the latest, running with Operator image build from https://github.com/wildfly/wildfly-operator/commit/467407a6c21102c77d95e9a4c7b6ab6bcc896e49 forks fine.
> OCP4 Operator doesn't react on env update
> -----------------------------------------
>
> Key: WFWIP-182
> URL: https://issues.jboss.org/browse/WFWIP-182
> Project: WildFly WIP
> Issue Type: Bug
> Components: OpenShift
> Reporter: Petr Kremensky
> Assignee: Brian Stansberry
> Priority: Blocker
>
> Updating env in WildFlyServerSpec is not reflected by Operator. The issue is specific to OCP4 (works fine on OCP3).
> Operator image build from https://github.com/wildfly/wildfly-operator/commit/467407a6c21102c77d95e9a4c7b6ab6bcc896e49
> *OpenShift Version:* 4.1.9
> *Actual:*
> * update of env do nothing with the statefulset configuration - no change on Wildfly pods
> *Expected:*
> * update of env create a new generation of statefulset and trigger rolling update of Wildfly pods
> Deploy the application using wildfly operator
> {code}
> $ cat wildfly-operator.yaml
> apiVersion: wildfly.org/v1alpha1
> kind: WildFlyServer
> metadata:
> name: wildfly-operator
> spec:
> applicationImage: "quay.io/wildfly/wildfly-centos7:17.0"
> env:
> - name: TEST_START
> value: INITIAL
> size: 1
> {code}
> Deploy and see the envs
> {code}
> oc apply -f wildfly-operator.yaml
> oc set env pod/wildfly-operator-0 --list | grep TEST
> TEST_START=INITIAL
> {code}
> Use oc client to edit the env (e.g. modify the env key & value)
> {code}
> oc edit wildflyserver wildfly-operator
> env:
> - name: TEST_UPDATE
> value: UPDATE
> {code}
> Notice a new generation of operator is created, {color:red}but no new generation of statefulset{color} - no update to pods.
> {code}
> $ oc get wildflyserver wildfly-operator -o yaml | grep generation
> generation: 2
> $ oc get statefulset.apps/wildfly-operator -o yaml | grep generation
> generation: 1
> $ oc set env pod/wildfly-operator-0 --list | grep TEST
> TEST_START=INITIAL
> {code}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
More information about the jboss-jira
mailing list