From f6946a2cdeb3cb1d21c7eb9b3d14556c44349c7e Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Mon, 3 Mar 2025 15:51:19 +0100 Subject: [PATCH] docs: Fix the k8sSearch example --- docs/modules/secret-operator/pages/secretclass.adoc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/modules/secret-operator/pages/secretclass.adoc b/docs/modules/secret-operator/pages/secretclass.adoc index 617ddcce..0b20bbb7 100644 --- a/docs/modules/secret-operator/pages/secretclass.adoc +++ b/docs/modules/secret-operator/pages/secretclass.adoc @@ -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: @@ -409,6 +405,7 @@ metadata: name: my-admin-credentials labels: secrets.stackable.tech/class: admin-credentials-class + secrets.stackable.tech/pod: my-app stringData: user: admin password: secret @@ -416,8 +413,7 @@ stringData: 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