Browse Source

Adding Ranger Audit Services to Ingress

Change-Id: I684c35209427143c750918f4fc683b85c0d4a967
Chi Lo 2 months ago
parent
commit
9cf4f288fd

+ 5
- 0
ranger/templates/ingress-ranger.yaml View File

@@ -39,3 +39,8 @@ limitations under the License.
39 39
 {{ $ingressOpts | include "helm-toolkit.manifests.ingress" }}
40 40
 {{- end }}
41 41
 
42
+{{- if and .Values.manifests.ingress_audit .Values.network.audit.ingress.public }}
43
+{{- $ingressOpts := dict "envAll" . "backendService" "audit" "backendServiceType" "audit" "backendPort" "audit" -}}
44
+{{ $ingressOpts | include "helm-toolkit.manifests.ingress" }}
45
+{{- end }}
46
+

+ 1
- 0
ranger/templates/secret-ingress-tls.yaml View File

@@ -20,4 +20,5 @@ limitations under the License.
20 20
 {{- include "helm-toolkit.manifests.secret_ingress_tls" ( dict "envAll" . "backendService" "ims" "backendServiceType" "ims" ) }}
21 21
 {{- include "helm-toolkit.manifests.secret_ingress_tls" ( dict "envAll" . "backendService" "rms" "backendServiceType" "rms" ) }}
22 22
 {{- include "helm-toolkit.manifests.secret_ingress_tls" ( dict "envAll" . "backendService" "rds" "backendServiceType" "rds" ) }}
23
+{{- include "helm-toolkit.manifests.secret_ingress_tls" ( dict "envAll" . "backendService" "audit" "backendServiceType" "audit" ) }}
23 24
 {{- end }}

+ 20
- 0
ranger/templates/service-ingress-audit.yaml View File

@@ -0,0 +1,20 @@
1
+{{/*
2
+Copyright 2017 The Openstack-Helm Authors.
3
+
4
+Licensed under the Apache License, Version 2.0 (the "License");
5
+you may not use this file except in compliance with the License.
6
+You may obtain a copy of the License at
7
+
8
+   http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+Unless required by applicable law or agreed to in writing, software
11
+distributed under the License is distributed on an "AS IS" BASIS,
12
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+See the License for the specific language governing permissions and
14
+limitations under the License.
15
+*/}}
16
+
17
+{{- if and .Values.manifests.service_ingress_audit .Values.network.audit.ingress.public }}
18
+{{- $serviceIngressOpts := dict "envAll" . "backendServiceType" "audit" -}}
19
+{{ $serviceIngressOpts | include "helm-toolkit.manifests.service_ingress" }}
20
+{{- end }}

+ 7
- 0
ranger/values.yaml View File

@@ -167,6 +167,9 @@ secrets:
167 167
     rms:
168 168
       rms:
169 169
         public: rms
170
+    audit:
171
+      audit:
172
+        public: audit
170 173
 
171 174
 # typically overriden by environmental
172 175
 # values, but should include all endpoints
@@ -189,6 +192,7 @@ endpoints:
189 192
     name: audit
190 193
     hosts:
191 194
       default: audit-api
195
+      public: audit
192 196
     host_fqdn_override:
193 197
       default: null
194 198
     path:
@@ -198,6 +202,7 @@ endpoints:
198 202
     port:
199 203
       api:
200 204
         default: 7008
205
+        public: 80
201 206
   cms:
202 207
     name: cms
203 208
     hosts:
@@ -446,6 +451,7 @@ manifests:
446 451
   ingress_ims: true
447 452
   ingress_rds: true
448 453
   ingress_rms: true
454
+  ingress_audit: true
449 455
   secret_db: true
450 456
   secret_ingress_tls: true
451 457
   secret_ssh_key: true
@@ -460,6 +466,7 @@ manifests:
460 466
   service_ingress_ims: true
461 467
   service_ingress_rds: true
462 468
   service_ingress_rms: true
469
+  service_ingress_audit: true
463 470
   service_audit: true
464 471
   service_cms: true
465 472
   service_fms: true

Loading…
Cancel
Save