Skip to content

Commit

Permalink
breaking: replace PerClusterState format in Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
aruiz14 committed Feb 5, 2025
1 parent f0b6502 commit edae80d
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 228 deletions.
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

0 comments on commit edae80d

Please sign in to comment.