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

Add prerequisites check and delete flag support for the longhorn package #1378

Merged
merged 22 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f21fb06
Add prerequisites check and delete flag support for the longhorn package
JasonvanBrackel Feb 22, 2023
306ff41
WIP: Remove kubectl from the package
JasonvanBrackel Feb 24, 2023
208f758
Modify zarf.yaml to use the vendored kubectl executable
JasonvanBrackel Feb 24, 2023
8d97282
Remove line from end of file
JasonvanBrackel Feb 24, 2023
ba616a0
Merge branch 'main' into longhorn-example-improvements
JasonvanBrackel Feb 24, 2023
dfef919
Merge branch 'main' into longhorn-example-improvements
JasonvanBrackel Mar 2, 2023
6bfc730
Fix zarf connect container port
JasonvanBrackel Mar 3, 2023
df03f07
Merge branch 'main' into longhorn-example-improvements
JasonvanBrackel Mar 3, 2023
8368c42
Fix zarf connect container port
JasonvanBrackel Mar 3, 2023
a5d69b5
Merge branch 'main' into longhorn-example-improvements
JasonvanBrackel Mar 4, 2023
ae1f41f
Update examples/longhorn/README.md
JasonvanBrackel Mar 6, 2023
004bc1b
Update examples/longhorn/zarf.yaml
JasonvanBrackel Mar 6, 2023
cdebd2b
Update examples/longhorn/zarf.yaml
JasonvanBrackel Mar 6, 2023
b81da34
Update examples/longhorn/zarf.yaml
JasonvanBrackel Mar 6, 2023
ed94833
Update examples/longhorn/zarf.yaml
JasonvanBrackel Mar 6, 2023
48656f0
Update examples/longhorn/zarf.yaml
JasonvanBrackel Mar 6, 2023
826b62c
Modify README.md to match other changes
JasonvanBrackel Mar 6, 2023
b190e26
Merge branch 'main' into longhorn-example-improvements
JasonvanBrackel Mar 6, 2023
3eda2b4
Merge branch 'main' into longhorn-example-improvements
Racer159 Mar 6, 2023
046ea75
Merge branch 'main' into longhorn-example-improvements
Racer159 Mar 14, 2023
b59407e
Merge branch 'main' into longhorn-example-improvements
Racer159 Mar 15, 2023
2b4aee0
Merge branch 'main' into longhorn-example-improvements
Racer159 Mar 20, 2023
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
34 changes: 33 additions & 1 deletion examples/longhorn/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Longhorn

This example shows how you how to deploy [Longhorn](https://longhorn.io/) using Zarf
This example shows how you how to deploy [Longhorn](https://longhorn.io/) using Zarf.
JasonvanBrackel marked this conversation as resolved.
Show resolved Hide resolved

Before deploying Longhorn make sure your nodes are configured with the [Longhorn Installation Requirements](https://longhorn.io/docs/1.4.0/deploy/install/#installation-requirements).

Expand All @@ -25,6 +25,37 @@ components:
- name: longhorn
required: true
description: "Deploy Longhorn into a Kubernetes cluster. https://longhorn.io"
actions:
JasonvanBrackel marked this conversation as resolved.
Show resolved Hide resolved
# Run the Longhorn Environment Check on this cluster's nodes.
onDeploy:
before:
- env:
- "PATH=$PATH:./"
- cmd: ./environment_check.sh
# Set the delete confirmation flag for Longhorn
onRemove:
before:
- env:
- "PATH=$PATH:./"
- cmd: "kubectl -n longhorn-system patch -p '{\"value\": \"true\"}' --type=merge lhs deleting-confirmation-flag"
JasonvanBrackel marked this conversation as resolved.
Show resolved Hide resolved
files:
# jq
- source: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
target: jq
executable: true
# kubectl
- source: https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl
target: kubectl
executable: true
# Longhorn Environment Check
- source: https://raw.githubusercontent.com/longhorn/longhorn/v1.4.0/scripts/environment_check.sh
target: environment_check.sh
executable: true
manifests:
- name: longhorn-connect
namespace: longhorn-system
files:
- connect.yaml
charts:
- name: longhorn
url: https://charts.longhorn.io
Expand All @@ -46,4 +77,5 @@ components:
- longhornio/longhorn-share-manager:v1.4.0
- longhornio/longhorn-ui:v1.4.0
- longhornio/support-bundle-kit:v0.0.17

```
26 changes: 26 additions & 0 deletions examples/longhorn/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,32 @@ components:
- name: longhorn
required: true
description: "Deploy Longhorn into a Kubernetes cluster. https://longhorn.io"
actions:
# Run the Longhorn Environment Check on this cluster's nodes.
onDeploy:
before:
- env:
- "PATH=$PATH:./"
- cmd: ./environment_check.sh
# Set the delete confirmation flag for Longhorn
onRemove:
before:
- env:
- "PATH=$PATH:./"
- cmd: "kubectl -n longhorn-system patch -p '{\"value\": \"true\"}' --type=merge lhs deleting-confirmation-flag"
files:
# jq
- source: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
target: jq
executable: true
# kubectl
- source: https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl
JasonvanBrackel marked this conversation as resolved.
Show resolved Hide resolved
target: kubectl
executable: true
# Longhorn Environment Check
- source: https://raw.githubusercontent.com/longhorn/longhorn/v1.4.0/scripts/environment_check.sh
target: environment_check.sh
executable: true
manifests:
- name: longhorn-connect
namespace: longhorn-system
Expand Down