Problem
For remote deploys that use the Git-based pipeline (a Git URL is configured), CLI flags like --image-pull-secret, --service-account, and --deployer do not reach the on-cluster func deploy step. Source is cloned from the remote Git repo on-cluster, so func.yaml in that path comes from whatever is committed in the repo — not from local disk, and not from the in-memory Function struct on the user's machine.
This is the Git-path equivalent of the bug PR #3663 fixed for the PVC-upload path. #3663 worked by persisting f to local func.yaml before invoking the pipeline, so the on-cluster step would read the updated config from the PVC. That mechanism doesn't help the Git path at all — local func.yaml is never uploaded.
The func-deploy task step runs func deploy inside the cluster. Forward the in-memory CLI overrides (--image-pull-secret, --service-account, --deployer, etc.) as discrete Tekton params on the pipeline run, and have the task template conditionally append them as flags to the in-cluster func deploy command.
Related
Problem
For remote deploys that use the Git-based pipeline (a Git URL is configured), CLI flags like
--image-pull-secret,--service-account, and--deployerdo not reach the on-clusterfunc deploystep. Source is cloned from the remote Git repo on-cluster, sofunc.yamlin that path comes from whatever is committed in the repo — not from local disk, and not from the in-memoryFunctionstruct on the user's machine.This is the Git-path equivalent of the bug PR #3663 fixed for the PVC-upload path. #3663 worked by persisting
fto localfunc.yamlbefore invoking the pipeline, so the on-cluster step would read the updated config from the PVC. That mechanism doesn't help the Git path at all — localfunc.yamlis never uploaded.Suggested approach (per @Ankitsinghsisodya)
The
func-deploytask step runsfunc deployinside the cluster. Forward the in-memory CLI overrides (--image-pull-secret,--service-account,--deployer, etc.) as discrete Tekton params on the pipeline run, and have the task template conditionally append them as flags to the in-clusterfunc deploycommand.Related
func.yamlbefore remote deploy upload #3663 on the PVC path).func.yamlbefore remote deploy upload #3663 — original fix for the PVC-path version of this bug.