Skip to content

Commit

Permalink
feat: init project
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zimnowoda committed Nov 26, 2024
1 parent 9112cd8 commit 6b602a5
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 0 deletions.
184 changes: 184 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"version": "0.2",
"allowCompoundWords": true,
"enableFiletypes": ["dockerfile", "md", "yaml"],
"enabledLanguageIds": ["json", "jsonc", "markdown", "typescript", "typescriptreact", "yaml", "yml"],
"ignorePaths": ["/CHANGELOG.md", "*.json"],
"ignoreRegExpList": ["/'s\\b/"],
"ignoreWords": [
"adrs",
"trivy",
"grype",
"KUBECFG",
"cainjector",
"CNAME",
"SBOM",
"Venafi",
"adrlog",
"adrlogstop",
"anyuid",
"acquired",
"trivy",
"appgw",
"auths",
"azuredns",
"bladibla",
"byor",
"clouddns",
"civo",
"crypted",
"descheduler",
"falco",
"CNAMEs",
"encodedkey",
"envs",
"ebpf",
"gcpckms",
"gotmpl",
"groupsname",
"gzrs",
"civo",
"Hashicorp",
"htpasswd",
"ingressgateway",
"istioctl",
"istiod",
"keyid",
"konstraint",
"kubeapps",
"kubes",
"kubeval",
"kured",
"Kaniko",
"Kapsule",
"madr",
"millis",
"mkilled",
"myapp",
"nindent",
"nothrow",
"nslookup",
"nygard",
"rAGRS",
"jwks",
"pids",
"ragzrs",
"registr",
"rego",
"roboll",
"rootdirectory",
"somekey",
"somesecretvalue",
"spotinst",
"platform",
"tanzu",
"tsdb",
"tigera",
"westeurope",
"xlarge",
"xsrf",
"tada",
"minikube",
"minio",
"vultr",
"Vmware",
"ovh",
"otel",
"thanos",
"kyverno",
"Paketo",
"tekton",
"cnpg",
"dockercfg"
],
"language": "en",
"words": [
"alertmanager",
"apigee",
"authn",
"authz",
"autodiscovery",
"autoscaler",
"backoff",
"basepath",
"binzx",
"blackbox",
"bootstrapper",
"calico",
"crds",
"creds",
"criticals",
"devops",
"devs",
"distro",
"egressgateway",
"envalid",
"esbenp",
"foxundermoon",
"fqdn",
"fqdns",
"gcloud",
"gitea",
"gitops",
"gogs",
"grafana",
"grpc",
"Hashicorp",
"helmfile",
"https",
"iconemoji",
"iconurl",
"istio",
"keycloak",
"kiali",
"knative",
"kpack",
"ksvc",
"kube",
"kubeclarity",
"kubeconfig",
"kubectl",
"kubelet",
"kubernetes",
"millicores",
"minikube",
"modsecurity",
"msteams",
"mtls",
"multitenant",
"nocheck",
"oidc",
"oltp",
"onprem",
"oomkilled",
"orgs",
"otomi",
"owasp",
"platform",
"postgres",
"postgresql",
"precached",
"precaches",
"printf",
"prio",
"pullsecret",
"rabbitmq",
"rbac",
"redkubes",
"renamings",
"repos",
"runbook",
"selinux",
"semver",
"showlogs",
"sysctls",
"tekton",
"testmode",
"textconv",
"trivy",
"unencrypted",
"untrusted",
"velero",
"xlarge"
]
}
43 changes: 43 additions & 0 deletions .github/workflows/validate-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Validate updates

on:
push:
paths:
- 'updates.yaml'
- 'updates.schema.json'
pull_request:
paths:
- 'updates.yaml'
- 'updates.schema.json'

jobs:
validate-yaml:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Ajv CLI and js-yaml
run: |
npm install -g ajv-cli
npm install -g js-yaml
- name: Validate updates.yaml
id: validate-updates
run: |
npx js-yaml updates.yaml > converted-file.json
ajv validate -s updates.schema.json -d converted-file.json
- name: Print success message
if: success()
run: echo "YAML file validated successfully against the schema."

- name: Print failure message
if: failure()
run: echo "YAML validation failed. Check the schema and the YAML file."
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# we don't allow json files in the root except package.json
.history
.tmp
*.bak
node_modules/
/coverage/
/dist/
/env/
*.DS_Store
*.env
*.new
.envrc
/.idea/
tmp
5 changes: 5 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tabWidth: 2
semi: false
trailingComma: all
singleQuote: true
printWidth: 500
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["christian-kohler.path-intellisense", "codezombiech.gitignore", "dbaeumer.vscode-eslint", "donjayamanne.githistory", "esbenp.prettier-vscode", "redhat.vscode-yaml", "streetsidesoftware.code-spell-checker", "timonwong.shellcheck", "xyz.local-history"]
}
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"cSpell.diagnosticLevel": "Hint",
"cSpell.enabled": true,
"editor.codeActionsOnSave": {
"source.addMissingImports": "explicit",
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "typescript"],
"files.associations": {
"*.yml": "yaml",
"CODE_OF_CONDUCT": "markdown",
"CONTRIBUTING": "markdown"
},
"files.exclude": {
"**/.history": true
},
"prettier.enable": true,
"yaml.schemas": {
"./updates.schema.json": "updates.yaml",
"https://json-schema.org/draft-07/schema": "updates.schema.json"
}
}

0 comments on commit 6b602a5

Please sign in to comment.