Skip to content

Commit 544b149

Browse files
author
Leonid Podolinskiy
authored
upd doc about valueFrom env limitation (#30)
1 parent 938c596 commit 544b149

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ For the sake of simplicity, we are keeping the convention of the same version fo
117117

118118
## Limitations
119119

120+
- Operator can only patch environment variable that configured as a key/value pair
121+
```
122+
env:
123+
- name: JAVA_TOOL_OPTIONS
124+
value: "some initital value"
125+
```
126+
if value mapped from the configMap or secret using `valueFrom`, operator will fail to update the deployment with the following error:
127+
```
128+
'Deployment.apps "<deployment name>" is invalid: spec.template.spec.containers[0].env[31].valueFrom:
129+
Invalid value: "": may not be specified when `value` is not empty'
130+
```
131+
120132
- If an application has [JDWR](https://en.wikipedia.org/wiki/Java_Debug_Wire_Protocol) enabled, it will cause a conflict with the Lightrun agent installed by the Lightrun K8s operator.
121133
- You must install the correct init container for your application’s container platform. For example, _lightruncom/k8s-operator-init-java-agent-`linux`:1.7.0-init.0_.
122134
#### Supported Platforms

0 commit comments

Comments
 (0)