Skip to content

Commit

Permalink
fix: crd for k8e.cattle
Browse files Browse the repository at this point in the history
Signed-off-by: Deshi Xiao <[email protected]>
  • Loading branch information
xiaods committed Nov 19, 2024
1 parent c20e1ad commit b3e05b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ func List() []crd.CRD {
addon := v1.Addon{}
etcdSnapshotFile := v1.ETCDSnapshotFile{}
return []crd.CRD{
crd.NamespacedType("Addon.k3s.cattle.io/v1").
crd.NamespacedType("Addon.k8e.cattle.io/v1").
WithSchemaFromStruct(addon).
WithColumn("Source", ".spec.source").
WithColumn("Checksum", ".spec.checksum"),
crd.NonNamespacedType("ETCDSnapshotFile.k3s.cattle.io/v1").
crd.NonNamespacedType("ETCDSnapshotFile.k8e.cattle.io/v1").
WithSchemaFromStruct(etcdSnapshotFile).
WithColumn("SnapshotName", ".spec.snapshotName").
WithColumn("Node", ".spec.nodeName").
Expand Down

0 comments on commit b3e05b3

Please sign in to comment.