Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/modules/secret-operator/pages/secretclass.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,12 @@ Please note that the contents in the volume will not update when the Secret cont

[source,yaml]
----
apiVersion: apps/v1
---
apiVersion: v1
kind: Pod
metadata:
name: my-app
labels:
app.kubernetes.io/name: my-app
spec:
selector:
matchLabels:
app.kubernetes.io/name: my-app
containers:
#... skipped for brevity
volumeMounts:
Expand Down Expand Up @@ -409,15 +405,15 @@ metadata:
name: my-admin-credentials
labels:
secrets.stackable.tech/class: admin-credentials-class
secrets.stackable.tech/pod: my-app
stringData:
user: admin
password: secret
----


xref:scope.adoc[Scopes] are translated into additional label filters of the form `secrets.stackable.tech/$SCOPE: $SCOPE_VALUE`.
For example, a `Pod` named `foo` mounting a `k8sSearch` secret with the xref:scope.adoc#pod[`pod`] scope would add the label filter
`secrets.stackable.tech/pod: foo`.
For example, a Pod named `foo` mounting a `k8sSearch` Secret with the xref:scope.adoc#pod[`pod`] scope would add the label filter `secrets.stackable.tech/pod: foo`.

==== Reference

Expand Down
Loading