Skip to content

NGF with NGINX+ fails to deploy because of imagePullSecrets template error  #1952

Closed
@bjee19

Description

@bjee19

Describe the bug
NGF with NGINX+ fails to deploy with the following errors:
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(ServiceAccount.metadata): unknown field "imagePullSecrets" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta with an Openshift cluster

and

W0509 13:45:42.175175 10280 warnings.go:70] unknown field "metadata.imagePullSecrets"
on a local Kind cluster.

On the local kind cluster, the NGF pod would still deploy but would never become ready due to an ErrImagePull

To Reproduce
Steps to reproduce the behavior:

  1. Follow instructions here to create a docker config secret using a JWT.
  2. Deploy NGF with NGINX+ using helm install ngf oci://ghcr.io/nginxinc/charts/nginx-gateway-fabric --set nginx.image.repository=private-registry.nginx.com/nginx-gateway-fabric/nginx-plus --set nginx.plus=true --set serviceAccount.imagePullSecret=nginx-plus-registry-secret --create-namespace -n nginx-gateway --set nginxGateway.productTelemetry.enable=false

Expected behavior
NGF should deploy with NGINX+ correctly.

Your environment

  • Version of the NGINX Gateway Fabric - edge and 1.2
  • Kubernetes platform : Kind and Openshift

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelm-chartRelates to helm chart

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions