Skip to content

Commit faaf0cf

Browse files
bdchathamclaude
andcommitted
chore: remove unused ConfigStatus and ConfigDiagnostic types
These types were defined but never read or written by any controller code. Removing to reduce CRD surface area. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0359523 commit faaf0cf

4 files changed

Lines changed: 0 additions & 189 deletions

File tree

api/v1alpha1/seinode_types.go

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -248,49 +248,6 @@ type SeiNodeStatus struct {
248248
// config so the node advertises a reachable address for gossip discovery.
249249
// +optional
250250
ExternalAddress string `json:"externalAddress,omitempty"`
251-
252-
// ConfigStatus reports the observed configuration state from the sidecar.
253-
// +optional
254-
ConfigStatus *ConfigStatus `json:"configStatus,omitempty"`
255-
}
256-
257-
// ConfigStatus reports the observed config state of a managed node.
258-
type ConfigStatus struct {
259-
// Version is the on-disk config schema version.
260-
// +optional
261-
Version int `json:"version,omitempty"`
262-
263-
// Mode is the config mode that was applied.
264-
// +optional
265-
Mode string `json:"mode,omitempty"`
266-
267-
// Diagnostics contains validation findings from the last config-validate task.
268-
// +optional
269-
Diagnostics []ConfigDiagnostic `json:"diagnostics,omitempty"`
270-
271-
// LastValidatedAt is the timestamp of the last successful config-validate task.
272-
// +optional
273-
LastValidatedAt *metav1.Time `json:"lastValidatedAt,omitempty"`
274-
275-
// LastAppliedAt is the timestamp of the last successful config-apply task.
276-
// +optional
277-
LastAppliedAt *metav1.Time `json:"lastAppliedAt,omitempty"`
278-
279-
// DriftDetected is true when the on-disk config diverges from the CRD-desired state.
280-
// +optional
281-
DriftDetected bool `json:"driftDetected,omitempty"`
282-
}
283-
284-
// ConfigDiagnostic is a single finding from config validation.
285-
type ConfigDiagnostic struct {
286-
// Severity is the diagnostic level: ERROR, WARNING, or INFO.
287-
Severity string `json:"severity"`
288-
289-
// Field is the config key path that the diagnostic applies to.
290-
Field string `json:"field"`
291-
292-
// Message describes the finding.
293-
Message string `json:"message"`
294251
}
295252

296253
// +kubebuilder:object:root=true

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/sei.io_seinodes.yaml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -558,55 +558,6 @@ spec:
558558
x-kubernetes-list-map-keys:
559559
- type
560560
x-kubernetes-list-type: map
561-
configStatus:
562-
description: ConfigStatus reports the observed configuration state
563-
from the sidecar.
564-
properties:
565-
diagnostics:
566-
description: Diagnostics contains validation findings from the
567-
last config-validate task.
568-
items:
569-
description: ConfigDiagnostic is a single finding from config
570-
validation.
571-
properties:
572-
field:
573-
description: Field is the config key path that the diagnostic
574-
applies to.
575-
type: string
576-
message:
577-
description: Message describes the finding.
578-
type: string
579-
severity:
580-
description: 'Severity is the diagnostic level: ERROR, WARNING,
581-
or INFO.'
582-
type: string
583-
required:
584-
- field
585-
- message
586-
- severity
587-
type: object
588-
type: array
589-
driftDetected:
590-
description: DriftDetected is true when the on-disk config diverges
591-
from the CRD-desired state.
592-
type: boolean
593-
lastAppliedAt:
594-
description: LastAppliedAt is the timestamp of the last successful
595-
config-apply task.
596-
format: date-time
597-
type: string
598-
lastValidatedAt:
599-
description: LastValidatedAt is the timestamp of the last successful
600-
config-validate task.
601-
format: date-time
602-
type: string
603-
mode:
604-
description: Mode is the config mode that was applied.
605-
type: string
606-
version:
607-
description: Version is the on-disk config schema version.
608-
type: integer
609-
type: object
610561
externalAddress:
611562
description: |-
612563
ExternalAddress is the routable P2P address (host:port) for this node,

manifests/sei.io_seinodes.yaml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -558,55 +558,6 @@ spec:
558558
x-kubernetes-list-map-keys:
559559
- type
560560
x-kubernetes-list-type: map
561-
configStatus:
562-
description: ConfigStatus reports the observed configuration state
563-
from the sidecar.
564-
properties:
565-
diagnostics:
566-
description: Diagnostics contains validation findings from the
567-
last config-validate task.
568-
items:
569-
description: ConfigDiagnostic is a single finding from config
570-
validation.
571-
properties:
572-
field:
573-
description: Field is the config key path that the diagnostic
574-
applies to.
575-
type: string
576-
message:
577-
description: Message describes the finding.
578-
type: string
579-
severity:
580-
description: 'Severity is the diagnostic level: ERROR, WARNING,
581-
or INFO.'
582-
type: string
583-
required:
584-
- field
585-
- message
586-
- severity
587-
type: object
588-
type: array
589-
driftDetected:
590-
description: DriftDetected is true when the on-disk config diverges
591-
from the CRD-desired state.
592-
type: boolean
593-
lastAppliedAt:
594-
description: LastAppliedAt is the timestamp of the last successful
595-
config-apply task.
596-
format: date-time
597-
type: string
598-
lastValidatedAt:
599-
description: LastValidatedAt is the timestamp of the last successful
600-
config-validate task.
601-
format: date-time
602-
type: string
603-
mode:
604-
description: Mode is the config mode that was applied.
605-
type: string
606-
version:
607-
description: Version is the on-disk config schema version.
608-
type: integer
609-
type: object
610561
externalAddress:
611562
description: |-
612563
ExternalAddress is the routable P2P address (host:port) for this node,

0 commit comments

Comments
 (0)