File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
crates/stackable-operator/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,10 @@ impl ProductConfigPath {
306
306
#[ derive( clap:: Parser , Debug , PartialEq , Eq ) ]
307
307
pub struct OperatorEnvironmentOptions {
308
308
/// The namespace the operator is running in, usually `stackable-operators`.
309
+ ///
310
+ /// Note that when running the operator on Kubernetes we recommend to use the
311
+ /// [downward API](https://kubernetes.io/docs/concepts/workloads/pods/downward-api/)
312
+ /// to let Kubernetes mount the namespace as the `OPERATOR_NAMESPACE` env variable.
309
313
#[ arg( long, env) ]
310
314
pub operator_namespace : String ,
311
315
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ pub struct KubernetesClusterInfoOptions {
23
23
pub kubernetes_cluster_domain : Option < DomainName > ,
24
24
25
25
/// Name of the Kubernetes Node that the operator is running on.
26
+ ///
27
+ /// Note that when running the operator on Kubernetes we recommend to use the
28
+ /// [downward API](https://kubernetes.io/docs/concepts/workloads/pods/downward-api/)
29
+ /// to let Kubernetes mount the namespace as the `KUBERNETES_NODE_NAME` env variable.
26
30
#[ arg( long, env) ]
27
31
pub kubernetes_node_name : String ,
28
32
}
You can’t perform that action at this time.
0 commit comments