streamnative / function-mesh

The serverless framework purpose-built for event streaming applications.
https://functionmesh.io/
Apache License 2.0
213 stars 29 forks source link

added feature to provide imagePullSecrets and imagePullPolicy to runn… #791

Closed moweonlee closed 9 hours ago

moweonlee commented 1 week ago

Motivation

While working with FunctionMesh, we observed that the runner image could only be configured by specifying its repository. In our intranet environment, where all Docker images are used privately, it is essential to always define ImagePullSecrets.

This modification was aimed at ensuring that ImagePullSecrets and ImagePullPolicy can also be specified when downloading the modified runnerImage.

Additionally, we aligned this update with the existing functionality by placing the base runner image configuration within the values.yaml file of the Function Controller, maintaining consistency with the current setup.

Modifications

The modification ensures that when the FunctionMesh Controller uses the Kubernetes library to create StatefulSets for Functions, Sinks, and Sources, the ImagePullSecrets and ImagePullPolicy configurations are properly propagated to the associated POD settings.

Verifying this change

This change is already covered by existing tests, such as (please describe tests).

Documentation

Check the box below.

Need to update docs?

I think following README.md file should me modified to provide information about runner image configuration