You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`nodeSelector`| Node selector for pod scheduling |`{}`|
50
+
|`tolerations`| Tolerations for pod scheduling on tainted nodes |`[]`|
48
51
49
52
`(1)` You can retrieve the cluster name by running `kubectl config get-clusters` or `kubectl config current-context`. The cluster name should be unique across all clusters.
50
53
51
-
`(2)` Refer to [Jit documentation](https://docs.jit.io/docs/managing-users#generating-api-tokens) for more information on how to get the client ID and secret.
54
+
`(2)`Authentication: Provide either `clientId` + `clientSecret` OR `existingSecret`. Refer to [Jit documentation](https://docs.jit.io/docs/managing-users#generating-api-tokens) for more information on how to get the client ID and secret.
{{- $errors= append $errors"Cannot specify both direct credentials (clientId/clientSecret) and existingSecret. Choose one authentication method." -}}
15
+
{{- end -}}
16
+
{{- elseif.Values.jit.existingSecret -}}
17
+
{{- /* Valid: using existingSecret */ -}}
18
+
{{- else -}}
19
+
{{- $errors= append $errors"Jit authentication requires either: 1) Both 'clientId' and 'clientSecret' for direct authentication, or 2) 'existingSecret' to reference an existing Kubernetes secret" -}}
20
+
{{- end -}}
21
+
{{- else -}}
22
+
{{- $errors= append $errors"Jit configuration is required. Please provide either clientId/clientSecret or existingSecret" -}}
Copy file name to clipboardExpand all lines: charts/jit-k8s-agent/values.schema.json
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,22 @@
18
18
"properties": {
19
19
"clientId": {
20
20
"type": "string",
21
-
"minLength": 1,
22
-
"description": "The client ID for Jit. This field is required."
21
+
"description": "The client ID for Jit. This field is required when not using an existing secret."
23
22
},
24
23
"clientSecret": {
25
24
"type": "string",
26
-
"minLength": 1,
27
-
"description": "The client secret for Jit. This field is required."
25
+
"description": "The client secret for Jit. This field is required when not using an existing secret."
26
+
},
27
+
"existingSecret": {
28
+
"type": "string",
29
+
"description": "The name of an existing secret to use for Jit credentials. If provided, clientId and clientSecret will be ignored."
30
+
},
31
+
"apiUrl": {
32
+
"type": "string",
33
+
"description": "The Jit API URL"
28
34
}
29
35
},
30
-
"required": ["clientId", "clientSecret"]
36
+
"description": "Jit authentication requires either: 1) Both 'clientId' and 'clientSecret' for direct authentication, or 2) 'existingSecret' to reference an existing Kubernetes secret containing the credentials."
0 commit comments