-
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
1 parent
9112cd8
commit 6b602a5
Showing
6 changed files
with
275 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,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" | ||
] | ||
} |
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,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." |
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,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 |
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,5 @@ | ||
tabWidth: 2 | ||
semi: false | ||
trailingComma: all | ||
singleQuote: true | ||
printWidth: 500 |
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 @@ | ||
{ | ||
"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"] | ||
} |
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,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" | ||
} | ||
} |