generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1dbb3ac
Showing
424 changed files
with
16,660 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
; https://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[{Makefile,go.mod,go.sum,*.go,.gitmodules}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.md] | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[{Dockerfile,*.bash,*.sh}] | ||
indent_style = space | ||
indent_size = 4 |
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,13 @@ | ||
#shellcheck disable=SC2148,SC2155 | ||
export KUBECONFIG="$(expand_path ./kubernetes/kubeconfig)" | ||
export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)" | ||
# Venv | ||
PATH_add "$(expand_path ./.venv/bin)" | ||
export VIRTUAL_ENV="$(expand_path ./.venv)" | ||
export PYTHONDONTWRITEBYTECODE="1" | ||
# Talos | ||
export TALOSCONFIG="$(expand_path ./kubernetes/talosconfig)" | ||
# Bin | ||
PATH_add "$(expand_path ./.bin)" | ||
# Taskfile | ||
export TASK_X_MAP_VARIABLES=0 |
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,3 @@ | ||
* text=auto eol=lf | ||
*.yaml.j2 linguist-language=YAML | ||
*.sops.* diff=sopsdiffer |
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,17 @@ | ||
--- | ||
# Areas | ||
area/github: | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/**/*" | ||
area/kubernetes: | ||
- changed-files: | ||
- any-glob-to-any-file: "kubernetes/**/*" | ||
area/taskfile: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- ".taskfiles/**/*" | ||
- "Taskfile.yaml" | ||
# Clusters | ||
cluster/heavy-cluster: | ||
- changed-files: | ||
- any-glob-to-any-file: "kubernetes/**/*" |
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,36 @@ | ||
--- | ||
# Areas | ||
- name: area/github | ||
color: "0e8a16" | ||
- name: area/kubernetes | ||
color: "0e8a16" | ||
- name: area/taskfile | ||
color: "0e8a16" | ||
# Clusters | ||
- name: cluster/heavy-cluster | ||
color: "ffc300" | ||
# Renovate Types | ||
- name: renovate/container | ||
color: "027fa0" | ||
- name: renovate/github-action | ||
color: "027fa0" | ||
- name: renovate/grafana-dashboard | ||
color: "027fa0" | ||
- name: renovate/github-release | ||
color: "027fa0" | ||
- name: renovate/helm | ||
color: "027fa0" | ||
# Semantic Types | ||
- name: type/digest | ||
color: "ffeC19" | ||
- name: type/patch | ||
color: "ffeC19" | ||
- name: type/minor | ||
color: "ff9800" | ||
- name: type/major | ||
color: "f6412d" | ||
# Uncategorized | ||
- name: community | ||
color: "370fb2" | ||
- name: hold | ||
color: "ee0701" |
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,4 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- MeguminMaid |
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,44 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"docker:enableMajor", | ||
"replacements:k8s-registry-move", | ||
":automergeBranch", | ||
":disableRateLimiting", | ||
":dependencyDashboard", | ||
":semanticCommits", | ||
":skipStatusChecks", | ||
":timezone(America/Denver)", | ||
"github>heavybullets8/heavy-ops//.github/renovate/allowedVersions.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/autoMerge.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/commitMessage.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/customManagers.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/grafanaDashboards.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/groups.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/labels.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/packageRules.json5", | ||
"github>heavybullets8/heavy-ops//.github/renovate/semanticCommits.json5" | ||
], | ||
"dependencyDashboardTitle": "Renovate Dashboard 🤖", | ||
"suppressNotifications": ["prEditedNotification", "prIgnoreNotification"], | ||
"onboarding": false, | ||
"requireConfig": "ignored", | ||
"ignorePaths": ["**/*.sops.*", "**/.archive/**", "**/resources/**"], | ||
"flux": { | ||
"fileMatch": [ | ||
"(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$" | ||
] | ||
}, | ||
"helm-values": { | ||
"fileMatch": [ | ||
"(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$" | ||
] | ||
}, | ||
"kubernetes": { | ||
"fileMatch": [ | ||
"(^|/)\\.taskfiles/.+\\.ya?ml(?:\\.j2)?$", | ||
"(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$" | ||
] | ||
} | ||
} |
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,15 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchPackagePatterns": ["kopia"], | ||
"allowedVersions": "<999" | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"matchPackagePatterns": ["postgresql"], | ||
"allowedVersions": "<17" | ||
} | ||
] | ||
} |
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,21 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"description": ["Auto-merge container digests updates for trusted containers"], | ||
"matchDatasources": ["docker"], | ||
"automerge": true, | ||
"automergeType": "branch", | ||
"matchUpdateTypes": ["digest"], | ||
"matchPackagePatterns": ["ghcr.io/bjw-s", "ghcr.io/onedr0p"] | ||
}, | ||
{ | ||
"description": ["Auto-merge GitHub Actions for minor and patch"], | ||
"matchManagers": ["github-actions"], | ||
"matchDatasources": ["github-tags"], | ||
"automerge": true, | ||
"automergeType": "branch", | ||
"matchUpdateTypes": ["minor", "patch"] | ||
} | ||
] | ||
} |
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,16 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"commitMessageTopic": "{{depName}}", | ||
"commitMessageExtra": "to {{newVersion}}", | ||
"commitMessageSuffix": "", | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["helm"], | ||
"commitMessageTopic": "chart {{depName}}" | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"commitMessageTopic": "image {{depName}}" | ||
} | ||
] | ||
} |
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,29 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"description": ["Process custom dependencies"], | ||
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"], | ||
"matchStrings": [ | ||
// # renovate: datasource=github-releases depName=k3s-io/k3s | ||
// k3s_release_version: &version v1.29.0+k3s1 | ||
// # renovate: datasource=helm depName=cilium repository=https://helm.cilium.io | ||
// version: 1.15.1 | ||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\\n.+: (&\\S+\\s)?(?<currentValue>\\S+)", | ||
// # renovate: datasource=github-releases depName=rancher/system-upgrade-controller | ||
// https://github.com/rancher/system-upgrade-controller/releases/download/v0.13.2/crd.yaml | ||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n.+/(?<currentValue>(v|\\d)[^/]+)" | ||
], | ||
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}" | ||
}, | ||
{ | ||
"customType": "regex", | ||
"description": ["Process CloudnativePG Postgresql version"], | ||
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"], | ||
"matchStrings": ["imageName: (?<depName>\\S+):(?<currentValue>.*\\-.*)"], | ||
"datasourceTemplate": "docker", | ||
"versioningTemplate": "redhat" | ||
} | ||
] | ||
} |
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,34 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"customDatasources": { | ||
"grafana-dashboards": { | ||
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}", | ||
"format": "json", | ||
"transformTemplates": ["{\"releases\":[{\"version\": $string(revision)}]}"] | ||
} | ||
}, | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"description": ["Process Grafana dashboards"], | ||
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"], | ||
"matchStrings": ["depName=\"(?<depName>.*)\"\\n(?<indentation>\\s+)gnetId: (?<packageName>\\d+)\\n.+revision: (?<currentValue>\\d+)"], | ||
"autoReplaceStringTemplate": "depName=\"{{{depName}}}\"\n{{{indentation}}}gnetId: {{{packageName}}}\n{{{indentation}}}revision: {{{newValue}}}", | ||
"datasourceTemplate": "custom.grafana-dashboards", | ||
"versioningTemplate": "regex:^(?<major>\\d+)$" | ||
} | ||
], | ||
"packageRules": [ | ||
{ | ||
"addLabels": ["renovate/grafana-dashboard"], | ||
"automerge": true, | ||
"automergeType": "branch", | ||
"matchDatasources": ["custom.grafana-dashboards"], | ||
"matchUpdateTypes": ["major"], | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "grafana-dashboards", | ||
"commitMessageTopic": "dashboard {{depName}}", | ||
"commitMessageExtra": "( {{currentVersion}} → {{newVersion}} )" | ||
} | ||
] | ||
} |
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,56 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"description": ["1Password Connect Group"], | ||
"groupName": "1Password Connnect", | ||
"matchPackagePatterns": ["1password/connect"], | ||
"matchDatasources": ["docker"], | ||
"group": { | ||
"commitMessageTopic": "{{{groupName}}} group" | ||
}, | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": ["Actions Runner Controller Group"], | ||
"groupName": "Actions Runner Controller", | ||
"matchPackagePatterns": ["gha-runner-scale-set"], | ||
"matchDatasources": ["docker", "helm"], | ||
"group": { | ||
"commitMessageTopic": "{{{groupName}}} group" | ||
}, | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": ["Dragonfly Operator Group"], | ||
"groupName": "Dragonfly Operator", | ||
"matchPackagePatterns": ["dragonfly(?:db)?.operator"], | ||
"matchDatasources": ["docker", "github-releases"], | ||
"group": { | ||
"commitMessageTopic": "{{{groupName}}} group" | ||
}, | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": ["Flux Group"], | ||
"groupName": "Flux", | ||
"matchPackagePatterns": ["fluxcd"], | ||
"matchDatasources": ["docker", "github-tags"], | ||
"versioning": "semver", | ||
"group": { | ||
"commitMessageTopic": "{{{groupName}}} group" | ||
}, | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": ["Talos Group"], | ||
"groupName": "Talos", | ||
"matchPackagePatterns": ["siderolabs/talosctl", "siderolabs/installer"], | ||
"matchDatasources": ["docker"], | ||
"group": { | ||
"commitMessageTopic": "{{{groupName}}} group" | ||
}, | ||
"separateMinorPatch": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["major"], | ||
"labels": ["type/major"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["minor"], | ||
"labels": ["type/minor"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["patch"], | ||
"labels": ["type/patch"] | ||
}, | ||
{ | ||
"matchUpdateTypes": ["digest"], | ||
"labels": ["type/digest"] | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"addLabels": ["renovate/container"] | ||
}, | ||
{ | ||
"matchDatasources": ["helm"], | ||
"addLabels": ["renovate/helm"] | ||
}, | ||
{ | ||
"matchDatasources": ["github-releases", "github-tags"], | ||
"addLabels": ["renovate/github-release"] | ||
}, | ||
{ | ||
"matchManagers": ["github-actions"], | ||
"addLabels": ["renovate/github-action"] | ||
} | ||
] | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"description": ["Loose versioning for non-semver packages"], | ||
"matchDatasources": ["docker"], | ||
"matchPackagePatterns": ["plex"], | ||
"versioning": "loose" | ||
}, | ||
{ | ||
"description": ["Custom schedule for frequently updated packages"], | ||
"matchDataSources": ["docker", "helm"], | ||
"matchPackagePatterns": ["reloader"], | ||
"schedule": ["on the first day of the month"] | ||
}, | ||
{ | ||
"description": ["Custom versioning for k3s"], | ||
"matchDatasources": ["github-releases"], | ||
"matchPackagePatterns": ["k3s"], | ||
"versioning": "regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?<compatibility>\\+k3s)(?<build>\\d+)$" | ||
} | ||
] | ||
} |
Oops, something went wrong.