Skip to content

Conversation

@ipochi
Copy link
Contributor

@ipochi ipochi commented May 7, 2025

release-0.31 branch update for v0.31.4 tag

Currently the setting up of k8s client is broken if service account
authentication is not used between server and agent.

This condition  `if o.AgentNamespace != "" {` acts as a gatekeeper for
setting the k8s client which worked fine previously as server never
needed to talk to apiserver apart from authenticating agents using
service account token.

However when lease controller logic was added, it meant that setting up
k8s client was required if lease controller was enabled but
authentication was done using mTLS instead of service account
authentication.

This fixes that.

Closing kubernetes-sigs#728  in favour of this.

Signed-off-by: Imran Pochi <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 7, 2025
@k8s-ci-robot k8s-ci-robot requested review from elmiko and tallclair May 7, 2025 23:35
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ipochi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 7, 2025
@ipochi ipochi changed the title release-0.32 branch update for v0.31.4 tag release-0.31 branch update for v0.31.4 tag May 7, 2025
@ipochi
Copy link
Contributor Author

ipochi commented May 7, 2025

@cheftako PR for updating the release branch for creating a new tag. I cannot directly push to release-v0.x branch as its protected.

@cheftako
Copy link
Contributor

/retest

1 similar comment
@ipochi
Copy link
Contributor Author

ipochi commented May 13, 2025

/retest

@cheftako cheftako merged commit af6d357 into kubernetes-sigs:release-0.31 May 14, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants