-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Craig O'Donnell
committed
Nov 7, 2023
1 parent
9821e62
commit a6e6b0f
Showing
3 changed files
with
101 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: kurl-create-installer | ||
description: "Create a kURL installer for a KOTS version" | ||
|
||
inputs: | ||
addon_version: | ||
description: "Kots version (without the 'v')." | ||
required: true | ||
addon_package_url: | ||
description: "S3 package url." | ||
required: true | ||
outputs: | ||
installer_id: | ||
description: "ID of the installer" | ||
value: ${{ steps.create-installer.outputs.installer_id }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: create installer | ||
id: create-installer | ||
shell: bash | ||
run: | | ||
echo "apiVersion: cluster.kurl.sh/v1beta1 | ||
kind: Installer | ||
metadata: | ||
name: kots-ci-installer | ||
spec: | ||
kubernetes: | ||
version: 1.28.x | ||
flannel: | ||
version: latest | ||
minio: | ||
version: latest | ||
openebs: | ||
version: latest | ||
isLocalPVEnabled: true | ||
localPVStorageClassName: default | ||
isCstorEnabled: false | ||
contour: | ||
version: latest | ||
containerd: | ||
version: latest | ||
registry: | ||
version: latest | ||
kotsadm: | ||
version: ${{ inputs.addon_version }} | ||
s3Override: ${{ inputs.addon_package_url }} | ||
ekco: | ||
version: latest | ||
enableInternalLoadBalancer: true" > installer.yaml | ||
installer_url=$(curl -s -X POST https://k8s.kurl.sh/installer -H 'Content-Type: text/yaml' --data-binary @installer.yaml) | ||
installer_id=${installer_url:#"https://kurl.sh/"} | ||
echo "installer_id=$installer_id" >> $GITHUB_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters