Skip to content

Commit

Permalink
Added general polder deployment with its dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
pantierra committed Oct 28, 2024
1 parent 8027c3c commit 4db9ddf
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Check Version
run: |
current_version=$(grep '^version=' pyproject.toml | cut -f2 -d= | tr -d ' ' | tr -d '"')
app_version=$(grep 'appVersion:' deployment/helm/Chart.yaml | cut -f2 -d: | tr -d ' ' | tr -d '"')
app_version=$(grep 'appVersion:' deployment/helm/polder/Chart.yaml | cut -f2 -d: | tr -d ' ' | tr -d '"')
if [[ "$current_version" != "$app_version" ]]; then
echo "❌ current version from pyproject.toml ($current_version) and appVersion from Chart.yaml ($app_version) differs";
exit 1;
Expand Down Expand Up @@ -74,4 +74,4 @@ jobs:

- name: Run chart-testing (install)
run: ct install --chart-dirs deployment/k8s
if: steps.list-changed.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true'
37 changes: 37 additions & 0 deletions deployment/helm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# General files for the project
pkg/*
*.pyc
bin/*
.project
/.bin
/_test/secrets/*.json

# OSX leaves these everywhere on SMB shares
._*

# OSX trash
.DS_Store

# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
.idea/
*.iml

# Vscode files
.vscode

# Emacs save files
*~
\#*\#
.\#*

# Vim-related files
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist

# Chart dependencies
**/charts/*.tgz

.history
23 changes: 23 additions & 0 deletions deployment/helm/polder/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
9 changes: 9 additions & 0 deletions deployment/helm/polder/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: eoapi
repository: https://devseed.com/eoapi-k8s/
version: 0.4.17
- name: webapp-polder
repository: file://../webapp-polder
version: 0.1.0
digest: sha256:42a9ad509dc7c456f1d479cff6085182c439b28d02a50497dc5de373b8d89247
generated: "2024-10-28T17:29:59.493228222+01:00"
24 changes: 24 additions & 0 deletions deployment/helm/polder/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: polder
description: Create a polder - Web AOI viewer - instance.

type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.2.0"

dependencies:
- name: eoapi
version: 0.4.17
repository: "https://devseed.com/eoapi-k8s/"
- name: webapp-polder
version: 0.1.0
repository: file://../webapp-polder
36 changes: 36 additions & 0 deletions deployment/helm/polder/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Default values for polder.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1

# This is to override the chart name.
nameOverride: "polder"
fullnameOverride: "test-polder"

# polder custom configuration
mapboxToken: "pk.eyJ0IjoiZGV2c2VlZCIsImEiOiJnUi1mbkVvIn0.018aLhX0Mb0tdtaT2QNe2Q"
stacApi: "https://rx2hna9pbg.execute-api.eu-central-1.amazonaws.com"
tilerApi: "https://zbrrek2x0i.execute-api.eu-central-1.amazonaws.com"


# replicaCount: 1

# image:
# repository: nginx
# pullPolicy: IfNotPresent
# tag: "1.27.2"

# service:
# enabled: true
# name: polder-webapp
# type: NodePort
# ports:
# - port: 8081
# targetPort: 80
# nodePort: 30001
# selector:
# app: polder-webapp

# resources: {}

0 comments on commit 4db9ddf

Please sign in to comment.