Skip to content

Commit ea00e24

Browse files
add docs for k8s kubeconfig, defaultNamespace (#3803)
* add docs for k8s kubeconfig, defaultNamespace Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> * address review comments. Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> --------- Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
1 parent af4b793 commit ea00e24

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

daprdocs/content/en/reference/components-reference/supported-bindings/kubernetes-binding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ spec:
3636
| `namespace` | Y | Input | The Kubernetes namespace to read events from | `"default"` |
3737
| `resyncPeriodInSec` | N | Input | The period of time to refresh event list from Kubernetes API server. Defaults to `"10"` | `"15"`
3838
| `direction` | N | Input | The direction of the binding | `"input"`
39+
| `kubeconfigPath` | N | Input | The path to the kubeconfig file. If not specified, the binding uses the default in-cluster config value | `"/path/to/kubeconfig"`
3940

4041
## Binding support
4142

daprdocs/content/en/reference/components-reference/supported-cryptography/kubernetes-secrets.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ The above example uses secrets as plain strings. It is recommended to use a secr
3333

3434
## Spec metadata fields
3535

36-
For the Kubernetes secret store component, there are no metadata attributes.
36+
| Field | Required | Details | Example |
37+
|--------------------|:--------:|------------|-----|---------|
38+
| `defaultNamespace` | N | Default namespace to retrieve secrets from. If unset, the namespace must be specified for each key, as `namespace/secretName/key` | `"default-ns"` |
39+
| `kubeconfigPath` | N | The path to the kubeconfig file. If not specified, the component uses the default in-cluster config value | `"/path/to/kubeconfig"`
40+
3741

3842
## Related links
3943
[Cryptography building block]({{< ref cryptography >}})

daprdocs/content/en/reference/components-reference/supported-secret-stores/kubernetes-secret-store.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ spec:
3232
```
3333

3434
## Spec metadata fields
35-
For the Kubernetes secret store component, there are no metadata attributes.
35+
36+
| Field | Required | Details | Example |
37+
|--------------------|:--------:|------------|-----|---------|
38+
| `defaultNamespace` | N | Default namespace to retrieve secrets from. If unset, the `namespace` must be specified in each request metadata or via environment variable `NAMESPACE` | `"default-ns"` |
39+
| `kubeconfigPath` | N | The path to the kubeconfig file. If not specified, the store uses the default in-cluster config value | `"/path/to/kubeconfig"`
40+
3641

3742
## Optional per-request metadata properties
3843

0 commit comments

Comments
 (0)