Updat charts
This commit is contained in:
@ -8,7 +8,7 @@ metadata:
|
||||
{{- include "tekton-pipelines.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
resources: ["secrets", "configmaps"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
apiVersion: v1
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user