1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/serverless-functions-secrets-configmaps-interactively-specialized.adoc
2023-10-30 10:13:25 -04:00

52 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/functions/serverless-functions-accessing-secrets-configmaps.adoc
:_mod-docs-content-type: REFERENCE
[id="serverless-functions-secrets-configmaps-interactively-specialized_{context}"]
= Modifying function access to secrets and config maps interactively by using specialized commands
Every time you run the `kn func config` utility, you need to navigate the entire dialogue to select the operation you need, as shown in the previous section. To save steps, you can directly execute a specific operation by running a more specific form of the `kn func config` command:
* To list configured environment variables:
+
[source,terminal]
----
$ kn func config envs [-p <function-project-path>]
----
* To add environment variables to the function configuration:
+
[source,terminal]
----
$ kn func config envs add [-p <function-project-path>]
----
* To remove environment variables from the function configuration:
+
[source,terminal]
----
$ kn func config envs remove [-p <function-project-path>]
----
* To list configured volumes:
+
[source,terminal]
----
$ kn func config volumes [-p <function-project-path>]
----
* To add a volume to the function configuration:
+
[source,terminal]
----
$ kn func config volumes add [-p <function-project-path>]
----
* To remove a volume from the function configuration:
+
[source,terminal]
----
$ kn func config volumes remove [-p <function-project-path>]
----