v0.2.8
Changes
A new struct tag (notFoundPolicy) can now be set on ConfigMap(Key)Reference and Secret(Key)Reference fields in the component's spec, such as:
SecretRef component.SecretReference `json:"secretRef" notFoundPolicy:"ignoreOnDeletion"`By default, the absence of a referenced config map or secret would put the component into an error/retry state. However, if the component is in deletion (has a metadata.deletionTimestamp set), and if the affected reference has that struct tag set with value ignoreOnDeletion, then no error will happen, and the deletion can proceed, even without the referenced config map or secret being loaded. Note that in that case, the skipped reference must not be dereferenced (by calling Data() resp. Value()) under any circumstances; any attempt to do so will lead to a panic.