-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
01f42b1
commit 4aa4cb8
Showing
3 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
builds: | ||
- id: installer | ||
#main: main.go | ||
dir: . | ||
env: | ||
- CGO_ENABLED=0 | ||
- CORE_PROVIDER_DEBUG=true | ||
ldflags: | ||
- -s -w | ||
- -extldflags "-static" | ||
defaultPlatforms: | ||
- linux/arm64 | ||
#- linux/amd64 | ||
defaultBaseImage: golang:1.23-alpine3.21 |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# KO_DOCKER_REPO=kind.local ko build --base-import-paths . --preserve-import-paths | ||
KO_DOCKER_REPO=kind.local ko build --base-import-paths . | ||
|
||
# KO_DOCKER_REPO=kind.local KIND_CLUSTER_NAME=krateo-quickstart ko build --base-import-paths . | ||
|
||
printf '\n\nList of current docker images loaded in KinD:\n' | ||
|
||
kubectl get nodes kind-control-plane -o json \ | ||
| jq -r '.status.images[] | " - " + .names[-1]' |
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,18 @@ | ||
#!/bin/bash | ||
|
||
PROJECT_DIR=$( pwd ) | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd ${PROJECT_DIR} | ||
|
||
# SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
echo "SCRIPT_DIR: ${SCRIPT_DIR}" | ||
|
||
kubectl delete -f manifests/ | ||
|
||
${SCRIPT_DIR}/generate.sh | ||
${SCRIPT_DIR}/build.sh | ||
|
||
kubectl apply -f manifests/ | ||
|
||
kubectl apply -f crds |