Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5af5378f
Commit
5af5378f
authored
Apr 05, 2017
by
Madhusudan.C.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default FEDERATION_KUBE_CONTEXT to FEDERATION_NAME in federation e2e up/down scripts.
This is consistent with how kubefed creates kubeconfig contexts.
parent
08fefc9d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
common.sh
federation/cluster/common.sh
+1
-1
federation-up.sh
federation/cluster/federation-up.sh
+1
-1
federated-ginkgo-e2e.sh
hack/federated-ginkgo-e2e.sh
+4
-0
No files found.
federation/cluster/common.sh
View file @
5af5378f
...
@@ -24,7 +24,7 @@ source "${KUBE_ROOT}/cluster/kube-util.sh"
...
@@ -24,7 +24,7 @@ source "${KUBE_ROOT}/cluster/kube-util.sh"
# kubefed configuration
# kubefed configuration
FEDERATION_NAME
=
"
${
FEDERATION_NAME
:-
e2e
-federation
}
"
FEDERATION_NAME
=
"
${
FEDERATION_NAME
:-
e2e
-federation
}
"
FEDERATION_NAMESPACE
=
${
FEDERATION_NAMESPACE
:-
federation
-system
}
FEDERATION_NAMESPACE
=
${
FEDERATION_NAMESPACE
:-
federation
-system
}
FEDERATION_KUBE_CONTEXT
=
"
${
FEDERATION_KUBE_CONTEXT
:-
e2e
-federation
}
"
FEDERATION_KUBE_CONTEXT
=
"
${
FEDERATION_KUBE_CONTEXT
:-
${
FEDERATION_NAME
}
}
"
HOST_CLUSTER_ZONE
=
"
${
FEDERATION_HOST_CLUSTER_ZONE
:-}
"
HOST_CLUSTER_ZONE
=
"
${
FEDERATION_HOST_CLUSTER_ZONE
:-}
"
# If $HOST_CLUSTER_ZONE isn't specified, arbitrarily choose
# If $HOST_CLUSTER_ZONE isn't specified, arbitrarily choose
# last zone as the host cluster zone.
# last zone as the host cluster zone.
...
...
federation/cluster/federation-up.sh
View file @
5af5378f
...
@@ -108,7 +108,7 @@ function join_clusters() {
...
@@ -108,7 +108,7 @@ function join_clusters() {
"
${
context
}
"
\
"
${
context
}
"
\
--federation-system-namespace
=
${
FEDERATION_NAMESPACE
}
\
--federation-system-namespace
=
${
FEDERATION_NAMESPACE
}
\
--host-cluster-context
=
"
${
HOST_CLUSTER_CONTEXT
}
"
\
--host-cluster-context
=
"
${
HOST_CLUSTER_CONTEXT
}
"
\
--context
=
"
${
FEDERATION_
NAME
}
"
\
--context
=
"
${
FEDERATION_
KUBE_CONTEXT
}
"
\
--secret-name
=
"
${
context
//_/-
}
"
# Replace "_" by "-"
--secret-name
=
"
${
context
//_/-
}
"
# Replace "_" by "-"
done
done
}
}
...
...
hack/federated-ginkgo-e2e.sh
View file @
5af5378f
...
@@ -21,10 +21,14 @@ set -o pipefail
...
@@ -21,10 +21,14 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
source
"
${
KUBE_ROOT
}
/federation/cluster/common.sh"
:
"
${
FEDERATION_HOST_CLUSTER_ZONE
?Must set FEDERATION_HOST_CLUSTER_ZONE env var
}
"
:
"
${
FEDERATION_HOST_CLUSTER_ZONE
?Must set FEDERATION_HOST_CLUSTER_ZONE env var
}
"
(
(
set-federation-zone-vars
"
${
FEDERATION_HOST_CLUSTER_ZONE
}
"
set-federation-zone-vars
"
${
FEDERATION_HOST_CLUSTER_ZONE
}
"
# Export FEDERATION_KUBE_CONTEXT to ensure that it is available to
# ginkgo-e2e.sh and is thus passed on to the federation tests.
export
FEDERATION_KUBE_CONTEXT
"
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh"
$@
"
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh"
$@
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment