latest changes

This commit is contained in:
Sebastian Wendel 2022-06-27 01:33:57 +02:00
parent 18e33135b2
commit 629e99f69b
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
12 changed files with 103 additions and 56 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.go text eol=lf

2
.gitignore vendored
View file

@ -4,4 +4,4 @@
.DS_Store .DS_Store
.direnv .direnv
temp temp
charts charts

20
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,20 @@
---
default:
image: nixos/nix:latest
retry: 2
before_script:
- nix-channel --update
stages:
- test
- build
- release
- deploy
lint.yaml:
script: yamllint -f auto .
stage: test
lint.markdown:
script: mdl .
stage: test

View file

@ -25,4 +25,4 @@
.vscode/ .vscode/
# Nix # Nix
.direnv .direnv

1
.mdlrc Normal file
View file

@ -0,0 +1 @@
rules "MD003", "MD006", "MD011", "MD018", "MD019", "MD020", "MD021", "MD025", "MD027", "MD028"

12
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,12 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
exclude: ^templates/
- id: mixed-line-ending
- id: trailing-whitespace
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: check-merge-conflict

40
.yamllint.yaml Normal file
View file

@ -0,0 +1,40 @@
---
extends: default
yaml-files:
- "*.yaml"
- "*.yml"
- ".yaml*"
ignore: |
./charts
.direnv
locale: en_US.UTF-8
rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
require-starting-space: true
level: warning
comments-indentation:
level: warning
document-start:
level: warning
document-end: disable
empty-lines: disable
empty-values: enable
hyphens: enable
indentation:
spaces: 2
indent-sequences: consistent
level: warning
line-length:
max: 150
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
key-duplicates: enable
key-ordering: disable
new-line-at-end-of-file: enable
new-lines: enable
trailing-spaces: enable
truthy: enable

View file

@ -4,75 +4,51 @@ with pkgs; mkShell {
name = "fcoscore-chart"; name = "fcoscore-chart";
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
# tooling chart-testing
libcap delve
typos dgoss
grpcurl dotenv-linter
httpie editorconfig-checker
jq
pre-commit
python310Packages.pip
bazel_5
git git
git-lfs git-lfs
gitlint gitlint
gnumake gnumake
go go
go-outline go-outline
go-tools go-tools
gocode gocode
gocode-gomod gocode-gomod
delve
godef godef
golangci-lint golangci-lint
gopkgs gopkgs
gopls gopls
ansible-lint goss
dotenv-linter grype
editorconfig-checker
hadolint hadolint
mdl
mdsh
pre-commit
shellcheck
shfmt
yaml-language-server
yamllint
rnix-lsp
nix-build-uncached
nix-linter
nixpkgs-fmt
docker
k9s k9s
kube3d kube3d
kubebuilder
kubeconform
kubectl kubectl
kubectx kubectx
kubernetes-helm kubernetes-helm
kustomize
kubebuilder
kubeval kubeval
kubeval-schema kubeval-schema
kubeconform kustomize
chart-testing mdl
mdsh
nix-build-uncached
nix-linter
nixpkgs-fmt
pre-commit
rnix-lsp
shfmt
skaffold skaffold
dgoss
goss
grype
trivy trivy
yamale
chart-testing
ansible
glab
vscodium-fhs vscodium-fhs
yamale
# vscodium.fhsWithPackages (pkgs: with pkgs; [] ) yaml-language-server
yamllint
]; ];
postInstall = '' postInstall = ''

View file

@ -1,11 +1,11 @@
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
________ ________ ________ ________ ___ _________ ___ ___ ________ ________ ________ ________ ________ ________ ___ _________ ___ ___ ________ ________
|\ _____\\ __ \|\ __ \ |\ ____\|\ \|\___ ___\ |\ \ / /| |\ __ \|\ ____\ |\ _____\\ __ \|\ __ \ |\ ____\|\ \|\___ ___\ |\ \ / /| |\ __ \|\ ____\
\ \ \__/\ \ \|\ \ \ \|\ /_ \ \ \___|\ \ \|___ \ \_| \ \ \/ / / \ \ \|\ \ \ \___|_ \ \ \__/\ \ \|\ \ \ \|\ /_ \ \ \___|\ \ \|___ \ \_| \ \ \/ / / \ \ \|\ \ \ \___|_
\ \ __\\ \ __ \ \ __ \ \ \ \ \ \ \ \ \ \ \ \ / / \ \ \\\ \ \_____ \ \ \ __\\ \ __ \ \ __ \ \ \ \ \ \ \ \ \ \ \ \ / / \ \ \\\ \ \_____ \
\ \ \_| \ \ \ \ \ \ \|\ \ \ \ \____\ \ \ \ \ \ \/ / / \ \ \\\ \|____|\ \ \ \ \_| \ \ \ \ \ \ \|\ \ \ \ \____\ \ \ \ \ \ \/ / / \ \ \\\ \|____|\ \
\ \__\ \ \__\ \__\ \_______\ \ \_______\ \__\ \ \__\__/ / / \ \_______\____\_\ \ \ \__\ \ \__\ \__\ \_______\ \ \_______\ \__\ \ \__\__/ / / \ \_______\____\_\ \
\|__| \|__|\|__|\|_______| \|_______|\|__| \|__|\___/ / \|_______|\_________\ \|__| \|__|\|__|\|_______| \|_______|\|__| \|__|\___/ / \|_______|\_________\
\|___|/ \|_________| \|___|/ \|_________|

View file

@ -243,4 +243,3 @@ Return true if FabCityOS SMTP uses password authentication
{{- true -}} {{- true -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View file

@ -1,5 +1,4 @@
{{- if and (not .Values.postgresql.enabled) (not .Values.externalDatabase.existingSecret) }} {{- if and (not .Values.postgresql.enabled) (not .Values.externalDatabase.existingSecret) }}
---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:

View file

@ -469,4 +469,3 @@ externalDatabase:
existingSecret: "" existingSecret: ""
existingSecretPasswordKey: "" existingSecretPasswordKey: ""
existingSecretPostgresPasswordKey: "" existingSecretPostgresPasswordKey: ""