Skip to content

Commit 6685eba

Browse files
docs: Fix the k8sSearch example (#567)
1 parent 95af4ac commit 6685eba

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/modules/secret-operator/pages/secretclass.adoc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,12 @@ Please note that the contents in the volume will not update when the Secret cont
362362

363363
[source,yaml]
364364
----
365-
apiVersion: apps/v1
365+
---
366+
apiVersion: v1
366367
kind: Pod
367368
metadata:
368369
name: my-app
369-
labels:
370-
app.kubernetes.io/name: my-app
371370
spec:
372-
selector:
373-
matchLabels:
374-
app.kubernetes.io/name: my-app
375371
containers:
376372
#... skipped for brevity
377373
volumeMounts:
@@ -409,15 +405,15 @@ metadata:
409405
name: my-admin-credentials
410406
labels:
411407
secrets.stackable.tech/class: admin-credentials-class
408+
secrets.stackable.tech/pod: my-app
412409
stringData:
413410
user: admin
414411
password: secret
415412
----
416413

417414

418415
xref:scope.adoc[Scopes] are translated into additional label filters of the form `secrets.stackable.tech/$SCOPE: $SCOPE_VALUE`.
419-
For example, a `Pod` named `foo` mounting a `k8sSearch` secret with the xref:scope.adoc#pod[`pod`] scope would add the label filter
420-
`secrets.stackable.tech/pod: foo`.
416+
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`.
421417

422418
==== Reference
423419

0 commit comments

Comments
 (0)