The PushSecret is namespaced and it describes what data should be pushed to the secret provider.
spec.selector.spec.data.Below is an example of the PushSecret in use.
{% include 'full-pushsecret.yaml' %}
The result of the created Secret object will look like:
# The destination secret that will be templated and pushed by PushSecret.
apiVersion: v1
kind: Secret
metadata:
name: destination-secret
stringData:
best-pokemon-dst: "PIKACHU is the really best!"
When the controller reconciles the PushSecret it will use the spec.template as a blueprint to construct a new property.
You can use golang templates to define the blueprint and use template functions to transform the defined properties.
You can also pull in ConfigMaps that contain golang-template data using templateFrom.
See advanced templating for details.
