-
Bug
-
Resolution: Done
-
Normal
-
AMQ 7.10.0.OPR.3.GA
The operator is trying to create an already created resource (in this example, a secret with name my-console-secret) when deploying an AMQ cluster, and the webconsole is exposed with SSL enabled.
The secret containing the keystore/certificate to be used for securing the console was created before applying the CustomResource (CR). Then, it's referenced by the CR. After applying the CR, the operator tries to create the secret:
ERROR package k8s_actions Failed to create new *v1.Secret {"ActiveMQArtemis Name": "my-console-secret", "Namespace": "test-operator", "error": "resourceVersion should not be set on objects to be created"} github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).ProcessResources /remote-source/app/controllers/activemqartemis_reconciler.go:1170 github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).Process /remote-source/app/controllers/activemqartemis_reconciler.go:129 github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconciler).Reconcile /remote-source/app/controllers/activemqartemis_controller.go:142 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
Also, the operator sets the 'resourceVersion' attribute, and it should not be set, as mentioned in the operator-output.log
- is related to
-
ENTMQBR-6406 Allow to set loglevel at ActiveMQArtemis CR level
-
- Closed
-