Documentation
¶
Overview ¶
Package crdcheck lets the agent and the operator refuse to start against CRDs that are older than they are. helm does not update the crds/ directory, so a release upgraded without `kubectl apply` leaves the API server pruning the new fields; for the enrollment epoch that means a token burnt for nothing. The check reads the published OpenAPI schema of the laboratory group (no extra permission: discovery is open to every authenticated client) and looks for the fields the binary needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Required = []struct{ Field, On string }{
{"certificateEpoch", "Tenant.status"},
}
Required are the schema fields that came with this version (a JSON property name each, and the object it belongs to for the message).
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.