Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version of actinia-core to v3 #21

Merged
merged 2 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions charts/actinia/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "actinia.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8088/api/v2/version to get started"
echo "Visit http://127.0.0.1:8088/api/v3/version to get started"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8088:8088
{{- end }}

2. After checking that actinia is running at http://127.0.0.1:8088/api/v2/version,
have a look at all mapsets in nc_spm_08 demo location at http://127.0.0.1:8088/api/v2/locations/nc_spm_08/mapsets
and render a map: http://127.0.0.1:8088/api/v2/locations/nc_spm_08/mapsets/PERMANENT/raster_layers/soils/render
2. After checking that actinia is running at http://127.0.0.1:8088/api/v3/version,
have a look at all mapsets in nc_spm_08 demo location at http://127.0.0.1:8088/api/v3/locations/nc_spm_08/mapsets
and render a map: http://127.0.0.1:8088/api/v3/locations/nc_spm_08/mapsets/PERMANENT/raster_layers/soils/render

3. To dive deeper into actinia, take a look at the api docs or take a turorial at https://actinia.mundialis.de
4 changes: 2 additions & 2 deletions charts/actinia/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/v2/health_check
path: /api/v3/health_check
port: actinia-tcp
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 10
readinessProbe:
httpGet:
path: /api/v2/health_check
path: /api/v3/health_check
port: actinia-tcp
timeoutSeconds: 5
resources:
Expand Down
25 changes: 25 additions & 0 deletions update_actinia_core_major_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

############################################################################
#
# MODULE: update_actinia_core_major_version.sh
# AUTHOR(S): Anika Weinmann
#
# PURPOSE: This script updates the major actinia-core version in url
#
# COPYRIGHT: (C) 2021 by mundialis GmbH & Co. KG
#
# This program is free software under the GNU General Public
# License (>=v3). Read the file COPYING that comes with GRASS
# for details.
#
#############################################################################

# execution for example with.
# bash update_actinia_core_major_version.sh v2 v3

OLD_VERSION=$1
NEW_VERSION=$2

sed -i "s+/api/${OLD_VERSION}/+/api/${NEW_VERSION}/+g" charts/actinia/templates/NOTES.txt
sed -i "s+/api/${OLD_VERSION}/+/api/${NEW_VERSION}/+g" charts/actinia/templates/statefulset.yaml