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

Simplify PerClusterState and include all states and cluster IDs #3287

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 104 additions & 84 deletions charts/fleet-crd/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6776,12 +6776,6 @@ spec:
waiting to be applied.
type: integer
type: object
resourceErrors:
description: ResourceErrors is a sorted list of errors from the
resources.
items:
type: string
type: array
resources:
description: Resources contains metadata about the resources of
each bundle.
Expand Down Expand Up @@ -6828,45 +6822,59 @@ spec:
nullable: true
type: string
perClusterState:
description: PerClusterState is a list of states for each
cluster. Derived from the summaries non-ready resources.
items:
description: ResourcePerClusterState is generated for each
non-ready resource of the bundles.
properties:
clusterId:
description: ClusterID is the id of the cluster.
nullable: true
description: PerClusterState contains lists of cluster IDs
for every State for this resource
nullable: true
properties:
missing:
description: Missing is a list of cluster IDs for which
this a resource is in Missing state
items:
type: string
error:
description: Error is true if the resource is in an
error state, copied from the bundle's summary for
non-ready resources.
type: boolean
message:
description: Message combines the messages from the
bundle's summary. Messages are joined with the delimiter
';'.
nullable: true
type: array
modified:
description: Modified is a list of cluster IDs for which
this a resource is in Modified state
items:
type: string
patch:
description: Patch for modified resources.
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
state:
description: State is the state of the resource.
nullable: true
type: array
notReady:
description: NotReady is a list of cluster IDs for which
this a resource is in NotReady state
items:
type: string
transitioning:
description: 'Transitioning is true if the resource
is in a transitioning state,

copied from the bundle''s summary for non-ready resources.'
type: boolean
type: object
nullable: true
type: array
type: array
orphaned:
description: Orphaned is a list of cluster IDs for which
this a resource is in Orphaned state
items:
type: string
type: array
pending:
description: Pending is a list of cluster IDs for which
this a resource is in Pending state
items:
type: string
type: array
ready:
description: Ready is a list of cluster IDs for which
this a resource is in Ready state
items:
type: string
type: array
unknown:
description: Unknown is a list of cluster IDs for which
this a resource is in Unknown state
items:
type: string
type: array
waitApplied:
description: WaitApplied is a list of cluster IDs for
which this a resource is in WaitApplied state
items:
type: string
type: array
type: object
state:
description: State is the state of the resource, e.g. "Unknown",
"WaitApplied", "ErrApplied" or "Ready".
Expand All @@ -6879,6 +6887,8 @@ spec:
description: Type is the type of the resource, e.g. "apiextensions.k8s.io.customresourcedefinition"
or "configmap".
type: string
required:
- perClusterState
type: object
type: array
summary:
Expand Down Expand Up @@ -8647,12 +8657,6 @@ spec:
waiting to be applied.
type: integer
type: object
resourceErrors:
description: ResourceErrors is a sorted list of errors from the
resources.
items:
type: string
type: array
resources:
description: Resources contains metadata about the resources of
each bundle.
Expand Down Expand Up @@ -8699,45 +8703,59 @@ spec:
nullable: true
type: string
perClusterState:
description: PerClusterState is a list of states for each
cluster. Derived from the summaries non-ready resources.
items:
description: ResourcePerClusterState is generated for each
non-ready resource of the bundles.
properties:
clusterId:
description: ClusterID is the id of the cluster.
nullable: true
description: PerClusterState contains lists of cluster IDs
for every State for this resource
nullable: true
properties:
missing:
description: Missing is a list of cluster IDs for which
this a resource is in Missing state
items:
type: string
error:
description: Error is true if the resource is in an
error state, copied from the bundle's summary for
non-ready resources.
type: boolean
message:
description: Message combines the messages from the
bundle's summary. Messages are joined with the delimiter
';'.
nullable: true
type: array
modified:
description: Modified is a list of cluster IDs for which
this a resource is in Modified state
items:
type: string
patch:
description: Patch for modified resources.
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
state:
description: State is the state of the resource.
nullable: true
type: array
notReady:
description: NotReady is a list of cluster IDs for which
this a resource is in NotReady state
items:
type: string
transitioning:
description: 'Transitioning is true if the resource
is in a transitioning state,

copied from the bundle''s summary for non-ready resources.'
type: boolean
type: object
nullable: true
type: array
type: array
orphaned:
description: Orphaned is a list of cluster IDs for which
this a resource is in Orphaned state
items:
type: string
type: array
pending:
description: Pending is a list of cluster IDs for which
this a resource is in Pending state
items:
type: string
type: array
ready:
description: Ready is a list of cluster IDs for which
this a resource is in Ready state
items:
type: string
type: array
unknown:
description: Unknown is a list of cluster IDs for which
this a resource is in Unknown state
items:
type: string
type: array
waitApplied:
description: WaitApplied is a list of cluster IDs for
which this a resource is in WaitApplied state
items:
type: string
type: array
type: object
state:
description: State is the state of the resource, e.g. "Unknown",
"WaitApplied", "ErrApplied" or "Ready".
Expand All @@ -8750,6 +8768,8 @@ spec:
description: Type is the type of the resource, e.g. "apiextensions.k8s.io.customresourcedefinition"
or "configmap".
type: string
required:
- perClusterState
type: object
type: array
summary:
Expand Down
Loading
Loading