Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root = true

[*]
[{*,.*}]
charset = utf-8
indent_style = space
insert_final_newline = true
Expand All @@ -12,6 +12,10 @@ end_of_line = lf
[{*.bat,*.cmd}]
end_of_line = crlf

[*.go]
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
end_of_line = lf

[*.md]
# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph)
eclint_indent_style = unset
Expand All @@ -31,4 +35,4 @@ indent_size = 4
profile = black

[*.sh]
indent_size = 4
indent_size = 4
36 changes: 3 additions & 33 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,9 @@ Dockerfile text
# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
*.go text eol=lf

###############################
# Git Large File System (LFS) #
###############################

# Archives
*.7z filter=lfs diff=lfs merge=lfs -text
*.br filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text

# Documents
*.pdf filter=lfs diff=lfs merge=lfs -text

# Images
*.gif filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text

# Fonts
*.woff2 filter=lfs diff=lfs merge=lfs -text

# Other
*.exe filter=lfs diff=lfs merge=lfs -text



##########################################
# Basic .gitattributes for a Java repo.#
##########################################
Expand Down Expand Up @@ -121,7 +91,7 @@ Dockerfile text

# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
mvnw text eol=lf
gradlew text eol=
gradlew text eol=lf

##########################################
# Basic .gitattributes for a python repo.#
Expand Down Expand Up @@ -153,4 +123,4 @@ gradlew text eol=
# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).
# (among others).
42 changes: 21 additions & 21 deletions .github/auto-labeler-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
conventional-commits:
- type: "fix"
nouns: ["FIX", "Fix", "fix", "FIXED", "Fixed", "fixed"]
labels: ["bug"]
- type: "feature"
nouns: ["FEATURE", "Feature", "feature", "FEAT", "Feat", "feat"]
labels: ["enhancement"]
- type: "breaking_change"
nouns: ["BREAKING CHANGE", "BREAKING", "MAJOR"]
labels: ["breaking-change"]
- type: "refactor"
nouns: ["refactor", "Refactor"]
labels: ["refactor"]
- type: "documentation"
nouns: ["doc", "document", "documentation"]
labels: ["documentation"]
- type: "build"
nouns: ["build", "rebuild"]
labels: ["build"]
- type: "config"
nouns: ["config", "conf", "cofiguration", "configure"]
labels: ["config"]
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
labels: ['bug']
- type: 'feature'
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
labels: ['enhancement']
- type: 'breaking_change'
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
labels: ['breaking-change']
- type: 'refactor'
nouns: ['refactor', 'Refactor']
labels: ['refactor']
- type: 'documentation'
nouns: ['docs', 'doc', 'document', 'documentation']
labels: ['documentation']
- type: 'build'
nouns: ['build', 'rebuild']
labels: ['build']
- type: 'config'
nouns: ['config', 'conf', 'configuration', 'configure']
labels: ['config']
22 changes: 22 additions & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---

quiet: true

skip-check:
# https://www.checkov.io/5.Policy%20Index/kubernetes.html
- CKV_K8S_15 # Image Pull Policy should be Always
- CKV_K8S_21 # The default namespace should not be used
- CKV_K8S_22 # Use read-only filesystem for containers where possible
- CKV_K8S_35 # Prefer using secrets as files over secrets as environment variables
- CKV_K8S_38 # Ensure that Service Account Tokens are only mounted where necessary
- CKV_K8S_40 # Containers should run as a high UID to avoid host conflict
- CKV_K8S_43 # Image should use digest
- CKV2_K8S_5 # No ServiceAccount/Node should be able to read all secrets
- CKV2_K8S_6 # Minimize the admission of pods which lack an associated NetworkPolicy
# https://www.checkov.io/5.Policy%20Index/dockerfile.html
- CKV_DOCKER_2 # Ensure that HEALTHCHECK instructions have been added to container images
# https://www.checkov.io/5.Policy%20Index/secrets.html
- CKV_SECRET_6 # Base64 High Entropy String
# https://www.checkov.io/5.Policy%20Index/github_actions.html
- CKV2_GHA_1 # Ensure top-level permissions are not set to write-all
- CKV_GHA_7 # The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty.
17 changes: 17 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
env:
es6: true

extends:
- "eslint:recommended"

parser: "@typescript-eslint/parser"

plugins:
- "@typescript-eslint"

rules:
no-undef: 'warn'

globals:
module: "writable"
2 changes: 2 additions & 0 deletions .github/linters/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 120
2 changes: 2 additions & 0 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
run:
timeout: 10m
9 changes: 9 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"threshold": 2,
"ignore": [
"**/.git/**",
"**/charts/*/templates/*/*.yaml",
"**/charts/*/templates/*/*/*.yaml",
"**/docs/examples/**"
]
}
65 changes: 65 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
#### Config file for yamllint
# Rules: https://yamllint.readthedocs.io/en/stable/rules.html

# Exclude not required files
# ignore-from-file:
# - .gitignore
# - .yamlignore

rules:
braces:
min-spaces-inside: 1
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
colons:
max-spaces-before: 0
max-spaces-after: -1
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
level: warning
require-starting-space: true
min-spaces-from-content: 1
comments-indentation:
level: warning
document-end: disable
document-start: disable
# level: warning
# present: false
empty-lines:
level: warning
max: 2
max-start: 0
max-end: 2
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
hyphens:
max-spaces-after: 1
indentation:
spaces: 2
indent-sequences: false
check-multi-line-strings: false
key-duplicates: enable
key-ordering: disable
line-length: disable
# max: 100
# allow-non-breakable-words: true
# allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: disable
new-lines:
type: unix
octal-values:
forbid-implicit-octal: false
forbid-explicit-octal: false
trailing-spaces: enable
truthy: disable
5 changes: 5 additions & 0 deletions .github/linters/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- 'shellcheck reported issue in this script: SC2086:info.+'
- 'shellcheck reported issue in this script: SC2002:style.+'
Loading