Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assures the current SDK version for Builders labs #297

Merged
merged 17 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: working-with-preflight-checks
id: 2pg7yavlxy31
id: hbegc1xc0kld
type: challenge
title: Working with Preflight Checks
teaser: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: checking-cluster-resources
id: iy5zaqt0tx9a
id: ghsphablorib
type: challenge
title: Checking Cluster Resources
teaser: Use preflight checks to validate minimum cluster requirements
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: adding-preflights-to-the-chart
id: nbo5nfgeixox
id: rey80xsp7n5p
type: challenge
title: Adding Preflights to the Harbor Helm Chart
teaser: Learn how to incorporate your preflight checks into your chart
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: releasing-the-application
id: 14xfg2xrtgef
id: ivm88bvvie5l
type: challenge
title: Releasing the Application
teaser: Releasing with preflights on the Replicated Platform
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: validating-before-an-install
id: aray1djn6poy
id: agnr2vn44qs0
type: challenge
title: Validating Before an Install
teaser: How your customer uses preflights to validate their environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: completing-the-install
id: yfgaomzczvea
id: aeywtcz1jfwc
type: challenge
title: Completing the Install
teaser: Finishing the install once the cluster passes its preflights
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions instruqt/avoiding-installation-pitfalls/config.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ virtualmachines:
K3S_TOKEN: cccccbeuretcrjjbrdgvklfgelvelltcftfujlrctlku
machine_type: e2-small
allow_external_ingress:
- high-ports
- high-ports
- name: worker1
image: instruqt/k3s-v1-27-1
shell: /bin/bash
Expand All @@ -20,7 +20,7 @@ virtualmachines:
K3S_TOKEN: cccccbeuretcrjjbrdgvklfgelvelltcftfujlrctlku
machine_type: n1-standard-1
allow_external_ingress:
- high-ports
- high-ports
- name: worker2
image: instruqt/k3s-v1-27-1
shell: /bin/bash
Expand All @@ -29,4 +29,4 @@ virtualmachines:
K3S_TOKEN: cccccbeuretcrjjbrdgvklfgelvelltcftfujlrctlku
machine_type: n1-standard-1
allow_external_ingress:
- high-ports
- high-ports
4 changes: 3 additions & 1 deletion instruqt/avoiding-installation-pitfalls/track.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
slug: avoiding-installation-pitfalls
id: amjfqroa5bfk
id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this id be blank?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the id's are blanked out by the dev/prod workflow

title: Avoiding Installation Pitfalls
teaser: |-
Use Preflight checks to avoid common installation pitfalls
Expand All @@ -22,9 +22,11 @@ tags:
- builders-plan
- helm
- troubleshoot
- prod
owner: replicated
developers:
- [email protected]
maintenance: false
lab_config:
overlay: false
width: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ cd /home/replicant
mkdir release
helm pull --version 16.6.8 oci://registry-1.docker.io/bitnamicharts/harbor --untar
yq -i '.version = "16.7.0"' harbor/Chart.yaml
yq -i '.dependencies += { "name": "replicated", "repository": "oci://registry.replicated.com/library", "version": "0.0.1-alpha.17"}' harbor/Chart.yaml
replicated_sdk_version=$(curl -qsfL https://api.github.com/repos/replicatedhq/replicated-sdk/tags | jq -r '.[0] | .name')
yq -i ".dependencies += { \"name\": \"replicated\", \"repository\": \"oci://registry.replicated.com/library\", \"version\": \"${replicated_sdk_version#?}\"}" harbor/Chart.yaml

# update dependencies
helm dependency update harbor
Expand Down
Empty file modified instruqt/avoiding-installation-pitfalls/vendor/vendor.json
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: viewing-instance-info
id: wb2h50g9obsq
id: u7arnjksadrw
type: challenge
title: Getting a Picture of a Customer Instance
teaser: Using the Replicated Platform to understand details of a customer instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: working-with-support-bundles
id: gejrijpn0r1a
id: y9cpyp05iq1k
type: challenge
title: Working with Support Bundles
teaser: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: additional-information
id: immtqymhniny
id: sxl90k6n2bmz
type: challenge
title: Collecting and Analyzing Additional Information
teaser: |
Expand Down
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion instruqt/closing-information-gap/04-adding-to-the-chart/assignment.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: adding-to-the-chart
id: tvkvu4hgnpuv
id: vvxrunt3e7zu
type: challenge
title: Adding the Support Bundle to the Harbor Helm Chart
teaser: Learn how to incorporate your support bundle into your chart
Expand Down
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: releasing-an-update
id: zmlgdclvm9hr
id: tnyktndlfuw7
type: challenge
title: Releasing an Update with the Support Bundle
teaser: Releasing a new version with the support bundle included
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: support-bundle-diagnosis
id: pvyigv0ockwz
id: y5uwhsz4tiwj
type: challenge
title: Using the Support Bundle to Diagnose the Issue
teaser: Discover the cause of Geeglo's outage using a support bundle
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: other-ways
id: biqyj5kx0upy
id: dfec8ytv6wmo
type: challenge
title: Other Ways to Offer a Support Bundle
teaser: Explore other ways to distibute your support bundle and keep it up to date
Expand Down
Empty file modified instruqt/closing-information-gap/07-other-ways/check-shell
100644 → 100755
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified instruqt/closing-information-gap/assets/customers-page.png
100644 → 100755
Empty file modified instruqt/closing-information-gap/assets/event-filters.png
100644 → 100755
Empty file modified instruqt/closing-information-gap/assets/geeglo-outage.png
100644 → 100755
2 changes: 1 addition & 1 deletion instruqt/closing-information-gap/assets/harbor-support-bundle.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
collectors:
- registryImages:
images:
- ghcr.io/replicatedhq/replicated:v0.0.1-alpha.16
- ghcr.io/replicatedhq/replicated:v0.0.1-alpha.22
- docker.io/bitnami/harbor-core:2.8.1-debian-11-r5
- docker.io/bitnami/harbor-jobservice:2.8.1-debian-11-r5
- docker.io/bitnami/nginx:1.23.4-debian-11-r19
Expand Down
Empty file modified instruqt/closing-information-gap/config.yml
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion instruqt/closing-information-gap/track.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
slug: closing-information-gap
id: hfb41xqkyx0q
id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another blank id

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the id's are blanked out by the dev/prod workflow

title: Closing the Support Information Gap
teaser: |-
Use the Replicated Platform to close the information gap between your
Expand All @@ -22,9 +22,11 @@ tags:
- builders-plan
- helm
- troubleshoot
- prod
owner: replicated
developers:
- [email protected]
maintenance: false
lab_config:
overlay: false
width: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ cd /home/replicant
mkdir release
helm pull --version 16.6.8 oci://registry-1.docker.io/bitnamicharts/harbor --untar
yq -i '.version = "16.7.0"' harbor/Chart.yaml
yq -i '.dependencies += { "name": "replicated", "repository": "oci://registry.replicated.com/library", "version": "0.0.1-alpha.17"}' harbor/Chart.yaml
replicated_sdk_version=$(curl -qsfL https://api.github.com/repos/replicatedhq/replicated-sdk/tags | jq -r '.[0] | .name')
yq -i ".dependencies += { \"name\": \"replicated\", \"repository\": \"oci://registry.replicated.com/library\", \"version\": \"${replicated_sdk_version#?}\"}" harbor/Chart.yaml

# update dependencies
helm dependency update harbor
Expand Down
Empty file modified instruqt/closing-information-gap/vendor/vendor.json
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: preparing-to-use-the-sdk
id: kkhcf1j4eaym
id: nyq00jogbv0q
type: challenge
title: Preparing to Use the SDK
teaser: Getting ready to use the Replicated SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ agent variable set USERNAME $(get_username)
agent variable set PASSWORD $(get_password)
agent variable set REPLICATED_API_TOKEN ${access_token}
agent variable set REPLICATED_APP ${app_slug}


Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: enabling-the-sdk
id: k2xalui3fpuw
id: wy7eklcxxw6c
type: challenge
title: Enabling the Replicated SDK
teaser: Incorporate the SDK into your application
Expand Down Expand Up @@ -48,7 +48,7 @@ chart.
```
- name: replicated
repository: oci://registry.replicated.com/library
version: 0.0.1-alpha.21
version: [[ Instruqt-Var key="REPLICATED_SDK_VERSION" hostname="shell" ]]
```

You should put the dependency into the array with the other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ set -euxo pipefail
mkdir /home/replicant/release
chown replicant:replicant /home/replicant/release
chmod 755 /home/replicant/release

# get the current SDK version
sdk_version=$(curl -qsfL https://api.github.com/repos/replicatedhq/replicated-sdk/tags | jq -r '.[0] | .name')
agent variable set REPLICATED_SDK_VERSION ${sdk_version#?}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
tmux send-keys -t shell $'yq -i \'.version = "16.7.0"\' harbor/Chart.yaml' ENTER

# add the SDK dependency
tmux send-keys -t shell $'yq -i \'.dependencies += { "name": "replicated", "repository": "oci://registry.replicated.com/library", "version": "0.0.1-alpha.21"}\' harbor/Chart.yaml' ENTER
tmux send-keys -t shell "yq -i '.dependencies += { \"name\": \"replicated\", \"repository\": \"oci://registry.replicated.com/library\", \"version\": \"$(agent variable get REPLICATED_SDK_VERSION)\"}' harbor/Chart.yaml" ENTER

# update dependencies
tmux send-keys -t shell 'helm dependency update harbor' ENTER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: creating-a-release
id: mfwkbwr7semg
id: tbxasfcudqc1
type: challenge
title: Releasing an Application
teaser: Creating a release on the Replicated Platform
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: installing-the-application
id: f9ve4gcr0dzn
id: le06dzuzl81y
type: challenge
title: Installing the Application
teaser: Let's install the application as your customer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: validating-the-install
id: vibqdrrlurin
id: dwuqvl8c7wrr
type: challenge
title: Observing the Customer Instance
teaser: Observing your customer install
Expand Down
2 changes: 1 addition & 1 deletion instruqt/distributing-with-replicated/config.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ virtualmachines:
allow_external_ingress:
- http
- https
- high-ports
- high-ports
6 changes: 4 additions & 2 deletions instruqt/distributing-with-replicated/track.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
slug: distributing-with-replicated
id: evmpzv6ycpgs
id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank id

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the id's are blanked out by the dev/prod workflow

title: Distributing Your Application with Replicated
description: |-
Learn how to quickly take advantage of the Replicated Platform for
Expand All @@ -17,11 +17,13 @@ tags:
- builders-plan
- sdk
- helm
- prod
owner: replicated
developers:
- [email protected]
maintenance: false
lab_config:
overlay: false
width: 33
position: right
checksum: "11216567145031576492"
checksum: "11868235989270449838"
Empty file modified instruqt/distributing-with-replicated/vendor/vendor.json
100644 → 100755
Empty file.
Loading