8c614d4ffd
Manually set Namespace for Sonobuoy's config.json. Sonobuoy's bug forcing heptio-sonobuoy namespace [1] usage only does not impact this Helm chart because the config.json is directly controlled by the `values.yaml` and not Sonobuoy's CLI. Now multiple instances of this chart may exist at once by specifying unique namespaces at helm install time. Modify Sonobuoy test script to install two instances of Sonobuoy Helm chart. Also install readonly serviceaccount to verify it will work with more than one instance simultaneously. [1] https://github.com/heptio/sonobuoy/issues/420 Change-Id: I6d4ecfb812a4312af13abf1e265de495e27967f9
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
set -xe
|
|
|
|
helm dependency update sonobuoy
|
|
helm upgrade --install sonobuoy sonobuoy \
|
|
--namespace=heptio-sonobuoy \
|
|
--set endpoints.identity.namespace=openstack \
|
|
--set manifests.serviceaccount_readonly=true
|
|
helm test sonobuoy
|
|
|
|
helm upgrade --install another-sonobuoy sonobuoy \
|
|
--namespace=sonobuoy \
|
|
--set endpoints.identity.namespace=openstack \
|
|
--set manifests.serviceaccount_readonly=true
|
|
helm test another-sonobuoy
|