Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Prettier #308

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
6a98eea
fix: remove use for VIRTUAL_ENV
onedr0p Dec 22, 2024
4b4a318
fix: update talos service discovery (#1662)
onedr0p Dec 22, 2024
d621558
fix(cloudflared): use `originRequest.noTLSVerify=true` on staging cert
onedr0p Dec 24, 2024
73fb211
fix(task-kubernetes:apply-ks): --dry-run was appended to the path, ma…
Aviator-Coding Dec 26, 2024
96eda88
fix: update apply-ks task to be ks-apply or ks-delete
onedr0p Dec 26, 2024
68f2b0b
feat(github-action): update image ghcr.io/allenporter/flux-local to v…
renovate[bot] Dec 26, 2024
282b177
fix(container): update image ghcr.io/siderolabs/installer to v1.9.1 (…
renovate[bot] Dec 26, 2024
e2a3318
feat(container): update image app-template to v3.6.0 (#1667)
renovate[bot] Dec 26, 2024
a12dd0e
fix(github-action): update image ghcr.io/allenporter/flux-local to v6…
renovate[bot] Dec 26, 2024
5711d9f
chore: Update README
onedr0p Dec 29, 2024
b731ccc
feat(mise): use pip instead of uv (#1668)
onedr0p Dec 29, 2024
90d60f3
chore: update readme
onedr0p Dec 30, 2024
11b1465
fix(talos): use service discovery defaults - requires reboot
onedr0p Dec 30, 2024
3256356
fix(helm): update chart kubelet-csr-approver to 1.2.4 (#1669)
renovate[bot] Dec 31, 2024
4739f00
feat(github-action)!: Update image ghcr.io/allenporter/flux-local to …
renovate[bot] Jan 1, 2025
9dc4157
chore: update readme
onedr0p Jan 1, 2025
0804079
chore: update readme
onedr0p Jan 1, 2025
4398b2d
chore: update readme
onedr0p Jan 1, 2025
9ddfdbb
chore: update readme
onedr0p Jan 1, 2025
5f3c2c5
fix: rename mise config to .mise.toml and remove requirements.txt on …
onedr0p Jan 1, 2025
ea42f08
fix: move the config sample to config on task init
onedr0p Jan 2, 2025
269eb5d
chore: update config sample
onedr0p Jan 2, 2025
917d471
fix: separate out bootstrap app task into own task
onedr0p Jan 2, 2025
ac4321b
chore: update readme
onedr0p Jan 3, 2025
089123b
fix: remove talos health check
onedr0p Jan 3, 2025
70fbd00
chore: update workflows and clean task (#1672)
onedr0p Jan 3, 2025
abb8323
feat!: separate templating and bootstrap process connotations (#1674)
onedr0p Jan 4, 2025
3659673
fix(ingress-nginx): make renovate happy
onedr0p Jan 4, 2025
84ec8e2
feat(helm): update chart ingress-nginx to 4.12.0 (#1677)
renovate[bot] Jan 4, 2025
82366a9
fix(template): remove options for extra manifests and extension confi…
onedr0p Jan 5, 2025
c2d4dab
feat: update config options and taskfiles (#1681)
onedr0p Jan 5, 2025
cd92b84
correct github private key reference in cluster.yaml.j2 (#1682)
rtooker Jan 5, 2025
7c096de
feat: remove kubelet-csr-approver
onedr0p Jan 6, 2025
608d6ef
fix: prevent helmfile apps from restarting when flux takes over
onedr0p Jan 6, 2025
ce59515
feat: better organize talhelper patches
onedr0p Jan 6, 2025
5612222
fix: github privatekey var
onedr0p Jan 7, 2025
fd1c9fd
feat!: deploy flux with helm (#1684)
onedr0p Jan 7, 2025
615550e
chore: flux group is not needed anymore
onedr0p Jan 8, 2025
8e12733
fix: update sops configuration file
onedr0p Jan 8, 2025
ad8576b
chore: try to figure out what sed to use
onedr0p Jan 8, 2025
ce11e15
chore: use the correct naming on that last commit
onedr0p Jan 8, 2025
c7712d6
feat: allow flux to gracefully take over the helmfile apps
onedr0p Jan 8, 2025
0f64b6d
feat: also allow for graceful takeover of spegel when update is released
onedr0p Jan 8, 2025
fa8da56
fix ssl cert for ingresses (#1685)
rtooker Jan 9, 2025
ec5a3ec
feat: deploy flux with flux-operator (#1686)
onedr0p Jan 9, 2025
0d4fcca
fix: move github folder into flux instance
onedr0p Jan 9, 2025
17a88ac
chore(deps): update helmrepository to source.toolkit.fluxcd.io/v1 (#1…
renovate[bot] Jan 10, 2025
707e514
feat(container)!: Update image docker.io/cloudflare/cloudflared to v2…
renovate[bot] Jan 10, 2025
5133a5d
chore: update renovate config
onedr0p Jan 10, 2025
911969b
fix(container): update ghcr.io/druggeri/nut_exporter ( 3.1.1 → 3.1.3 )
renovate[bot] Jan 10, 2025
db70808
fix(helm): update openebs ( 4.1.1 → 4.1.2 )
renovate[bot] Jan 10, 2025
dec722c
Added more schemas (#1689)
brunnels Jan 10, 2025
b6af3ca
feat(container): update flux operator group ( 0.12.0 → 0.13.0 ) (#1692)
renovate[bot] Jan 10, 2025
174a476
fix(helm): update openebs ( 4.1.1 → 4.1.2 ) (#1691)
renovate[bot] Jan 10, 2025
4211253
fix(container): update spegel ( v0.0.28 → v0.0.29 ) (#1690)
renovate[bot] Jan 10, 2025
35c0db6
feat: implement cluster-meta dir
onedr0p Jan 10, 2025
77757fc
fix: english is hard
onedr0p Jan 10, 2025
0d089e0
Merge pull request #303 from Tanguille/renovate/ghcr.io-druggeri-nut_…
Tanguille Jan 11, 2025
68a2ad3
Merge pull request #304 from Tanguille/renovate/openebs-4.x
Tanguille Jan 11, 2025
e28034d
Merge pull request #305 from Tanguille/renovate/spegel-0.x
Tanguille Jan 11, 2025
48e54bd
feat(config): require schematic id on nodes
onedr0p Jan 11, 2025
ecb0863
Merge remote-tracking branch 'upstream/main'
Tanguille Jan 11, 2025
b771fec
style: format code with Prettier
deepsource-autofix[bot] Jan 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
area/bootstrap:
area/templates:
- changed-files:
- any-glob-to-any-file: bootstrap/**/*
- any-glob-to-any-file: templates/**/*
area/github:
- changed-files:
- any-glob-to-any-file: .github/**/*
Expand Down
26 changes: 12 additions & 14 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
---
# Area
- { name: "area/bootstrap", color: "0e8a16" }
- { name: "area/github", color: "0e8a16" }
- { name: "area/kubernetes", color: "0e8a16" }
- { name: "area/taskfile", color: "0e8a16" }
# Distro
- { name: "distro/talos", color: "ffc300" }
- { name: "area/templates", color: "0e8a16" }
- { name: "area/github", color: "0e8a16" }
- { name: "area/kubernetes", color: "0e8a16" }
- { name: "area/taskfile", color: "0e8a16" }
# Renovate
- { name: "renovate/container", color: "027fa0" }
- { name: "renovate/github-action", color: "027fa0" }
- { name: "renovate/container", color: "027fa0" }
- { name: "renovate/github-action", color: "027fa0" }
- { name: "renovate/github-release", color: "027fa0" }
- { name: "renovate/helm", color: "027fa0" }
- { name: "renovate/helm", color: "027fa0" }
# Semantic Type
- { name: "type/patch", color: "ffec19" }
- { name: "type/minor", color: "ff9800" }
- { name: "type/major", color: "f6412d" }
- { name: "type/break", color: "f6412d" }
- { name: "type/patch", color: "ffec19" }
- { name: "type/minor", color: "ff9800" }
- { name: "type/major", color: "f6412d" }
- { name: "type/break", color: "f6412d" }
# Uncategorized
- { name: "hold/upstream", color: "ee0701" }
- { name: "hold", color: "ee0701" }
69 changes: 27 additions & 42 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,55 +1,40 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
'config:recommended',
'docker:enableMajor',
':automergeBranch',
':disableRateLimiting',
':dependencyDashboard',
':semanticCommits',
'github>tanguille/cluster//.github/renovate/allowedVersions.json5',
'github>tanguille/cluster//.github/renovate/autoMerge.json5',
'github>tanguille/cluster//.github/renovate/commitMessage.json5',
'github>tanguille/cluster//.github/renovate/customManagers.json5',
'github>tanguille/cluster//.github/renovate/grafanaDashboards.json5',
'github>tanguille/cluster//.github/renovate/groups.json5',
'github>tanguille/cluster//.github/renovate/labels.json5',
'github>tanguille/cluster//.github/renovate/packageRules.json5',
'github>tanguille/cluster//.github/renovate/semanticCommits.json5',
"config:recommended",
"docker:enableMajor",
":automergeBranch",
":disableRateLimiting",
":dependencyDashboard",
":semanticCommits",
"github>tanguille/cluster//.github/renovate/allowedVersions.json5",
"github>tanguille/cluster//.github/renovate/autoMerge.json5",
"github>tanguille/cluster//.github/renovate/commitMessage.json5",
"github>tanguille/cluster//.github/renovate/customManagers.json5",
"github>tanguille/cluster//.github/renovate/grafanaDashboards.json5",
"github>tanguille/cluster//.github/renovate/groups.json5",
"github>tanguille/cluster//.github/renovate/labels.json5",
"github>tanguille/cluster//.github/renovate/packageRules.json5",
"github>tanguille/cluster//.github/renovate/semanticCommits.json5",
],
dependencyDashboard: true,
dependencyDashboardTitle: 'Renovate Dashboard 🤖',
suppressNotifications: [
'prEditedNotification',
'prIgnoreNotification',
],
rebaseWhen: 'conflicted',
ignorePaths: [
'**/*.sops.*',
],
flux: {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$',
],
dependencyDashboardTitle: "Renovate Dashboard 🤖",
suppressNotifications: ["prEditedNotification", "prIgnoreNotification"],
rebaseWhen: "conflicted",
ignorePaths: ["**/*.sops.*"],
flux: {
fileMatch: ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"],
},
'helm-values': {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$',
],
"helm-values": {
fileMatch: ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"],
},
helmfile: {
fileMatch: [
'(^|/)helmfile\\.ya?ml(?:\\.j2)?$',
],
fileMatch: ["(^|/)helmfile\\.ya?ml(?:\\.j2)?$"],
},
kubernetes: {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$',
],
fileMatch: ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"],
},
kustomize: {
fileMatch: [
'(^|/)kustomization\\.ya?ml(?:\\.j2)?$',
],
fileMatch: ["(^|/)kustomization\\.ya?ml(?:\\.j2)?$"],
},
}
6 changes: 3 additions & 3 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
args: >-
diff ${{ matrix.resources }}
--unified 6
--path /github/workspace/pull/${{ matrix.paths }}/flux
--path-orig /github/workspace/default/${{ matrix.paths }}/flux
--path /github/workspace/pull/${{ matrix.paths }}/flux/cluster
--path-orig /github/workspace/default/${{ matrix.paths }}/flux/cluster
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart"
--limit-bytes 10000
--all-namespaces
--sources "home-kubernetes"
--sources "flux-system"
--output-file diff.patch

- name: Generate Diff
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/kubeconform.yaml

This file was deleted.

69 changes: 40 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,51 @@ name: "Release"
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
- cron: "0 0 1 * *" # 1st of every month at midnight

jobs:
release:
if: ${{ github.repository == 'onedr0p/cluster-template' }}
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Previous Release Tag and Determine Next Tag
id: determine-next-tag
uses: actions/github-script@v7
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
result-encoding: string
script: |
const { data: releases } = await github.rest.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 1,
});

let previousTag = "0.0.0"; // Default if no previous release exists
if (releases.length > 0) {
previousTag = releases[0].tag_name;
}

const [previousMajor, previousMinor, previousPatch] = previousTag.split('.').map(Number);
const currentYear = new Date().getFullYear();
const currentMonth = new Date().getMonth() + 1; // Months are 0-indexed in JavaScript

const nextMajorMinor = `${currentYear}.${currentMonth}`;
let nextPatch;

if (`${previousMajor}.${previousMinor}` === nextMajorMinor) {
console.log("Month release already exists for the year. Incrementing patch number by 1.");
nextPatch = previousPatch + 1;
} else {
console.log("Month release does not exist for the year. Starting with patch number 0.");
nextPatch = 0;
}

return `${nextMajorMinor}.${nextPatch}`;

- name: Create Release
shell: bash
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
# Retrieve previous release tag
previous_tag="$(gh release list --limit 1 | awk '{ print $1 }')"
previous_major="${previous_tag%%\.*}"
previous_minor="${previous_tag#*.}"
previous_minor="${previous_minor%.*}"
previous_patch="${previous_tag##*.}"
# Determine next release tag
next_major_minor="$(date +'%Y').$(date +'%-m')"
if [[ "${previous_major}.${previous_minor}" == "${next_major_minor}" ]]; then
echo "Month release already exists for year, incrementing patch number by 1"
next_patch="$((previous_patch + 1))"
else
echo "Month release does not exist for year, setting patch number to 0"
next_patch="0"
fi
# Create release
release_tag="${next_major_minor}.${next_patch}"
gh release create "${release_tag}" \
--repo="${GITHUB_REPOSITORY}" \
--title="${release_tag}" \
--generate-notes
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
tag: "${{ steps.determine-next-tag.outputs.result }}"
token: "${{ secrets.GITHUB_TOKEN }}"
8 changes: 4 additions & 4 deletions mise.toml → .mise.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[env]
_.python.venv = { path = "{{config_root}}/.venv", create = true }
KUBECONFIG = "{{config_root}}/kubeconfig"
PYTHONDONTWRITEBYTECODE = "1"
SOPS_AGE_KEY_FILE = "{{config_root}}/age.key"
TALOSCONFIG = "{{config_root}}/kubernetes/bootstrap/talos/clusterconfig/talosconfig"
TASK_X_ENV_PRECEDENCE = 1
TASK_X_MAP_VARIABLES = 0

[tasks.pip]
description = "Install Python dependencies"
run = "pip install -r requirements.txt"
[tasks.deps]
description = "Install dependencies"
run = "uv pip install -r requirements.txt"

[tools]
python = "3.13"
uv = "latest"
"aqua:budimanjojo/talhelper" = "latest"
"aqua:cloudflare/cloudflared" = "latest"
"aqua:FiloSottile/age" = "latest"
Expand Down
Loading
Loading