Skip to content

Commit f2eee37

Browse files
committed
chore: simplify kubeblocks preflight checks
Keep KubeBlocks preflight on the native troubleshoot Preflight API and limit the default checks to cluster-side requirements: Kubernetes version, node count, and required VolumeSnapshot CRDs. Remove host preflight loading and execution, provider-specific preflight YAMLs, and the KubeBlocks-specific extend analyzer/collector/type layers that were only used by the removed checks. Update tests and fixtures for native Preflight-only parsing and execution. Do not upgrade github.com/replicatedhq/troubleshoot because v0.123.0 requires a newer Kubernetes dependency stack than this branch currently supports.
1 parent d8c9efe commit f2eee37

50 files changed

Lines changed: 548 additions & 3384 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 117 additions & 90 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 268 additions & 206 deletions
Large diffs are not rendered by default.

pkg/cmd/kubeblocks/data/ack_hostpreflight.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/ack_preflight.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/eks_hostpreflight.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/eks_preflight.yaml

Lines changed: 0 additions & 65 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/gke_hostpreflight.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/gke_preflight.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

pkg/cmd/kubeblocks/data/kubeblocks_base_preflight.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,3 @@ spec:
4646
message: The volumesnapshotcontents CRD was not found in the cluster.
4747
- pass:
4848
message: volumesnapshotcontents is installed.
49-
extendAnalyzers:
50-
- clusterAccess:
51-
checkName: Check-K8S-Access
52-
outcomes:
53-
- fail:
54-
message: K8s cluster access fail
55-
- pass:
56-
message: K8s cluster access ok
57-
- taint:
58-
checkName: Required-Taint-Match
59-
outcomes:
60-
- fail:
61-
message: All nodes had taints that the pod didn't tolerate
62-
- pass:
63-
message: The taint matching succeeded
64-
- storageClass:
65-
checkName: Required-Default-SC
66-
outcomes:
67-
- warn:
68-
message: The default storage class was not found. You can use option --set storageClass=<storageClassName> when creating cluster
69-
- pass:
70-
message: Default storage class is the presence, and all good on storage classes

pkg/cmd/kubeblocks/data/tke_hostpreflight.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)