-
Notifications
You must be signed in to change notification settings - Fork 38
Description
zhiyinglin@WIN-2S5U0C4DBR6:~/workspace/go/src/go.goms.io/fleet(test)$ kubectl get membercluster $MEMBER_CLUSTER_CR_NAME
NAME JOINED AGE
membercluster-sample 18h
GET command shows the Joined status as empty.
zhiyinglin@WIN-2S5U0C4DBR6:~/workspace/go/src/go.goms.io/fleet(test)$ kubectl describe membercluster $MEMBER_CLUSTER_CR_NAME
Name: membercluster-sample
Namespace:
Labels:
Annotations:
API Version: fleet.azure.com/v1alpha1
Kind: MemberCluster
Metadata:
Creation Timestamp: 2022-07-21T08:21:37Z
Generation: 1
Managed Fields:
API Version: fleet.azure.com/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:identity:
.:
f:apiGroup:
f:kind:
f:name:
f:namespace:
f:leaseDurationSeconds:
f:state:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2022-07-21T08:21:37Z
API Version: fleet.azure.com/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:allocatable:
.:
f:cpu:
f:memory:
f:capacity:
.:
f:cpu:
f:memory:
f:conditions:
Manager: 374cd9e9-5a77-455f-ae18-277e08d54a2a
Operation: Update
Subresource: status
Time: 2022-07-22T02:29:07Z
Resource Version: 251521
UID: 374cd9e9-5a77-455f-ae18-277e08d54a2a
Spec:
Identity:
API Group: rbac.authorization.k8s.io
Kind: User
Name: 38e57963-b4c8-4944-bb29-de01416514cf
Namespace: fleet-system
Lease Duration Seconds: 30
State: Join
Status:
Allocatable:
Cpu: 23660m
Memory: 218529036Ki
Capacity:
Cpu: 24
Memory: 231082252Ki
Conditions:
Last Transition Time: 2022-07-22T02:38:39Z
Message:
Observed Generation: 1
Reason: InternalMemberClusterHeartbeatReceived
Status: True
Type: HeartbeatReceived
Last Transition Time: 2022-07-22T02:29:07Z
Message:
Observed Generation: 1
Reason: MemberClusterJoined
Status: True
Type: Joined
Events:
Type Reason Age From Message
Normal MemberClusterJoined 9m57s memberCluster member cluster is joined
But the describe command show the member is joined.
There are two issues
- GET command does not present the Joined status correctly.
- Can we present the Joined status as "unknown" instead of empty?