Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve cluster deployment status for nested infra (#1044) #1121

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tomoyane
Copy link

@tomoyane tomoyane commented Feb 25, 2025

It was inconvenient that we couldn't see the status of AwsCluster (VPC threshold, Credential invalid, etc.). An issue has already been filed. So I have tried to add the cluster information of Cluster's InfraRef to ClusterDeployment's Conditions.
If you already have other designs or ideas, I want to try to rework that also close this one.

This is sample flow on my testing.

Add message example: my-aws-clusterdeployment1: failed to create new managed VPC: failed to create vpc: AuthFailure: AWS was not able to validate the provided access credentials...

$ kubectl -n kcm-system get clusterdeployments.k0rdent.mirantis.com -w
NAME                        READY   STATUS
my-aws-clusterdeployment1   False   my-aws-clusterdeployment1: Waiting for control plane provider to indicate the control plane has been initialized. my-aws-clusterdeployment1. my-aws-clusterdeployment1: 0 of 8 completed. my-aws-clusterdeployment1-md: Minimum availability requires 2 replicas, current 0 available. my-aws-clusterdeployment1: failed to create new managed VPC: failed to create vpc: AuthFailure: AWS was not able to validate the provided access credentials...
..
..
my-aws-clusterdeployment1   False   my-aws-clusterdeployment1: Waiting for control plane provider to indicate the control plane has been initialized. my-aws-clusterdeployment1. my-aws-clusterdeployment1-md: Minimum availability requires 2 replicas, current 0 available.
my-aws-clusterdeployment1   False   failed to reconcile Profile: Operation cannot be fulfilled on profiles.config.projectsveltos.io "my-aws-clusterdeployment1": the object has been modified; please apply your changes to the latest version and try again. my-aws-clusterdeployment1-md: Minimum availability requires 2 replicas, current 0 available.
my-aws-clusterdeployment1   False   my-aws-clusterdeployment1-md: Minimum availability requires 2 replicas, current 0 available.
my-aws-clusterdeployment1   True    ClusterDeployment is ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[bug] Misleading condition status error message in clusterdeployment
1 participant