Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-openstack-armada-app / openstack-helm-infra / 0005-Add-TLS-support-for-Gnocchi-public-endpoint.patch
1 From e2e9b3c707599b4074ebf504f6a2fa5c185481e2 Mon Sep 17 00:00:00 2001
2 From: Angie Wang <angie.wang@windriver.com>
3 Date: Tue, 9 Jul 2019 13:37:29 -0400
4 Subject: [PATCH 1/1] Add TLS support for Gnocchi public endpoint
5
6 Signed-off-by: Angie Wang <angie.wang@windriver.com>
7 ---
8  gnocchi/templates/secret-ingress-tls.yaml | 19 +++++++++++++++++++
9  gnocchi/values.yaml                       | 12 ++++++++++++
10  2 files changed, 31 insertions(+)
11  create mode 100644 gnocchi/templates/secret-ingress-tls.yaml
12
13 diff --git a/gnocchi/templates/secret-ingress-tls.yaml b/gnocchi/templates/secret-ingress-tls.yaml
14 new file mode 100644
15 index 0000000..fc279cd
16 --- /dev/null
17 +++ b/gnocchi/templates/secret-ingress-tls.yaml
18 @@ -0,0 +1,19 @@
19 +{{/*
20 +Copyright 2019 Wind River Systems, Inc.
21 +
22 +Licensed under the Apache License, Version 2.0 (the "License");
23 +you may not use this file except in compliance with the License.
24 +You may obtain a copy of the License at
25 +
26 +   http://www.apache.org/licenses/LICENSE-2.0
27 +
28 +Unless required by applicable law or agreed to in writing, software
29 +distributed under the License is distributed on an "AS IS" BASIS,
30 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 +See the License for the specific language governing permissions and
32 +limitations under the License.
33 +*/}}
34 +
35 +{{- if .Values.manifests.secret_ingress_tls }}
36 +{{- include "helm-toolkit.manifests.secret_ingress_tls" ( dict "envAll" . "backendServiceType" "metric" ) }}
37 +{{- end }}
38 diff --git a/gnocchi/values.yaml b/gnocchi/values.yaml
39 index a4496b7..394e82a 100644
40 --- a/gnocchi/values.yaml
41 +++ b/gnocchi/values.yaml
42 @@ -472,6 +472,10 @@ secrets:
43      admin: gnocchi-db-indexer-admin
44      gnocchi: gnocchi-db-indexer-user
45    rbd: gnocchi-rbd-keyring
46 +  tls:
47 +    metric:
48 +      api:
49 +        public: gnocchi-tls-public
50  
51  bootstrap:
52    enabled: false
53 @@ -538,6 +542,13 @@ endpoints:
54        public: gnocchi
55      host_fqdn_override:
56        default: null
57 +      # NOTE: this chart supports TLS for fqdn over-ridden public
58 +      # endpoints using the following format:
59 +      # public:
60 +      #   host: null
61 +      #   tls:
62 +      #     crt: null
63 +      #     key: null
64      path:
65        default: null
66      scheme:
67 @@ -633,6 +644,7 @@ manifests:
68    pod_gnocchi_test: true
69    secret_db: true
70    secret_keystone: true
71 +  secret_ingress_tls: true
72    service_api: true
73    service_ingress_api: true
74    service_statsd: true
75 -- 
76 2.7.4
77