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
Copy file name to clipboardExpand all lines: oci_lens_terraform/schema.yaml
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,21 @@ variableGroups:
24
24
- ingress_domain
25
25
- create_iam_policy
26
26
- policy_name
27
+
- authorized_compartments
28
+
- title: "Grafana Configuration"
29
+
visible: true
30
+
variables:
31
+
- use_external_grafana
32
+
- grafana_url
33
+
- grafana_api_token
34
+
- title: "Ingress and Cert-Manager Configuration"
35
+
visible: true
36
+
variables:
37
+
- use_external_ingress
38
+
- ingress_cert_manager_cluster_issuer
39
+
- ingress_class_name
40
+
- ingress_external_namespace
41
+
- ingress_external_service_name
27
42
28
43
variables:
29
44
tenancy_ocid:
@@ -84,6 +99,12 @@ variables:
84
99
and:
85
100
- create_iam_policy
86
101
102
+
authorized_compartments:
103
+
type: string
104
+
title: "Authorized Compartments"
105
+
description: "Compartment OCID to grant IAM policy access. Leave blank to authorize access to the whole tenancy."
106
+
default: ""
107
+
87
108
superuser_username:
88
109
type: string
89
110
title: "Superuser Username"
@@ -110,6 +131,79 @@ variables:
110
131
sensitive: true
111
132
default: "admin123"
112
133
134
+
use_external_grafana:
135
+
type: boolean
136
+
title: "Use External Grafana"
137
+
description: "Use your own Grafana instance instead of deploying one. If enabled, Grafana will not be deployed and you must provide Grafana URL and API token."
138
+
default: false
139
+
140
+
grafana_url:
141
+
type: string
142
+
title: "Grafana URL"
143
+
description: "URL of your existing Grafana instance (e.g., http://grafana-service.namespace.svc.cluster.local:80 or http://your-grafana-domain.com)."
144
+
default: ""
145
+
required: true
146
+
visible:
147
+
and:
148
+
- use_external_grafana
149
+
150
+
grafana_api_token:
151
+
type: string
152
+
title: "Grafana API Token"
153
+
description: "API token for authenticating with your existing Grafana instance. Create one in Grafana under Administration > Users and Access > Service Accounts with admin rights."
154
+
sensitive: true
155
+
default: ""
156
+
required: true
157
+
visible:
158
+
and:
159
+
- use_external_grafana
160
+
161
+
use_external_ingress:
162
+
type: boolean
163
+
title: "Use External Ingress and Cert-Manager"
164
+
description: "Use your own ingress controller and cert-manager instead of deploying them. If enabled, cert-manager and ingress-nginx will not be deployed."
165
+
default: false
166
+
167
+
ingress_cert_manager_cluster_issuer:
168
+
type: string
169
+
title: "Cert-Manager Cluster Issuer"
170
+
description: "Name of your existing cert-manager ClusterIssuer for TLS certificate management."
171
+
default: ""
172
+
required: true
173
+
visible:
174
+
and:
175
+
- use_external_ingress
176
+
177
+
ingress_class_name:
178
+
type: string
179
+
title: "Ingress Class Name"
180
+
description: "Ingress class name for your existing ingress controller."
181
+
default: ""
182
+
required: true
183
+
visible:
184
+
and:
185
+
- use_external_ingress
186
+
187
+
ingress_external_namespace:
188
+
type: string
189
+
title: "External Ingress Namespace"
190
+
description: "Namespace where your existing ingress controller service is deployed."
191
+
default: ""
192
+
required: true
193
+
visible:
194
+
and:
195
+
- use_external_ingress
196
+
197
+
ingress_external_service_name:
198
+
type: string
199
+
title: "External Ingress Service Name"
200
+
description: "Service name of your existing ingress controller."
Copy file name to clipboardExpand all lines: oci_lens_terraform/variables.tf
+55Lines changed: 55 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,12 @@ variable "policy_name" {
32
32
default="lens-backend-workload-policy"
33
33
}
34
34
35
+
variable"authorized_compartments" {
36
+
description="Comma-separated list of compartment OCIDs to grant IAM policy access (e.g., ocid1.compartment.oc1..xxx,ocid1.compartment.oc1..yyy). Leave blank to authorize access to the whole tenancy."
37
+
type=string
38
+
default=""
39
+
}
40
+
35
41
variable"superuser_username" {
36
42
description="Username for OCI GPU Scanner portal and backend API"
37
43
type=string
@@ -62,4 +68,53 @@ variable "ingress_domain" {
62
68
description="Domain for ingress. Leave empty to use nip.io (wildcard DNS service)."
63
69
type=string
64
70
default=""
71
+
}
72
+
73
+
variable"use_external_grafana" {
74
+
description="Use your own Grafana instance instead of deploying one."
75
+
type=bool
76
+
default=false
77
+
}
78
+
79
+
variable"grafana_url" {
80
+
description="URL of your existing Grafana instance."
81
+
type=string
82
+
default=""
83
+
}
84
+
85
+
variable"grafana_api_token" {
86
+
description="API token for authenticating with your existing Grafana instance."
87
+
type=string
88
+
sensitive=true
89
+
default=""
90
+
}
91
+
92
+
variable"use_external_ingress" {
93
+
description="Use your own ingress controller and cert-manager instead of deploying them."
94
+
type=bool
95
+
default=false
96
+
}
97
+
98
+
variable"ingress_cert_manager_cluster_issuer" {
99
+
description="Name of your existing cert-manager ClusterIssuer for TLS certificate management."
100
+
type=string
101
+
default=""
102
+
}
103
+
104
+
variable"ingress_class_name" {
105
+
description="Ingress class name for your existing ingress controller."
106
+
type=string
107
+
default=""
108
+
}
109
+
110
+
variable"ingress_external_namespace" {
111
+
description="Namespace where your existing ingress controller service is deployed."
112
+
type=string
113
+
default=""
114
+
}
115
+
116
+
variable"ingress_external_service_name" {
117
+
description="Service name of your existing ingress controller."
0 commit comments