File tree Expand file tree Collapse file tree 11 files changed +135
-14
lines changed
Expand file tree Collapse file tree 11 files changed +135
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Release Charts
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Configure Git
18+ run : |
19+ git config user.name "$GITHUB_ACTOR"
20+ git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
21+
22+ - name : Install Helm
23+ uses : azure/setup-helm@v1
24+ with :
25+ version : v3.4.1
26+
27+ # # Optional step if GPG signing is used
28+ # - name: Prepare GPG key
29+ # run: |
30+ # gpg_dir=.cr-gpg
31+ # mkdir "$gpg_dir"
32+ # keyring="$gpg_dir/secring.gpg"
33+ # base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
34+ # passphrase_file="$gpg_dir/passphrase"
35+ # echo "$GPG_PASSPHRASE" > "$passphrase_file"
36+ # echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
37+ # echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
38+ # env:
39+ # GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
40+ # GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
41+
42+ # - name: Add dependency chart repos
43+ # run: |
44+ # helm repo add bitnami https://charts.bitnami.com/bitnami
45+
46+ - name : Run chart-releaser
47+ uses : helm/chart-releaser-action@v1.1.0
48+ with :
49+ charts_dir : charts
50+ config : cr.yaml
51+ env :
52+ CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 1+ name : Lint and Test Charts
2+
3+ on : pull_request
4+
5+ jobs :
6+ lint-test :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v2
11+ with :
12+ fetch-depth : 0
13+
14+ - name : Set up Helm
15+ uses : azure/setup-helm@v1
16+ with :
17+ version : v3.4.1
18+
19+ # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
20+ # yamllint (https://github.com/adrienverge/yamllint) which require Python
21+ - name : Set up Python
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : 3.7
25+
26+ - name : Set up chart-testing
27+ uses : helm/chart-testing-action@v2.0.1
28+ with :
29+ version : v3.3.0
30+
31+ - name : Run chart-testing (list-changed)
32+ id : list-changed
33+ run : |
34+ changed=$(ct list-changed --config ct.yaml)
35+ if [[ -n "$changed" ]]; then
36+ echo "::set-output name=changed::true"
37+ fi
38+
39+ - name : Run chart-testing (lint)
40+ run : ct lint --config ct.yaml
41+
42+ - name : Create kind cluster
43+ uses : helm/kind-action@v1.1.0
44+ if : steps.list-changed.outputs.changed == 'true'
45+
46+ - name : Run chart-testing (install)
47+ run : ct install --config ct.yaml
Original file line number Diff line number Diff line change 11---
22# https://yamllint.readthedocs.io/en/stable/index.html
3- # yamllint --strict -c .github/linters/. yaml-lint.yml .
3+ # yamllint --strict -c .yaml-lint.yml .
44
55extends : default
66
77rules :
8+ # 150 chars should be enough, but don't fail if a line is longer
9+ line-length :
10+ max : 150
11+ level : warning
12+ comments :
13+ min-spaces-from-content : 1
14+ braces :
15+ min-spaces-inside : 0
16+ max-spaces-inside : 0
17+ brackets :
18+ min-spaces-inside : 0
19+ max-spaces-inside : 0
20+ indentation :
21+ indent-sequences : consistent
822 document-start : disable
923 indentation : disable
10- line-length : disable
1124 truthy : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ Thank you for installing Java Patterns Docs!
2727
2828{{- else if contains "ClusterIP" .Values.service.type }}
2929 kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ include "backend-java-patterns.fullname" . }} {{ .Values.service.port }}
30+ kubectl port-forward $POD_NAME 8000:8000
3031 http://localhost:8000/java-patterns/
3132{{- end }}
3233
Original file line number Diff line number Diff line change 1414 secretName : {{ include "backend-java-patterns.tlsSecretName" . }}
1515 issuerRef :
1616 {{- .Values.certificate.issuerRef | toYaml | trimSuffix "\n" | nindent 4 }}
17- {{- end }}
17+ {{- end }}
Original file line number Diff line number Diff line change @@ -128,8 +128,11 @@ ingress:
128128 enabled : false
129129 className : " "
130130 annotations : {}
131+ # # Nginx ingress controller (default)
132+ # nginx.ingress.kubernetes.io/rewrite-target: /$1
131133 # kubernetes.io/ingress.class: nginx
132134 # kubernetes.io/tls-acme: "true"
135+ # certmanager.k8s.io/cluster-issuer: letsencrypt-prod
133136 configured : false
134137 rewritePath : true
135138 pathPrefix : " "
Original file line number Diff line number Diff line change 1+ # Set to true for GPG signing
2+ sign : true
3+ # UID of the GPG key to use
4+ key : Chart Releaser Test Key
Original file line number Diff line number Diff line change 1+ # See https://github.com/helm/chart-testing#configuration
2+ remote : origin
3+ target-branch : master
4+ chart-dirs :
5+ - charts
6+ chart-repos :
7+ - https://github.com/AlexRogalskiy/java-patterns
8+ helm-extra-args : --timeout 600s
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ markdown_extensions:
110110 - pymdownx.tabbed : {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#tabbed
111111 - pymdownx.details : {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#details
112112 - pymdownx.emoji : # https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#configuration
113- emoji_index : !!python/name:materialx.emoji.twemoji
114- emoji_generator : !!python/name:materialx.emoji.to_svg
113+ emoji_index : " !!python/name:materialx.emoji.twemoji"
114+ emoji_generator : " !!python/name:materialx.emoji.to_svg"
115115 - smarty : {} # https://python-markdown.github.io/extensions/smarty/
116116 - nl2br : {} # https://python-markdown.github.io/extensions/smarty/
117117 - mdx_truly_sane_lists : {} # https://github.com/radude/mdx_truly_sane_lists -> proper indentation of md list items
You can’t perform that action at this time.
0 commit comments