API reference
CredentialConfig
custos.helmetica.io/v1, namespaced
CredentialConfig is the thing custos keeps.
Spec
| Path | Type | Default | Description |
|---|---|---|---|
|
object |
Credentials holds the value mapping. A credential config with none is legal and produces an empty Secret, which is how a chart can declare the Secret before it knows what goes in it. |
|
|
map[string]object |
ValueMapping is keyed by the Secret key to produce. Consumers read these names, so they are the chart author’s to choose, not derived from wherever the value happened to come from. |
|
|
string |
|
APIVersion is the group and version of an objectRef’s target. It defaults to the core group, since most references are to a Secret or a ConfigMap. |
|
[]string |
Command’s arguments are rendered against the metadata context. |
|
|
string |
Container is which one to run in. Left empty, the pod’s kubectl.kubernetes.io/default-container annotation decides, and failing that its first container. |
|
|
string |
Key reads one entry out of a Secret’s or ConfigMap’s data. A Secret’s value is decoded. |
|
|
string |
Kind is the kind of an objectRef’s target. |
|
|
string |
Name is the object’s name. It is rendered against the metadata context first, so "\{\{.ClaimName}}-app" works. |
|
|
string |
Path is a JSONPath, used by objectRef for anything that is not a Secret or ConfigMap data key, and by claimParam against the claim. |
|
|
object |
PodSelector picks the pod an exec source runs in. It is a selector rather than a name because pod names are generated and change on every restart. |
|
|
[]object |
matchExpressions is a list of label selector requirements. The requirements are ANDed. |
|
|
string |
key is the label key that the selector applies to. |
|
|
string |
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
|
|
[]string |
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
|
|
map[string]string |
matchLabels is a map of \{key,value} pairs. A single \{key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
|
|
string |
PodWait is how long to wait for a pod matching PodSelector to become ready before failing the gather. It exists because a service that is slow to start is the ordinary case, not a fault, and waiting inside one attempt is cheaper than failing and being retried. |
|
|
enum: const, objectRef, claimParam, exec, template |
Source decides which of the fields below custos reads. There is no default: guessing from which fields are set would turn a typo into a different lookup. |
|
|
string |
Value is the literal for a const source, or the template body for a template source. |
|
|
boolean |
Suspend pauses reconciliation. A suspended credential config holds at Pending and custos leaves everything it owns untouched, which is the escape hatch when the controller and the cluster disagree. |
|
|
object |
Target shapes the Secret’s name. Left empty, custos derives the whole name, see TargetSpec.Prefix. |
|
|
string |
Prefix starts the Secret’s name. The name is always the prefix plus a hash of the claim’s group and kind, so a redis and a postgres claim sharing a name cannot fight over one Secret, and no chart can pick a name that clashes. Left empty, the prefix is the claim name, or the CredentialConfig’s own name when there is no claim. The name in use is recorded in status.secretName. |
Status
| Path | Type | Default | Description |
|---|---|---|---|
|
string |
GatherJobName is the Job custos is currently waiting on. It is recorded so an operator chasing a stuck credential config has somewhere to read logs. |
|
|
string |
GatheredHash is the hash of the plan the gathered values in hand came from. A later reconcile computing the same hash knows it can skip the Job, which is what keeps an exec that provisions from running twice. |
|
|
string |
Message explains a Pending or Failed phase. |
|
|
integer |
ObservedGeneration is the spec generation the phase was computed from. |
|
|
string |
||
|
string |
SecretName is the Secret custos wrote. |
|
|
string |
SecretNamespace is where that Secret landed. It is reported because the placement rule is not something a user should have to re-derive. |