wildfly-operator icon indicating copy to clipboard operation
wildfly-operator copied to clipboard

As an user, I want to pull my application image from a private container registry

Open jmesnil opened this issue 3 years ago • 1 comments

When the statefulset is created, the container image must be pullable from the container platform.

Public images can be pulled without any issue. On OpenShift, any image in the OpenShift image registry can be pulled.

But if my application image is in a private container registry, I don't have the ability to provide an imagePullSecret that would be used to pull my image when the pods are started.

To support this use case, the WildFlyServer CRD can be enhanced with a imagePullSecrets array that will be used to populate the pod template spec.imagePullSecrets field.

The use case would then be fulfilled with the CRD:

spec:
  applicationImage: quay.io/my-private-group/my-private-image
  imagePullSecrets:
    - name: my-private-pull-secret

jmesnil avatar Sep 19 '22 08:09 jmesnil

This is related to the same feature for the Helm Chart for WildFly https://github.com/wildfly/wildfly-charts/issues/82

jmesnil avatar Sep 19 '22 08:09 jmesnil