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

Migrate dufour nodes #12

Merged
merged 5 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
25 changes: 25 additions & 0 deletions close-channels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

if [ -z "$1" ]; then
echo "Error: Node number identifier is required."
exit 1
fi

#set -x
HOPRD_API_URL=https://hoprd-core-rotsee-${1}.core-team.staging.hoprnet.link/api/v3
ausias-armesto marked this conversation as resolved.
Show resolved Hide resolved

channels=$(curl -s -X 'GET' "${HOPRD_API_URL}/channels" -H 'accept: application/json' -H "X-Auth-Token: ${HOPRD_API_TOKEN}" | jq -r '.incoming[] | select(.status=="Open").id')
for channel_id in "${channels[@]}"; do
echo "Agregating tickets for channel id ${channel_id}"
response=$(curl --max-time 300 --connect-timeout 300 -X 'POST' "${HOPRD_API_URL}/channels/${channel_id}/tickets/aggregate" -H 'accept: */*' -H "X-Auth-Token: ${HOPRD_API_TOKEN}" -d '')
if [ $? -ne 0 ]; then
echo "Error: Failed to aggregate tickets for channel ${channel_id}"
continue
fi
sleep 2

#echo "Redeeming tickets for channel ${channel_id}"
#curl -X 'POST' "${HOPRD_API_URL}/channels/${channel_id}/tickets/redeem" -H 'accept: */*' -H "X-Auth-Token: ${HOPRD_API_TOKEN}" -d ''
#sleep 5

done
32 changes: 7 additions & 25 deletions helm/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ environments:
staging:
values:
- values-common.yaml
- values-rotsee.yaml
- values-dufour.yaml
- values-staging.yaml
secrets:
- secrets.sops.yaml
prod:
values:
- values-common.yaml
- values-prod.yaml
secrets:
- secrets.sops.yaml
---
repositories:
- name: hoprassociation
Expand All @@ -25,36 +29,14 @@ releases:
chart: ./pull-requests
values:
- values-{{ .Environment.Name }}.yaml
- name: core-nodes-team
namespace: core-team
condition: team.enabled
chart: ./team
values:
- values-{{ .Environment.Name }}.yaml
- name: hoprd-core-rotsee
namespace: core-team
condition: rotsee.enabled
chart: hoprassociation/cluster-hoprd
version: 0.3.1
wait: true
timeout: 5
values:
- values-common.yaml
- values-rotsee.yaml
- values-{{ .Environment.Name }}.yaml
secrets:
- secrets.sops.yaml
- name: hoprd-core-dufour
- name: core-node
namespace: core-team
condition: dufour.enabled
chart: hoprassociation/cluster-hoprd
version: 0.3.1
wait: true
timeout: 5
values:
- values-common.yaml
- values-dufour.yaml
- values-{{ .Environment.Name }}.yaml
secrets:
- secrets.sops.yaml

6 changes: 0 additions & 6 deletions helm/team/Chart.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions helm/team/templates/identity-pool-team-dufour.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions helm/team/templates/identity-pool-team-rotsee.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions helm/team/templates/lukas.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions helm/team/templates/tibor.yaml

This file was deleted.

1 change: 0 additions & 1 deletion helm/team/values.yaml

This file was deleted.

17 changes: 12 additions & 5 deletions helm/values-dufour.yaml → helm/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
ci:
enabled: false
pull-requests:
enabled: false

replicas: 5
network: dufour
version: saint-louis-latest
Expand All @@ -22,34 +28,35 @@ config: |
strategies: []

identities:
hoprd-core-dufour-1:
core-node-1:
identityFile: "eyJjcnlwdG8iOnsiY2lwaGVyIjoiYWVzLTEyOC1jdHIiLCJjaXBoZXJwYXJhbXMiOnsiaXYiOiJkYmI0MWNhNDg0NTI3MGNkZDVkYmE2MThlNDRmMzdlNCJ9LCJjaXBoZXJ0ZXh0IjoiYzU4YzhlMGYzZjk2NTQ0N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