forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always Use .Release.Namespace in the ClusterRoleBinding Name (istio#4546
) Automatic merge from submit-queue. Always Use .Release.Namespace in the ClusterRoleBinding Name Ensures that all clusterRoleBinding has name of namespace encoded in it. This is needed for one-namespace testing.
- Loading branch information
1 parent
7ec666f
commit 692e481
Showing
12 changed files
with
193 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2017,2018 Istio Authors. All Rights Reserved. | ||
# | ||
# 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. | ||
# | ||
|
||
# Init script downloads or updates envoy and the go dependencies. Called from Makefile, which sets | ||
# the needed environment variables. | ||
|
||
ROOT=$(cd $(dirname $0)/..; pwd) | ||
ISTIO_GO=$ROOT | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
# TODO(nmittler): Remove before merging. | ||
set -x # echo on | ||
|
||
# TODO(nmittler): Remove these variables and require that this script be run from the Makefile | ||
|
||
# Set GOPATH to match the expected layout | ||
GO_TOP=$(cd $(dirname $0)/../../../..; pwd) | ||
|
||
export OUT_DIR=${OUT_DIR:-${GO_TOP}/out} | ||
|
||
HELM_VER=v2.7.2 | ||
|
||
export GOPATH=${GOPATH:-$GO_TOP} | ||
# Normally set by Makefile | ||
export ISTIO_BIN=${ISTIO_BIN:-${GOPATH}/bin} | ||
|
||
# Set the architecture. Matches logic in the Makefile. | ||
export GOARCH=${GOARCH:-'amd64'} | ||
|
||
# Determine the OS. Matches logic in the Makefile. | ||
LOCAL_OS="`uname`" | ||
case $LOCAL_OS in | ||
'Linux') | ||
LOCAL_OS='linux' | ||
;; | ||
'Darwin') | ||
LOCAL_OS='darwin' | ||
;; | ||
*) | ||
echo "This system's OS ${LOCAL_OS} isn't recognized/supported" | ||
exit 1 | ||
;; | ||
esac | ||
export GOOS=${GOOS:-${LOCAL_OS}} | ||
|
||
# test scripts seem to like to run this script directly rather than use make | ||
export ISTIO_OUT=${ISTIO_OUT:-${ISTIO_BIN}} | ||
|
||
# install helm if not present, it must be the local version. | ||
if [ ! -f ${ISTIO_OUT}/helm ] ; then | ||
TD=$(mktemp -d) | ||
# Install helm. Please keep it in sync with .circleci | ||
cd ${TD} && \ | ||
curl -Lo ${TD}/helm.tgz https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VER}-${LOCAL_OS}-amd64.tar.gz && \ | ||
tar xfz helm.tgz && \ | ||
mv ${LOCAL_OS}-amd64/helm ${ISTIO_OUT}/helm && \ | ||
rm -rf ${TD} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is used to generate istio.yaml | ||
global: | ||
# controlPlaneMtls enabled. Will result in delays starting the pods while secrets are | ||
# propagated, not recommended for tests. | ||
controlPlaneSecurityEnabled: true | ||
|
||
mtls: | ||
# Default setting for service-to-service mtls. Can be set explicitly using | ||
# destination rules or service annotations. | ||
enabled: true | ||
|
||
# create RBAC resources. Must be set for any cluster configured with rbac. | ||
rbacEnabled: true | ||
|
||
# Default is 10s second | ||
refreshInterval: 1s | ||
|
||
istiotesting: | ||
oneNameSpace: false | ||
|
||
prometheus: | ||
enabled: true |
22 changes: 22 additions & 0 deletions
22
install/kubernetes/helm/istio/values-istio-one-namespace-auth.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is used to generate istio.yaml | ||
global: | ||
# controlPlaneMtls enabled. Will result in delays starting the pods while secrets are | ||
# propagated, not recommended for tests. | ||
controlPlaneSecurityEnabled: true | ||
|
||
mtls: | ||
# Default setting for service-to-service mtls. Can be set explicitly using | ||
# destination rules or service annotations. | ||
enabled: true | ||
|
||
# create RBAC resources. Must be set for any cluster configured with rbac. | ||
rbacEnabled: true | ||
|
||
# Default is 10s second | ||
refreshInterval: 1s | ||
|
||
istiotesting: | ||
oneNameSpace: true | ||
|
||
prometheus: | ||
enabled: true |
22 changes: 22 additions & 0 deletions
22
install/kubernetes/helm/istio/values-istio-one-namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is used to generate istio.yaml | ||
global: | ||
# controlPlaneMtls enabled. Will result in delays starting the pods while secrets are | ||
# propagated, not recommended for tests. | ||
controlPlaneSecurityEnabled: false | ||
|
||
mtls: | ||
# Default setting for service-to-service mtls. Can be set explicitly using | ||
# destination rules or service annotations. | ||
enabled: false | ||
|
||
# create RBAC resources. Must be set for any cluster configured with rbac. | ||
rbacEnabled: true | ||
|
||
# Default is 10s second | ||
refreshInterval: 1s | ||
|
||
istiotesting: | ||
oneNameSpace: true | ||
|
||
prometheus: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is used to generate istio.yaml | ||
global: | ||
# controlPlaneMtls enabled. Will result in delays starting the pods while secrets are | ||
# propagated, not recommended for tests. | ||
controlPlaneSecurityEnabled: false | ||
|
||
mtls: | ||
# Default setting for service-to-service mtls. Can be set explicitly using | ||
# destination rules or service annotations. | ||
enabled: false | ||
|
||
# create RBAC resources. Must be set for any cluster configured with rbac. | ||
rbacEnabled: true | ||
|
||
# Default is 10s second | ||
refreshInterval: 1s | ||
|
||
istiotesting: | ||
oneNameSpace: false | ||
|
||
prometheus: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters