Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Introduce cluster config malformed condition to KubeFedCluster #1476

Merged

Conversation

zqzten
Copy link
Contributor

@zqzten zqzten commented Nov 12, 2021

What this PR does / why we need it:
Currently when a ready KubeFedCluster's config become malformed (e.g. by deleting its Secret or some other necessary fields), there's no way to change its status to not ready. This can lead to some misbehavior of KubeFed controller and can also confuse maintainers.

This PR introduce a ConfigMalformed condition to KubeFedCluster to correctly reflect the unready status of a KubeFedCluster with malformed configuration.
It also mark ClientRetrievalFailed as a recoverable error since it's recoverable when some KubeFedCluster's malformed Secret get fixed.

Which issue(s) this PR fixes:
Fixes #1475

@k8s-ci-robot k8s-ci-robot added 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. labels Nov 12, 2021
@zqzten zqzten changed the title Introduce cluster config malformed condition to kubefedcluster Introduce cluster config malformed condition to KubeFedCluster Nov 12, 2021
@zqzten zqzten force-pushed the kubefedcluster_condition branch 2 times, most recently from 0fbc077 to fb3e51e Compare November 12, 2021 12:42
@zqzten
Copy link
Contributor Author

zqzten commented Nov 20, 2021

/assign @hectorj2f
PTAL, thanks

@zqzten
Copy link
Contributor Author

zqzten commented Dec 9, 2021

friendly ping @hectorj2f for approval or further opinion

@irfanurrehman
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 10, 2022
@irfanurrehman
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irfanurrehman, zqzten

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 10, 2022
@k8s-ci-robot k8s-ci-robot merged commit cca42aa into kubernetes-retired:master Mar 10, 2022
@zqzten zqzten deleted the kubefedcluster_condition branch March 10, 2022 07:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
4 participants