Skip to content

Commit

Permalink
tidy whitespace & remove oz's changes to default user-data template
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <[email protected]>
  • Loading branch information
TylerGillson committed Oct 25, 2023
1 parent 9dfb2be commit 7210693
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
14 changes: 7 additions & 7 deletions test/test-two-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,23 +254,23 @@ function create_userdata_isos() {
}

function build_provider_k3s() {
echo "Build provider-k3s image"
earthly +build-provider-package \
echo "Build provider-k3s image"
earthly +build-provider-package \
--platform=linux/amd64 \
--IMAGE_REPOSITORY=${OCI_REGISTRY} \
--VERSION=${PROVIDER_K3S_HASH}
docker push ${OCI_REGISTRY}/provider-k3s:${PROVIDER_K3S_HASH}
docker push ${OCI_REGISTRY}/provider-k3s:${PROVIDER_K3S_HASH}
}

function build_stylus_package_and_framework() {
echo "Build stylus image and stylus framework image"
earthly --allow-privileged +package \
echo "Build stylus image and stylus framework image"
earthly --allow-privileged +package \
--platform=linux/amd64 \
--IMAGE_REPOSITORY=${OCI_REGISTRY} \
--BASE_IMAGE=quay.io/kairos/core-opensuse-leap:v2.3.2 \
--VERSION=v0.0.0-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/stylus-linux-amd64:v0.0.0-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/stylus-framework-linux-amd64:v0.0.0-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/stylus-linux-amd64:v0.0.0-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/stylus-framework-linux-amd64:v0.0.0-${STYLUS_HASH}
}

function build_canvos() {
Expand Down
13 changes: 0 additions & 13 deletions user-data.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
#cloud-config

# This is currently required to enable a two node cluster
# should be removed in the future and only the twoNode section
# in stylus should control this.
cluster:
env:
two-node: "true"

stylus:
site:
# host for hubble api to register device.
Expand All @@ -22,11 +14,6 @@ stylus:
key1: value1
key2: value2
key3: value3
# enable two node cluster and add a custom health check script
# see also Dockerfile on how to add this script to the image
twoNode:
enabled: true
health-check-script: /opt/spectrocloud/bin/custom-health-check.sh

# name of the device, this may also be referred to as the edge id or edge host id. If no edge host name is specified
# one will be generated from the device serial number. If stylus cannot the device serial number a random id will
Expand Down

0 comments on commit 7210693

Please sign in to comment.