Skip to content

Commit

Permalink
Merge pull request #305 from replicatedhq/support-customer-configs
Browse files Browse the repository at this point in the history
Framing for new lab on adapting preflights/support bundles for customer configurations
  • Loading branch information
Jackee Kenny authored Aug 3, 2023
2 parents e5c42f1 + d0bdc8f commit 2fef53d
Show file tree
Hide file tree
Showing 30 changed files with 398 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
slug: 01-create-preflight-check
id:
type: challenge
title: Create preflight check
teaser: Enter teaser here
notes:
- type: text
contents: Enter notes here
tabs:
- title: Shell
type: terminal
hostname: shell
difficulty: basic
timelimit: 600
---
Introduction
===============
Enter challenge here...
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform check the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the check script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
tmux send-keys -t shell clear ENTER

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform setup the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the setup script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform solve the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the solve script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
slug: customize-support-bundle
id:
type: challenge
title: Customize support bundle
teaser: Enter teaser here
notes:
- type: text
contents: Enter notes here
tabs:
- title: Shell
type: terminal
hostname: shell
difficulty: basic
timelimit: 600
---
Introduction
===============
Enter challenge here...
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform check the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the check script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
tmux send-keys -t shell clear ENTER

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform setup the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the setup script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform solve the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the solve script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
slug: repackage-helm-chart
id:
type: challenge
title: Repackage Helm chart
teaser: Enter teaser here
notes:
- type: text
contents: Enter notes here
tabs:
- title: Shell
type: terminal
hostname: shell
difficulty: basic
timelimit: 600
---
Introduction
===============
Enter challenge here...
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform check the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the check script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
tmux send-keys -t shell clear ENTER

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform setup the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the setup script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform solve the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the solve script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
slug: run-preflight-check
id:
type: challenge
title: Run preflight check
teaser: Enter teaser here
notes:
- type: text
contents: Enter notes here
tabs:
- title: Shell
type: terminal
hostname: shell
difficulty: basic
timelimit: 600
---
Introduction
===============
Enter challenge here...
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform check the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the check script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
tmux send-keys -t shell clear ENTER

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform setup the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the setup script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform solve the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the solve script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
slug: create-support-bundle
id:
type: challenge
title: Create support bundle
teaser: Enter teaser here
notes:
- type: text
contents: Enter notes here
tabs:
- title: Shell
type: terminal
hostname: shell
difficulty: basic
timelimit: 600
---
Introduction
===============
Enter challenge here...
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform check the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the check script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# This set line ensures that all failures will cause the script to error and exit
set -euxo pipefail

# clear the tmux pane and scrollback to look like a fresh shell
tmux clear-history -t shell
tmux send-keys -t shell clear ENTER

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform setup the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the setup script"

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script runs when the platform solve the challenge.
#
# The platform determines if the script was successful using the exit code of this
# script. If the exit code is not 0, the script fails.
#

echo "This is the solve script"

exit 0
14 changes: 14 additions & 0 deletions instruqt/support-customer-configs/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3"
containers:
- name: shell
image: gcr.io/kots-field-labs/shell:instruqt-feature-tmux-template
shell: tmux new-session -A -s shell su - replicant
virtualmachines:
- name: cluster
image: instruqt/k3s-v1-27-1
shell: /bin/bash
machine_type: n1-standard-1
allow_external_ingress:
- http
- https
- high-ports
Loading

0 comments on commit 2fef53d

Please sign in to comment.