Skip to content

Commit 47a3e98

Browse files
committed
add kubeconfig object status details when trying to list objects
Signed-off-by: olalekan odukoya <[email protected]>
1 parent e6e5e96 commit 47a3e98

File tree

9 files changed

+463
-32
lines changed

9 files changed

+463
-32
lines changed

config/crd/bases/operator.kcp.io_kubeconfigs.yaml

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ spec:
1414
singular: kubeconfig
1515
scope: Namespaced
1616
versions:
17-
- name: v1alpha1
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.targetName
19+
name: Target
20+
type: string
21+
- jsonPath: .status.phase
22+
name: Phase
23+
type: string
24+
- jsonPath: .metadata.creationTimestamp
25+
name: Age
26+
type: date
27+
name: v1alpha1
1828
schema:
1929
openAPIV3Schema:
2030
description: Kubeconfig is the Schema for the kubeconfigs API
@@ -339,6 +349,73 @@ spec:
339349
type: object
340350
status:
341351
description: KubeconfigStatus defines the observed state of Kubeconfig
352+
properties:
353+
conditions:
354+
items:
355+
description: Condition contains details for one aspect of the current
356+
state of this API Resource.
357+
properties:
358+
lastTransitionTime:
359+
description: |-
360+
lastTransitionTime is the last time the condition transitioned from one status to another.
361+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
362+
format: date-time
363+
type: string
364+
message:
365+
description: |-
366+
message is a human readable message indicating details about the transition.
367+
This may be an empty string.
368+
maxLength: 32768
369+
type: string
370+
observedGeneration:
371+
description: |-
372+
observedGeneration represents the .metadata.generation that the condition was set based upon.
373+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
374+
with respect to the current state of the instance.
375+
format: int64
376+
minimum: 0
377+
type: integer
378+
reason:
379+
description: |-
380+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
381+
Producers of specific condition types may define expected values and meanings for this field,
382+
and whether the values are considered a guaranteed API.
383+
The value should be a CamelCase string.
384+
This field may not be empty.
385+
maxLength: 1024
386+
minLength: 1
387+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
388+
type: string
389+
status:
390+
description: status of the condition, one of True, False, Unknown.
391+
enum:
392+
- "True"
393+
- "False"
394+
- Unknown
395+
type: string
396+
type:
397+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
398+
maxLength: 316
399+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
400+
type: string
401+
required:
402+
- lastTransitionTime
403+
- message
404+
- reason
405+
- status
406+
- type
407+
type: object
408+
type: array
409+
x-kubernetes-list-map-keys:
410+
- type
411+
x-kubernetes-list-type: map
412+
phase:
413+
description: Phase represents the current phase of kubeconfig lifecycle.
414+
type: string
415+
targetName:
416+
description: TargetName represents the name of the target resource
417+
(RootShard, Shard, or FrontProxy).
418+
type: string
342419
type: object
343420
type: object
344421
served: true

0 commit comments

Comments
 (0)