Skip to content

Commit

Permalink
Bump chart version (#37)
Browse files Browse the repository at this point in the history
* Bump chart version

* Updated deployment spec and pinned version

* Added security scan
  • Loading branch information
saidsef authored Dec 8, 2022
1 parent 49b4ec9 commit a148fb6
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 464 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment the next lines to use go get to install anything else you need
# USER vscode
USER vscode
# RUN go get -x <your-dependency-or-tool>

# [Optional] Uncomment this line to install global node packages.
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ updates:
interval: "weekly"
pull-request-branch-name:
separator: "-"
- package-ecosystem: gomod
- package-ecosystem: "gomod"
directory: /
schedule:
interval: "weekly"
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
workflow_dispatch:

jobs:
security:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
name: Security Scan
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'config'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ RUN apk add --no-cache curl git && \
FROM alpine:3.17
LABEL maintainer="Said Sef <saidsef@gmail.com> (saidsef.co.uk/)"

ENV fprocess="/usr/bin/geocode"
USER nobody

COPY --from=builder /app/geocode /usr/bin/

USER nobody

HEALTHCHECK --interval=30s --timeout=10s CMD curl --fail 'http://localhost:${PORT}/' || exit 1

EXPOSE ${PORT}
Expand Down
2 changes: 1 addition & 1 deletion charts/reverse-geocoding/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: reverse-geocoding
description: Reverse GeoCode Helm chart for Kubernetes
type: application
version: &version 0.2.6
version: &version 0.2.7
appVersion: *version
kubeVersion: ">= 1.22"
keywords:
Expand Down
4 changes: 2 additions & 2 deletions charts/reverse-geocoding/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# reverse-geocoding

![Version: 0.2.6](https://img.shields.io/badge/Version-0.2.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.6](https://img.shields.io/badge/AppVersion-0.2.6-informational?style=flat-square)
![Version: 0.2.7](https://img.shields.io/badge/Version-0.2.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.7](https://img.shields.io/badge/AppVersion-0.2.7-informational?style=flat-square)

Reverse GeoCode Helm chart for Kubernetes

Expand Down Expand Up @@ -30,7 +30,7 @@ Kubernetes: `>= 1.22`
| image.repository | string | `"ghcr.io/saidsef/faas-reverse-geocoding"` | |
| image.tag | string | `"latest"` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.annotations."app.kubernetes.io/name" | string | `"geocode"` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"geocode.local"` | |
Expand Down
9 changes: 7 additions & 2 deletions charts/reverse-geocoding/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ replicaCount: 1
image:
repository: ghcr.io/saidsef/faas-reverse-geocoding
pullPolicy: IfNotPresent
tag: "latest"
tag: "v2022.12"

imagePullSecrets: []
nameOverride: ""
Expand All @@ -27,7 +27,12 @@ securityContext:
- NET_BIND_SERVICE
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 65534
runAsUser: 65534
allowPrivilegeEscalation: false
privileged: false
seccompProfile:
type: RuntimeDefault

service:
type: ClusterIP
Expand Down
2 changes: 1 addition & 1 deletion deployment/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
enableServiceLinks: false
containers:
- name: geocode
image: ghcr.io/saidsef/faas-reverse-geocoding:latest
image: ghcr.io/saidsef/faas-reverse-geocoding:v2022.12
imagePullPolicy: Always
env:
- name: "PORT"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/common v0.38.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
golang.org/x/sys v0.3.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
Expand Down
454 changes: 2 additions & 452 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit a148fb6

Please sign in to comment.