-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ciux config for development Install olm/argocd on gha Bump ciux to v0.0.1-rc12 Bump ktbx to v1.1.1-rc9 in CI Sync strimzi first Rename minio ns in CI Create spark namespace
- Loading branch information
Showing
9 changed files
with
100 additions
and
36 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 |
---|---|---|
|
@@ -7,17 +7,28 @@ dependencies: | |
# If true, container image will be pulled | ||
pull: true | ||
labels: | ||
dev: "true" | ||
itest: "true" | ||
ci: "true" | ||
- url: https://github.com/astrolabsoftware/finkctl | ||
clone: true | ||
labels: | ||
dev: "true" | ||
itest: "true" | ||
ci: "true" | ||
- url: https://github.com/astrolabsoftware/fink-cd | ||
labels: | ||
dev: "true" | ||
itest: "true" | ||
ci: "true" | ||
- url: https://github.com/k8s-school/ktbx | ||
clone: true | ||
labels: | ||
dev: "true" | ||
- image: gitlab-registry.in2p3.fr/astrolabsoftware/fink/spark-py:k8s-3.4.1 | ||
labels: | ||
build: "true" | ||
- package: github.com/k8s-school/[email protected]rc7 | ||
- package: github.com/k8s-school/[email protected]rc9 | ||
labels: | ||
itest: "optional" | ||
ci: "true" | ||
|
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
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,51 @@ | ||
#!/bin/bash | ||
|
||
# Install fink-broker stack (kafka+minio) | ||
# Based on https://min.io/docs/minio/kubernetes/upstream/index.html | ||
|
||
# @author Fabrice Jammes | ||
|
||
set -euxo pipefail | ||
|
||
. $CIUXCONFIG | ||
|
||
function retry { | ||
local n=1 | ||
local max=5 | ||
local delay=5 | ||
while true; do | ||
"$@" && break || { | ||
if [[ $n -lt $max ]]; then | ||
((n++)) | ||
echo "Command failed. Attempt $n/$max:" | ||
sleep $delay; | ||
else | ||
echo "The command has failed after $n attempts." >&2 | ||
exit 1 | ||
fi | ||
} | ||
done | ||
} | ||
|
||
|
||
NS=argocd | ||
|
||
argocd login --core | ||
kubectl config set-context --current --namespace="$NS" | ||
|
||
# Create fink app | ||
argocd app create fink --dest-server https://kubernetes.default.svc \ | ||
--dest-namespace "$NS" \ | ||
--repo https://github.com/astrolabsoftware/fink-cd.git \ | ||
--path apps --revision "$FINK_CD_WORKBRANCH" \ | ||
|
||
# Sync fink app-of-apps | ||
argocd app sync fink | ||
|
||
# Synk fink apps | ||
argocd app sync strimzi | ||
# TODO Try to make it simpler, try a sync-wave on Strimzi Application? | ||
# see https://github.com/argoproj/argo-cd/discussions/16729 | ||
# and https://stackoverflow.com/questions/77750481/argocd-app-of-apps-ensuring-strimzi-child-app-health-before-kafka-app-sync | ||
retry kubectl wait --for condition=established --timeout=60s crd/kafkas.kafka.strimzi.io crd/kafkatopics.kafka.strimzi.io | ||
argocd app sync -l app.kubernetes.io/instance=fink |
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
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