Expand description
Standard Kubernetes status condition reasons for Bindy resources.
This module defines constants for condition reasons following Kubernetes conventions. Reasons are programmatic identifiers in CamelCase that explain why a condition has a particular status.
§Condition Hierarchy
Bindy uses a hierarchical status tracking system where each resource tracks its children:
ClusterBind9Provider→ tracksBind9ClusterresourcesBind9Cluster→ tracksBind9InstanceresourcesBind9Instance→ tracksPodreplicas
§Condition Types
§Primary Condition
All resources have a single encompassing type: Ready condition that indicates
the overall health of the resource.
§Child Conditions
Resources also track individual child resource status with indexed conditions:
Bind9Cluster: conditions likeBind9Instance-0,Bind9Instance-1, etc.Bind9Instance: conditions likePod-0,Pod-1, etc.
§Example Status
status:
conditions:
- type: Ready
status: "True"
reason: AllReady
message: "All 3 instances are ready"
- type: Bind9Instance-0
status: "True"
reason: AllReady
message: "Instance my-cluster-primary-0 is ready (2/2 pods)"
- type: Bind9Instance-1
status: "True"
reason: AllReady
message: "Instance my-cluster-primary-1 is ready (2/2 pods)"
- type: Bind9Instance-2
status: "False"
reason: PartiallyReady
message: "Instance my-cluster-secondary-0 is progressing (1/2 pods)"Constants§
- CONDITION_
TYPE_ BIND9_ INSTANCE_ PREFIX - Condition type prefix for tracking individual
Bind9Instancechildren. - CONDITION_
TYPE_ POD_ PREFIX - Condition type prefix for tracking individual
Podchildren. - CONDITION_
TYPE_ READY - Primary condition type indicating overall resource readiness.
- REASON_
ALL_ READY - All child resources are ready and healthy.
- REASON_
BINDCAR_ AUTH_ FAILED - Bindcar API authentication or authorization failed.
- REASON_
BINDCAR_ BAD_ REQUEST - Bindcar API returned an invalid or malformed request error.
- REASON_
BINDCAR_ INTERNAL_ ERROR - Bindcar API encountered an internal server error.
- REASON_
BINDCAR_ NOT_ IMPLEMENTED - Bindcar API feature not implemented.
- REASON_
BINDCAR_ UNREACHABLE - Cannot connect to Bindcar API container.
- REASON_
CLUSTERS_ PROGRESSING - Some namespace-scoped
Bind9Clusterresources are not ready. - REASON_
CLUSTERS_ READY - All namespace-scoped
Bind9Clusterresources are ready. - REASON_
CONFIGURATION_ INVALID - Configuration validation failed.
- REASON_
CONFIGURATION_ VALID - Configuration has been validated successfully.
- REASON_
GATEWAY_ ERROR - Gateway error reaching Bindcar pod.
- REASON_
INSTANCES_ CREATED - All managed
Bind9Instanceresources have been created. - REASON_
INSTANCES_ PENDING - Waiting for instances to be created or updated.
- REASON_
INSTANCES_ SCALING - Scaling instances up or down to match desired replica count.
- REASON_
MINIMUM_ REPLICAS_ AVAILABLE - Minimum number of replicas are available (but not all).
- REASON_
NOT_ READY - No child resources are ready.
- REASON_
NO_ CHILDREN - No child resources found (expected children missing).
- REASON_
PARTIALLY_ READY - Some but not all child resources are ready.
- REASON_
PODS_ CRASHING - One or more pods are crashing or in
CrashLoopBackOff. - REASON_
PODS_ PENDING - Deployment is waiting for pods to be scheduled.
- REASON_
PROGRESSING - Resources are being created or updated.
- REASON_
PROGRESS_ DEADLINE_ EXCEEDED - Deployment has exceeded its progress deadline.
- REASON_
READY - Resource is ready and operational.
- REASON_
RNDC_ AUTHENTICATION_ FAILED - Failed to authenticate with RNDC (Remote Name Daemon Control).
- REASON_
UPSTREAM_ UNREACHABLE - Cannot reach upstream or external services.
- REASON_
ZONE_ NOT_ FOUND - Requested zone or resource not found in BIND9.
- REASON_
ZONE_ TRANSFER_ COMPLETE - Secondary instance successfully transferred zones from primary.
- REASON_
ZONE_ TRANSFER_ FAILED - Zone transfer failed or is in progress.
Functions§
- bind9_
instance_ condition_ type - Create a condition type for a specific
Bind9Instancechild. - extract_
child_ index - Extract the index from a child condition type.
- pod_
condition_ type - Create a condition type for a specific Pod child.