File tree Expand file tree Collapse file tree 14 files changed +110
-265
lines changed
.github/workflows/tests_data Expand file tree Collapse file tree 14 files changed +110
-265
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
- useSecretsAsMountedFiles : false
14
13
agentEnvVarName : JAVA_TOOL_OPTIONS
15
14
agentConfig :
16
15
max_log_cpu_cost : " 2"
Original file line number Diff line number Diff line change @@ -93,10 +93,6 @@ type LightrunJavaAgentSpec struct {
93
93
// +optional
94
94
// Agent name for registration to the server
95
95
AgentName string `json:"agentName,omitempty"`
96
-
97
- // UseSecretsAsMountedFiles determines whether to use secret values as mounted files (true) or as environment variables (false)
98
- // +kubebuilder:default=false
99
- UseSecretsAsMountedFiles bool `json:"useSecretsAsMountedFiles,omitempty"`
100
96
}
101
97
102
98
// LightrunJavaAgentStatus defines the observed state of LightrunJavaAgent
Original file line number Diff line number Diff line change 29
29
secretName : {{ .name }}-secret
30
30
{{- end }}
31
31
serverHostname : {{ .serverHostname }}
32
- {{- if .useSecretsAsMountedFiles }}
33
- useSecretsAsMountedFiles : {{ .useSecretsAsMountedFiles | default false }}
34
- {{- end }}
35
32
agentEnvVarName : {{ .agentEnvVarName | default "JAVA_TOOL_OPTIONS" }}
36
33
{{- if .agentConfig }}
37
34
agentConfig : {{ toYaml .agentConfig | nindent 4 }}
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ javaAgents: []
19
19
# containerSelector:
20
20
# - my-container-1
21
21
# serverHostname: 'lightrun.example.com'
22
- # useSecretsAsMountedFiles: false
23
22
# initContainer:
24
23
# image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
25
24
# imagePullPolicy: "IfNotPresent"
@@ -43,7 +42,6 @@ javaAgents: []
43
42
# containerSelector:
44
43
# - my-container-2
45
44
# serverHostname: 'lightrun.example.com'
46
- # useSecretsAsMountedFiles: false
47
45
# agentPoolCredentials:
48
46
# existingSecret: "my-existing-secret"
49
47
# apiKey: ""
@@ -71,7 +69,6 @@ javaAgents: []
71
69
# containerSelector:
72
70
# - my-container-1
73
71
# serverHostname: 'lightrun.example.com'
74
- # useSecretsAsMountedFiles: false
75
72
# agentEnvVarName: '_JAVA_OPTIONS'
76
73
# agentConfig:
77
74
# max_log_cpu_cost: "2"
@@ -103,7 +100,6 @@ javaAgents: []
103
100
# containerSelector:
104
101
# - my-container-2
105
102
# serverHostname: 'lightrun.example.com'
106
- # useSecretsAsMountedFiles: false
107
103
# agentEnvVarName: 'JAVA_OPTS'
108
104
# agentConfig:
109
105
# max_log_cpu_cost: "2"
Original file line number Diff line number Diff line change @@ -123,11 +123,6 @@ spec:
123
123
Lightrun server hostname that will be used for downloading an agent
124
124
Key and company id in the secret has to be taken from this server as well
125
125
type : string
126
- useSecretsAsMountedFiles :
127
- default : false
128
- description : UseSecretsAsMountedFiles determines whether to use secret
129
- values as mounted files (true) or as environment variables (false)
130
- type : boolean
131
126
workloadName :
132
127
description : Name of the Workload that will be patched. workload can
133
128
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
Original file line number Diff line number Diff line change @@ -124,11 +124,6 @@ spec:
124
124
Lightrun server hostname that will be used for downloading an agent
125
125
Key and company id in the secret has to be taken from this server as well
126
126
type : string
127
- useSecretsAsMountedFiles :
128
- default : false
129
- description : UseSecretsAsMountedFiles determines whether to use secret
130
- values as mounted files (true) or as environment variables (false)
131
- type : boolean
132
127
workloadName :
133
128
description : Name of the Workload that will be patched. workload can
134
129
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
- useSecretsAsMountedFiles : false
15
14
agentEnvVarName : JAVA_TOOL_OPTIONS
16
15
agentConfig :
17
16
max_log_cpu_cost : " 2"
Original file line number Diff line number Diff line change @@ -135,11 +135,6 @@ spec:
135
135
Lightrun server hostname that will be used for downloading an agent
136
136
Key and company id in the secret has to be taken from this server as well
137
137
type : string
138
- useSecretsAsMountedFiles :
139
- default : false
140
- description : UseSecretsAsMountedFiles determines whether to use secret
141
- values as mounted files (true) or as environment variables (false)
142
- type : boolean
143
138
workloadName :
144
139
description : Name of the Workload that will be patched. workload can
145
140
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
Original file line number Diff line number Diff line change 51
51
# If container not mentioned here it will be not patched
52
52
containerSelector :
53
53
- app
54
- # useSecretsAsMountedFiles determines whether to use secret values as environment variables (false) or as mounted files (true)
55
- # Default is false for backward compatibility
56
- useSecretsAsMountedFiles : false
57
54
---
58
55
apiVersion : v1
59
56
metadata :
Original file line number Diff line number Diff line change 61
61
- latest
62
62
# Agent name. If not provided, pod name will be used
63
63
# agentName: "operator-test-agent"
64
-
65
- # UseSecretsAsMountedFiles determines whether to use secret values as mounted files (true) or as environment variables (false)
66
- # Default is false for better security practices
67
- useSecretsAsMountedFiles : false
Original file line number Diff line number Diff line change @@ -125,11 +125,6 @@ spec:
125
125
Lightrun server hostname that will be used for downloading an agent
126
126
Key and company id in the secret has to be taken from this server as well
127
127
type : string
128
- useSecretsAsMountedFiles :
129
- default : false
130
- description : UseSecretsAsMountedFiles determines whether to use secret
131
- values as mounted files (true) or as environment variables (false)
132
- type : boolean
133
128
workloadName :
134
129
description : Name of the Workload that will be patched. workload can
135
130
be either Deployment or StatefulSet e.g. my-deployment, my-statefulset
You can’t perform that action at this time.
0 commit comments