Skip to content

fix: grant the pipeline deploy step keda.sh ScaledObjects and Trigger Authentications - #265

Merged
maschmid merged 1 commit into
functions-dev:mainfrom
gauron99:push-xnvtrtmrqmnn
Oct 13, 2026
Merged

maschmid merged 1 commit into
functions-dev:mainfrom
gauron99:push-xnvtrtmrqmnn

Conversation

@gauron99

Copy link
Copy Markdown
Contributor

Since knative/func#4069 func's keda deployer reads ScaledObjects on every deploy, to catch a switch between the http and kafka scalers, and creates ScaledObjects and TriggerAuthentications for kafka triggers. The deploy step of the on-cluster build runs that deployer as the namespace's default service account, with the Role this operator creates. That Role had no keda.sh rules, so, as knative/func#4077 describes for func's own roles, every keda deploy is refused. The E2E keda jobs have failed on every PR since 2026-10-05.

The deploy step runs ghcr.io/knative/func-utils:v2, a tag func republishes from its main branch, so the change reached the operator without a func bump.

Grant the verbs func grants itself in knative/func#4077. The operator's ClusterRole needs the same rule, or it may not create the Role. Existing Roles get the rule on the next rebuild in their namespace, because ensureDeployFunctionRole rewrites rules that differ.

…Authentications

Since knative/func#4069 func's keda deployer reads ScaledObjects on
every deploy, to catch a switch between the http and kafka scalers, and
creates ScaledObjects and TriggerAuthentications for kafka triggers.
The deploy step of the on-cluster build runs that deployer as the
namespace's default service account, with the Role this operator
creates. That Role had no keda.sh rules, so, as knative/func#4077
describes for func's own roles, every keda deploy is refused. The E2E
keda jobs have failed on every PR since 2026-10-05.

The deploy step runs ghcr.io/knative/func-utils:v2, a tag func
republishes from its main branch, so the change reached the operator
without a func bump.

Grant the verbs func grants itself in knative/func#4077. The operator's
ClusterRole needs the same rule, or it may not create the Role.
Existing Roles get the rule on the next rebuild in their namespace,
because ensureDeployFunctionRole rewrites rules that differ.
@maschmid
maschmid enabled auto-merge (squash) October 13, 2026 09:19
@aliok

aliok commented Oct 13, 2026

Copy link
Copy Markdown

/lgtm
/approve

Looks great, thanks @gauron99

@maschmid
maschmid merged commit 78a61f2 into functions-dev:main Oct 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants