Documentation
¶
Index ¶
- func HelmReleaseReadyStatus(conditions []HelmReleaseCondition) (bool, string, string)
- func ReadHelmReleaseStatuses(ctx context.Context, kubeContext, kubeconfig string, refs []HelmReleaseRef) (map[string]HelmReleaseStatus, error)
- func RunChecks(ctx context.Context, checks []Check) (map[string]Result, error)
- type Check
- func CertManagerAdmissionCheck(kubeContext, kubeconfig string, required bool) Check
- func ConfigMapDataCheck(kubeContext, kubeconfig, namespace, name, dataKey string, required bool) Check
- func HelmReleaseCheck(kubeContext, kubeconfig string, ref HelmReleaseRef, required bool) Check
- func LocalIngressProxyCheck(localIngressURL func() (string, error), required bool) Check
- func LocalStartChecks(opts LocalStartOptions) []Check
- func WorkloadCheck(kubeContext, kubeconfig, namespace, resource, name string, required bool) Check
- type HelmReleaseCondition
- type HelmReleaseRef
- type HelmReleaseStatus
- type LocalStartOptions
- type Result
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelmReleaseReadyStatus ¶
func HelmReleaseReadyStatus(conditions []HelmReleaseCondition) (bool, string, string)
HelmReleaseReadyStatus converts Flux HelmRelease Ready conditions into a compact readiness tuple.
func ReadHelmReleaseStatuses ¶
func ReadHelmReleaseStatuses(ctx context.Context, kubeContext, kubeconfig string, refs []HelmReleaseRef) (map[string]HelmReleaseStatus, error)
ReadHelmReleaseStatuses reads Flux HelmRelease statuses once.
Types ¶
type Check ¶
type Check struct {
Key string
Name string
Kind string
Required bool
DependsOn []string
Expected time.Duration
Timeout time.Duration
Run func(context.Context) Result
}
Check is a reusable cluster health check.
func CertManagerAdmissionCheck ¶
CertManagerAdmissionCheck returns a health check that proves cert-manager's Certificate admission webhook is reachable from kube-apiserver.
func ConfigMapDataCheck ¶
func ConfigMapDataCheck(kubeContext, kubeconfig, namespace, name, dataKey string, required bool) Check
ConfigMapDataCheck returns a health check for a required ConfigMap data key.
func HelmReleaseCheck ¶
func HelmReleaseCheck(kubeContext, kubeconfig string, ref HelmReleaseRef, required bool) Check
HelmReleaseCheck returns a health check for a Flux HelmRelease Ready condition.
func LocalIngressProxyCheck ¶
LocalIngressProxyCheck verifies that the local ingress URL is reachable after Traefik is expected to be running. Any HTTP response proves the proxy path is accepting browser traffic; connection failures keep the check pending.
func LocalStartChecks ¶
func LocalStartChecks(opts LocalStartOptions) []Check
LocalStartChecks returns seed-specific local-start post-API health checks.
func WorkloadCheck ¶
WorkloadCheck returns a health check for a workload's Kubernetes readiness.
type HelmReleaseCondition ¶
type HelmReleaseCondition struct {
Type string `json:"type"`
Status string `json:"status"`
Reason string `json:"reason"`
Message string `json:"message"`
}
HelmReleaseCondition is one Flux HelmRelease condition.
type HelmReleaseRef ¶
HelmReleaseRef identifies one Flux HelmRelease to observe.
type HelmReleaseStatus ¶
type HelmReleaseStatus struct {
Ref HelmReleaseRef
Exists bool
Ready bool
Status string
Message string
}
HelmReleaseStatus is the current observed status of one HelmRelease.
type LocalStartOptions ¶
type LocalStartOptions struct {
SeedName string
KubeContext string
Kubeconfig string
LocalIngressURL func() (string, error)
}
LocalStartOptions configures post-API health checks for podplane local start.