cluster: rework `env` output to qualify zones using the region #53

Merged
amery merged 1 commits from pr-amery-env into main 5 months ago
amery commented 5 months ago
Owner
There is no content yet.
amery added 1 commit 5 months ago
amery requested review from karasz 5 months ago
Poster
Owner

RegionsID is missing description and go.mod needs to get darvaza.org/core updated

RegionsID is missing description and go.mod needs to get darvaza.org/core updated
amery added 1 commit 5 months ago
Poster
Owner

amended to produce the folllowing using core.SliceMap()

$ jpictl env
FSID="28180b9b-6d5d-4be0-bb5b-e4b04bf03804"
REGIONS="1 2 3"
REGIONS_NAMES="eu uk us"
REGION1_NAME="eu"
REGION1_ZONES="2 3"
REGION1_ZONE3="htz-fsn-1"
REGION1_ZONE3_NAME="htz-fsn"
REGION1_ZONE3_GW="1"
REGION1_ZONE3_MON="htz-fsn-1"
REGION1_ZONE3_MON_IP="10.1.48.1"
REGION1_ZONE3_MON_ID="1"
REGION1_ZONE2="ssd-ams-3 ssd-ams-4 ssd-ams-5"
REGION1_ZONE2_NAME="ssd-ams"
REGION1_ZONE2_GW="3"
REGION1_ZONE2_MON="ssd-ams-4"
REGION1_ZONE2_MON_IP="10.1.32.4"
REGION1_ZONE2_MON_ID="4"
REGION2_NAME="uk"
REGION2_ZONES="1"
REGION2_ZONE1="ssd-lon-3 ssd-lon-7"
REGION2_ZONE1_NAME="ssd-lon"
REGION2_ZONE1_GW="3"
REGION2_ZONE1_MON="ssd-lon-7"
REGION2_ZONE1_MON_IP="10.2.16.7"
REGION2_ZONE1_MON_ID="7"
REGION3_NAME="us"
REGION3_ZONES="4"
REGION3_ZONE4="ssd-nyc-3"
REGION3_ZONE4_NAME="ssd-nyc"
REGION3_ZONE4_GW="3"
REGION3_ZONE4_MON="ssd-nyc-3"
REGION3_ZONE4_MON_IP="10.3.64.3"
REGION3_ZONE4_MON_ID="3"
amended to produce the folllowing using core.SliceMap() ``` $ jpictl env FSID="28180b9b-6d5d-4be0-bb5b-e4b04bf03804" REGIONS="1 2 3" REGIONS_NAMES="eu uk us" REGION1_NAME="eu" REGION1_ZONES="2 3" REGION1_ZONE3="htz-fsn-1" REGION1_ZONE3_NAME="htz-fsn" REGION1_ZONE3_GW="1" REGION1_ZONE3_MON="htz-fsn-1" REGION1_ZONE3_MON_IP="10.1.48.1" REGION1_ZONE3_MON_ID="1" REGION1_ZONE2="ssd-ams-3 ssd-ams-4 ssd-ams-5" REGION1_ZONE2_NAME="ssd-ams" REGION1_ZONE2_GW="3" REGION1_ZONE2_MON="ssd-ams-4" REGION1_ZONE2_MON_IP="10.1.32.4" REGION1_ZONE2_MON_ID="4" REGION2_NAME="uk" REGION2_ZONES="1" REGION2_ZONE1="ssd-lon-3 ssd-lon-7" REGION2_ZONE1_NAME="ssd-lon" REGION2_ZONE1_GW="3" REGION2_ZONE1_MON="ssd-lon-7" REGION2_ZONE1_MON_IP="10.2.16.7" REGION2_ZONE1_MON_ID="7" REGION3_NAME="us" REGION3_ZONES="4" REGION3_ZONE4="ssd-nyc-3" REGION3_ZONE4_NAME="ssd-nyc" REGION3_ZONE4_GW="3" REGION3_ZONE4_MON="ssd-nyc-3" REGION3_ZONE4_MON_IP="10.3.64.3" REGION3_ZONE4_MON_ID="3" ```
amery force-pushed pr-amery-env from edf5103f68 to 24645a2879 5 months ago
amery force-pushed pr-amery-env from 24645a2879 to 3c5e577d47 5 months ago
amery force-pushed pr-amery-env from 3c5e577d47 to 278742883c 5 months ago
karasz approved these changes 5 months ago
karasz left a comment
Owner

LGTM

LGTM
amery force-pushed pr-amery-env from 278742883c to 7f5d48b2b0 5 months ago
Poster
Owner

refactored using darvaza.org/core@v0.14.2

refactored using darvaza.org/core@v0.14.2
amery requested review from karasz 5 months ago
karasz approved these changes 5 months ago
karasz left a comment
Owner

+1

+1
amery merged commit d0efcbaa74 into main 5 months ago
amery deleted branch pr-amery-env 5 months ago

Reviewers

karasz approved these changes 5 months ago
The pull request has been merged as d0efcbaa74.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.