Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-bootstrap
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4473dc88
authored
2022-03-29 18:21:53 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Start working on a helmfile runner.
1 parent
11c3813d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
k8s-bootstrap.yaml
k8s-bootstrap.yaml
View file @
4473dc8
...
...
@@ -9,8 +9,6 @@ data:
SSH_CONFIG
:
|
StrictHostKeyChecking no
LogLevel VERBOSE
#-i /tmp/cluster-ssh/ssh-private-key
---
apiVersion
:
v1
kind
:
ConfigMap
...
...
@@ -22,11 +20,22 @@ data:
#!/bin/sh
set -ex
# FIXME: don't hard-code this.
ls -alR $HOME
ssh -v git@gitlab.brainfood.com exit || true
GIT_SSH_COMMAND="ssh -v"
export GIT_SSH_COMMAND
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
cd /tmp/git-storage/k8s-start-of-day
if [ -e helmfile.yaml ]; then
echo helmfile > /tmp/git-storage/repo-type
elif [ -e kustomization.yaml ]; then
echo kustomize > /tmp/git-storage/repo-type
else [
echo unknown > /tmp/git-storage/repo-type
fi
check-mode
:
|
#!/bin/sh
set -ex
if [ $(cat /tmp/git-storage/repo-type) = $1 ]; then
shift
"$@"
fi
---
apiVersion
:
batch/v1
kind
:
Job
...
...
@@ -97,6 +106,16 @@ spec:
mountPath
:
/tmp/git-storage
command
:
[
"
/tmp/k8s-bootstrap-scripts/clone-start-of-day"
]
-
name
:
try-helmfile
image
:
quay.io/roboll/helmfile
working_dir
:
/tmp/git-storage/k8s-start-of-day
command
:
[
"
/tmp/k8s-bootstrap-scripts/check-mode"
,
"
helmfile"
,
"
/usr/local/bin/helmfile"
]
volumeMounts
:
-
name
:
git-storage
mountPath
:
/tmp/git-storage
-
name
:
k8s-bootstrap-scripts
mountPath
:
/tmp/k8s-bootstrap-scripts
containers
:
-
name
:
show-status
image
:
bash
...
...
Please
register
or
sign in
to post a comment