Documentation
¶
Overview ¶
Package stepsecret resolves the Secrets a workflow step names, which it reads as the controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTLS ¶
ApplyTLS configures cfg from a step's TLS Secret data: ca.crt for the server's trust, and client.crt with client.key for a client certificate. A value is the PEM itself, as a kubernetes.io/tls Secret holds it, or the PEM base64-encoded once more. A Secret holding none of the three is an error.
func Key ¶
func Key(ctx context.Context, cli client.Client, ref, namespace, stepNamespace string) (client.ObjectKey, error)
Key resolves a step's reference to a Secret, as RefKey parses it, defaulting to stepNamespace. A step reads Secrets as the controller, so one outside stepNamespace is allowed only when the step runs for a user (the Application's, with authentication on) who may get it there; otherwise the reference is refused, as it is when the step has no namespace.
Types ¶
This section is empty.