File tree Expand file tree Collapse file tree 15 files changed +245
-95
lines changed
.github/workflows/tests_data Expand file tree Collapse file tree 15 files changed +245
-95
lines changed Original file line number Diff line number Diff line change 10
10
deploymentName : sample-deployment
11
11
secretName : lightrun-secrets
12
12
serverHostname : dogfood.internal.lightrun.com
13
+ useSecretAsEnvVars : true
13
14
agentEnvVarName : JAVA_TOOL_OPTIONS
14
15
agentConfig :
15
16
max_log_cpu_cost : " 2"
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ type LightrunJavaAgentSpec struct {
90
90
// +optional
91
91
// Agent name for registration to the server
92
92
AgentName string `json:"agentName,omitempty"`
93
+
94
+ // UseSecretAsEnvVars determines whether to use secret values as environment variables (true) or as mounted files (false)
95
+ // +kubebuilder:default=true
96
+ UseSecretAsEnvVars bool `json:"useSecretAsEnvVars,omitempty"`
93
97
}
94
98
95
99
// LightrunJavaAgentStatus defines the observed state of LightrunJavaAgent
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.0.1
18
+ version : 0.0.2
Original file line number Diff line number Diff line change 18
18
secretName : {{ .name }}-secret
19
19
{{- end }}
20
20
serverHostname : {{ .serverHostname }}
21
+ useSecretAsEnvVars : {{ .useSecretAsEnvVars | default true }}
21
22
agentEnvVarName : {{ .agentEnvVarName | default "JAVA_TOOL_OPTIONS" }}
22
23
{{- if .agentConfig }}
23
24
agentConfig : {{ toYaml .agentConfig | nindent 4 }}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ javaAgents: []
15
15
# containerSelector:
16
16
# - my-container-1
17
17
# serverHostname: 'lightrun.example.com'
18
+ # useSecretAsEnvVars: true
18
19
# initContainer:
19
20
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
20
21
# agentPoolCredentials:
@@ -34,6 +35,7 @@ javaAgents: []
34
35
# containerSelector:
35
36
# - my-container-2
36
37
# serverHostname: 'lightrun.example.com'
38
+ # useSecretAsEnvVars: true
37
39
# agentPoolCredentials:
38
40
# existingSecret: "my-existing-secret"
39
41
# apiKey: ""
@@ -57,6 +59,7 @@ javaAgents: []
57
59
# containerSelector:
58
60
# - my-container-1
59
61
# serverHostname: 'lightrun.example.com'
62
+ # useSecretAsEnvVars: true
60
63
# agentEnvVarName: '_JAVA_OPTIONS'
61
64
# agentConfig:
62
65
# max_log_cpu_cost: "2"
@@ -84,6 +87,7 @@ javaAgents: []
84
87
# containerSelector:
85
88
# - my-container-2
86
89
# serverHostname: 'lightrun.example.com'
90
+ # useSecretAsEnvVars: true
87
91
# agentEnvVarName: 'JAVA_OPTS'
88
92
# agentConfig:
89
93
# max_log_cpu_cost: "2"
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ spec:
119
119
Lightrun server hostname that will be used for downloading an agent
120
120
Key and company id in the secret has to be taken from this server as well
121
121
type : string
122
+ useSecretAsEnvVars :
123
+ default : true
124
+ description : UseSecretAsEnvVars determines whether to use secret values
125
+ as environment variables (true) or as mounted files (false)
126
+ type : boolean
122
127
workloadName :
123
128
description : Name of the Workload that will be patched. workload can
124
129
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ spec:
120
120
Lightrun server hostname that will be used for downloading an agent
121
121
Key and company id in the secret has to be taken from this server as well
122
122
type : string
123
+ useSecretAsEnvVars :
124
+ default : true
125
+ description : UseSecretAsEnvVars determines whether to use secret values
126
+ as environment variables (true) or as mounted files (false)
127
+ type : boolean
123
128
workloadName :
124
129
description : Name of the Workload that will be patched. workload can
125
130
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
Original file line number Diff line number Diff line change 11
11
workloadType : Deployment
12
12
secretName : lightrun-secrets
13
13
serverHostname : <lightrun_server> # for saas it will be app.lightrun.com
14
+ useSecretAsEnvVars : true
14
15
agentEnvVarName : JAVA_TOOL_OPTIONS
15
16
agentConfig :
16
17
max_log_cpu_cost : " 2"
Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ spec:
131
131
Lightrun server hostname that will be used for downloading an agent
132
132
Key and company id in the secret has to be taken from this server as well
133
133
type : string
134
+ useSecretAsEnvVars :
135
+ default : true
136
+ description : UseSecretAsEnvVars determines whether to use secret values
137
+ as environment variables (true) or as mounted files (false)
138
+ type : boolean
134
139
workloadName :
135
140
description : Name of the Workload that will be patched. workload can
136
141
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
Original file line number Diff line number Diff line change 49
49
# If container not mentioned here it will be not patched
50
50
containerSelector :
51
51
- app
52
+ # UseSecretAsEnvVars determines whether to use secret values as environment variables (true) or as mounted files (false)
53
+ # Default is true for backward compatibility
54
+ useSecretAsEnvVars : true
52
55
---
53
56
apiVersion : v1
54
57
metadata :
Original file line number Diff line number Diff line change 59
59
- latest
60
60
# Agent name. If not provided, pod name will be used
61
61
# agentName: "operator-test-agent"
62
+
63
+ # UseSecretAsEnvVars determines whether to use secret values as environment variables (true) or as mounted files (false)
64
+ # Default is true for backward compatibility
65
+ useSecretAsEnvVars : true
Original file line number Diff line number Diff line change @@ -121,6 +121,11 @@ spec:
121
121
Lightrun server hostname that will be used for downloading an agent
122
122
Key and company id in the secret has to be taken from this server as well
123
123
type : string
124
+ useSecretAsEnvVars :
125
+ default : true
126
+ description : UseSecretAsEnvVars determines whether to use secret values
127
+ as environment variables (true) or as mounted files (false)
128
+ type : boolean
124
129
workloadName :
125
130
description : Name of the Workload that will be patched. workload can
126
131
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
You can’t perform that action at this time.
0 commit comments