-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
naming: expand short named variables
Problem: a lot of the variables with pg are hard to understand Solution: write out podGroup or groupName explicitly. Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
226 additions
and
211 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,36 @@ | ||
#!/bin/bash | ||
|
||
# Before running this, you should: | ||
# 1. create the kind cluster (needs more than one node, fluence does not scheduler to the control plane) | ||
# 2. Install cert-manager | ||
# 3. Customize the script to point to your registry if you intend to push | ||
|
||
REGISTRY="${1:-ghcr.io/vsoch}" | ||
HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
ROOT=$(dirname ${HERE}) | ||
|
||
# Go to the script directory | ||
cd ${ROOT} | ||
|
||
# These build each of the images. The sidecar is separate from the other two in src/ | ||
make REGISTRY=${REGISTRY} SCHEDULER_IMAGE=fluence SIDECAR_IMAGE=fluence-sidecar CONTROLLER_IMAGE=fluence-controller | ||
|
||
# This is what it might look like to push | ||
# docker push ghcr.io/vsoch/fluence-sidecar && docker push ghcr.io/vsoch/fluence-controller && docker push ghcr.io/vsoch/fluence:latest | ||
|
||
# We load into kind so we don't need to push/pull and use up internet data ;) | ||
kind load docker-image ${REGISTRY}/fluence-sidecar:latest | ||
kind load docker-image ${REGISTRY}/fluence-controller:latest | ||
kind load docker-image ${REGISTRY}/fluence:latest | ||
|
||
# And then install using the charts. The pull policy ensures we use the loaded ones | ||
cd ${ROOT}/upstream/manifests/install/charts | ||
helm uninstall fluence || true | ||
helm install \ | ||
--set scheduler.image=${REGISTRY}/fluence:latest \ | ||
--set scheduler.sidecarPullPolicy=Never \ | ||
--set scheduler.pullPolicy=Never \ | ||
--set controller.pullPolicy=Never \ | ||
--set controller.image=${REGISTRY}/fluence-controller:latest \ | ||
--set scheduler.sidecarimage=${REGISTRY}/fluence-sidecar:latest \ | ||
fluence as-a-second-scheduler/ |
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
Oops, something went wrong.