Updat charts

This commit is contained in:
2024-04-06 19:56:56 +02:00
parent e97a9f7f24
commit 6ae04b34f8
30 changed files with 840 additions and 4 deletions

View File

@ -8,7 +8,7 @@ metadata:
{{- include "tekton-pipelines.labels" . | nindent 4 }}
rules:
- apiGroups: [""]
resources: ["secrets"]
resources: ["secrets", "configmaps"]
verbs: ["*"]
---
apiVersion: v1

View File

@ -31,6 +31,14 @@ spec:
| base64 -d > /tmp/outputs/inventory.yaml
chmod 0600 /tmp/outputs/ssh_key
chmod 0600 /tmp/outputs/ssh_key.pub
- name: annonate-an-env-cm
image: alpine/k8s:1.29.2
script: |-
#!/bin/sh
kubectl annotate --overwrite configmap \
"$(params.environment)" \
--namespace "$(params.namespace)" \
"softplayer.net/status=servers-configuration"
- name: prepare-servers
image: git.badhouseplants.net/softplayer/softplayer-coskgne:latest
env:

View File

@ -35,10 +35,10 @@ spec:
#!/bin/sh
kubectl delete secret \
"$(params.environment)-inventory" \
--namespace "$(params.namespace)"
--namespace "$(params.namespace)" || true
kubectl delete secret \
"$(params.environment)-ssh" \
--namespace "$(params.namespace)"
--namespace "$(params.namespace)" || true
kubectl delete secret \
"$(params.environment)-config" \
--namespace "$(params.namespace)"
--namespace "$(params.namespace)" || true

View File

@ -22,6 +22,14 @@ spec:
| yq '.data.kubeconfig' \
| base64 -d > /tmp/outputs/config
chmod 0600 /tmp/outputs/config
- name: annonate-an-env-cm
image: alpine/k8s:1.29.2
script: |-
#!/bin/sh
kubectl annotate --overwrite configmap \
"$(params.environment)" \
--namespace "$(params.namespace)" \
"softplayer.net/status=installing-dependencies"
- name: deploy-helmfile
image: ghcr.io/helmfile/helmfile:v0.163.1
env:
@ -32,6 +40,14 @@ spec:
mkdir -p /src
git clone https://git.badhouseplants.net/softplayer/softplayer-helmfile.git /src/helmfile
cd /src/helmfile/workload && helmfile sync
- name: annonate-an-env-cm
image: alpine/k8s:1.29.2
script: |-
#!/bin/sh
kubectl annotate --overwrite configmap \
"$(params.environment)" \
--namespace "$(params.namespace)" \
"softplayer.net/status=ready"
workspaces:
- name: outputs
description: A folder to store outputs

View File

@ -22,6 +22,14 @@ spec:
| yq '.data."ssh_key.pub"' \
| base64 -d > /tmp/outputs/ssh_key.pub
chmod 0600 /tmp/outputs/ssh_key.pub
- name: annonate-an-env-cm
image: alpine/k8s:1.29.2
script: |-
#!/bin/sh
kubectl annotate --overwrite configmap \
"$(params.environment)" \
--namespace "$(params.namespace)" \
"softplayer.net/status=infra-bootstrapping"
- name: create-hetzner-infra
image: git.badhouseplants.net/softplayer/softplayer-coskgne:latest
env: