Skip to content

Commit

Permalink
git subrepo pull subrepos/skewer
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "subrepos/skewer"
  merged:   "fac5f89"
upstream:
  origin:   "https://github.com/skupperproject/skewer.git"
  branch:   "main"
  commit:   "fac5f89"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
  • Loading branch information
ssorj committed Nov 10, 2023
1 parent 07f3266 commit ba5a655
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions subrepos/skewer/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/skupperproject/skewer.git
branch = main
commit = dd9ea4d7bd850e827f737e23d09e114bb039e1ad
parent = c5647a454607fc357e1df8c50329ed1b7768ce7b
commit = fac5f89e0be667bd84ce8881991f7071837d5465
parent = 07f3266e2cd84509c215577c5f94a284841b58b2
method = merge
cmdver = 0.4.6
30 changes: 18 additions & 12 deletions subrepos/skewer/python/skewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,19 @@ def check_environment():
# https://github.com/kubernetes/kubernetes/pull/87399
# https://github.com/kubernetes/kubernetes/issues/80828
# https://github.com/kubernetes/kubernetes/issues/83094
def await_resource(group, name, timeout=180):
notice(f"Waiting for {group}/{name} to become available")
def await_resource(group, name, timeout=240):
start_time = get_time()

for i in range(timeout):
sleep(1)
notice(f"Waiting for {group}/{name} to become available")

while True:
if run(f"kubectl get {group}/{name}", check=False).exit_code == 0:
break
else:
fail(f"Timed out waiting for {group}/{name}")

if get_time() - start_time > timeout:
fail(f"Timed out waiting for {group}/{name}")

sleep(5)

if group == "deployment":
try:
Expand All @@ -88,16 +91,19 @@ def await_resource(group, name, timeout=180):
run(f"kubectl logs {group}/{name}")
raise

def await_external_ip(group, name, timeout=180):
await_resource(group, name, timeout=timeout)
def await_external_ip(group, name, timeout=240):
start_time = get_time()

for i in range(timeout):
sleep(1)
await_resource(group, name, timeout=timeout)

while True:
if call(f"kubectl get {group}/{name} -o jsonpath='{{.status.loadBalancer.ingress}}'") != "":
break
else:
fail(f"Timed out waiting for external IP for {group}/{name}")

if get_time() - start_time > timeout:
fail(f"Timed out waiting for external IP for {group}/{name}")

sleep(5)

return call(f"kubectl get {group}/{name} -o jsonpath='{{.status.loadBalancer.ingress[0].ip}}'")

Expand Down
6 changes: 3 additions & 3 deletions subrepos/skewer/python/skewer/standardsteps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ set_up_your_namespaces:
install_skupper_in_your_namespaces:
title: Install Skupper in your namespaces
preamble: |
The `skupper init` command installs the Skupper router and service
The `skupper init` command installs the Skupper router and
controller in the current namespace. Run the `skupper init` command
in each namespace.
Expand Down Expand Up @@ -183,7 +183,7 @@ test_the_application:
apply: readme
output: OK
- await_external_ip: service/frontend
- run: curl --fail --verbose --retry 60 --retry-connrefused --retry-delay 2 $(kubectl get service/frontend -o jsonpath='http://{.status.loadBalancer.ingress[0].ip}:8080/api/health')
- run: curl --fail --verbose --retry 40 --retry-connrefused --retry-delay 5 $(kubectl get service/frontend -o jsonpath='http://{.status.loadBalancer.ingress[0].ip}:8080/api/health')
apply: test
postamble: |
If everything is in order, you can now access the web interface by
Expand Down Expand Up @@ -213,7 +213,7 @@ accessing_the_web_console:
apply: readme
output: <password>
- await_external_ip: service/skupper
- run: curl --fail --insecure --verbose --retry 60 --retry-connrefused --retry-delay 2 $(kubectl get service/skupper -o jsonpath='https://{.status.loadBalancer.ingress[0].ip}:8080/') --user admin:$(kubectl get secret/skupper-console-users -o jsonpath={.data.admin} | base64 -d); echo
- run: curl --fail --insecure --verbose --retry 40 --retry-connrefused --retry-delay 5 $(kubectl get service/skupper -o jsonpath='https://{.status.loadBalancer.ingress[0].ip}:8080/') --user admin:$(kubectl get secret/skupper-console-users -o jsonpath={.data.admin} | base64 -d); echo
apply: test
postamble: |
Navigate to `<console-url>` in your browser. When prompted, log
Expand Down
2 changes: 1 addition & 1 deletion subrepos/skewer/test-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ kubectl config set-context --current --namespace east

## Step 5: Install Skupper in your namespaces

The `skupper init` command installs the Skupper router and service
The `skupper init` command installs the Skupper router and
controller in the current namespace. Run the `skupper init` command
in each namespace.

Expand Down

0 comments on commit ba5a655

Please sign in to comment.