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
#!/usr/bin/env bash | |
RED='\033[0;31m' | |
NC='\033[0m' | |
OLDIFS="$IFS" | |
IFS=$'\n' | |
VULN=$1 | |
# $1 arg is the CVE number to check | |
if [ -z $1 ]; then |
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
$ kubectl get pods -o jsonpath='{range .items[*]}{.spec.containers[*].image}{" "}' | tr " " "\n" | sort -u | |
consul:1.3.0 | |
elasticsearch:5.6.13 | |
grafana/grafana:5.1.0 | |
jboss/keycloak:4.5.0.Final | |
jhipster/consul-config-loader:v0.3.0 | |
jhipster/jhipster-console:v4.0.0 | |
jhipster/jhipster-elasticsearch:v4.0.0 | |
jhipster/jhipster-logstash:v4.0.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
$ trivy image --severity CRITICAL elasticsearch:5.6.13 | |
2021-12-12T21:20:06.322+0100 INFO Detected OS: debian | |
2021-12-12T21:20:06.322+0100 INFO Detecting Debian vulnerabilities... | |
2021-12-12T21:20:06.350+0100 INFO Number of language-specific files: 1 | |
2021-12-12T21:20:06.350+0100 INFO Detecting jar vulnerabilities... | |
Java (jar) | |
========== | |
Total: 6 (CRITICAL: 6) |
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
❯ tree -aL 1 | |
. | |
├── charts | |
├── gci-templates | |
├── .gitlab-ci.yml | |
└── scripts |
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
include: '/gci-templates/.gitlab-ci.yml' | |
stages: | |
- test | |
- install | |
- release | |
'my-chart:lint': | |
stage: test | |
extends: .lint |
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
--- | |
image: dtzar/helm-kubectl:3.5.3 #last version using k8s 1.20 | |
.lint: | |
script: | |
- helm lint . | |
.release: | |
script: | |
- apk add git |
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
#!/usr/bin/env bash | |
cat <<EOF | |
include: '/gci-templates/.gitlab-ci.yml' | |
stages: | |
- test | |
- install | |
- release |
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
chart-jobs: | |
stage: generate | |
needs: | |
- chart-generator | |
trigger: | |
include: | |
- artifact: generated-pipeline.yml | |
job: chart-generator | |
strategy: depend | |
rules: |
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
admissionController: | |
enabled: false | |
recommender: | |
enabled: true | |
extraArgs: | |
prometheus-address: | | |
http://prometheus-operated.observability.svc.cluster.local:9090 | |
storage: prometheus | |
updater: | |
enabled: false |
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
dashboard: | |
replicaCount: 0 |
OlderNewer