Skip to content

Remote Git-based deploy doesn't forward CLI overrides like --image-pull-secret to the in-cluster func deploy #3768

@lkingland

Description

@lkingland

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.

Suggested approach (per @Ankitsinghsisodya)

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions