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
27230004
Commit
27230004
authored
Jun 23, 2017
by
Christian Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Federation] Account for caching in kubectl
parent
afc4506c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
federation-up.sh
federation/cluster/federation-up.sh
+6
-6
No files found.
federation/cluster/federation-up.sh
View file @
27230004
...
...
@@ -81,14 +81,14 @@ function init() {
kube::log::status
"DNS_ZONE_NAME:
\"
${
DNS_ZONE_NAME
}
\"
, DNS_PROVIDER:
\"
${
DNS_PROVIDER
}
\"
"
kube::log::status
"Image:
\"
${
kube_registry
}
/hyperkube-amd64:
${
kube_version
}
\"
"
# The very first thing that kubefed does when it comes up is run RBAC
# API discovery. We believe this sometimes fail on new clusters and as
# a result causes kubefed to assume that the RBAC API doesn't exist.
# Therefore, we are applying this workaround for now to ensure that the
# RBAC API is available before running kubefed.
# The very first thing that kubefed does when it comes up is run RBAC API
# discovery. If it doesn't appear to be available, issue 'get role' to ensure
# that kubectl updates its cache.
${
KUBE_ROOT
}
/cluster/kubectl.sh get role
timeout
1m bash
<<
EOF
while [[ ! "
$(${
KUBE_ROOT
}
/cluster/kubectl.sh api-versions
)
" =~ "rbac.authorization.k8s.io/" ]]; do
kube::log::status "Waiting for rbac.authorization.k8s.io API group to appear"
${
KUBE_ROOT
}
/cluster/kubectl.sh get role
echo "Waiting for rbac.authorization.k8s.io API group to appear"
sleep 2
done
EOF
...
...
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