-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support DataONE Member Node Configuration when running in k8s #1662
Comments
NotesSee: https://knb.ecoinformatics.org/knb/docs/dataone.html#configuring-metacat-as-a-member-node Jing: |
ToDo
Don't change the code for the "DataONE Configuration" admin page - leave it as is, so it cannot be submitted in k8s. Later, improve the UX |
SUPERSEDED BY VERSION 2
|
Proposed logic for the registration and update processes (Version 2):Change Log:
flowchart TD
k8s(["Kuberneters Startup, or\nLegacy Admin Page Submit"])
--> START{"`**Previously
Registered as a
DataONE Member
Node (MN)?**`"}
START -->|YES| IDCr
START -->|NO| AUTO
subgraph PREREG ["Existing Registration"]
IDCr{"`**nodeId changed?**
(*yaml:nodeId !=
DB nodeId_history latest?*)`"}
IDCr -->|YES| AUTOr{"`*K8s ONLY:*
Registration
Change Requested?
(*yaml flag ==
today's date?*)`"}
AUTOr -->|YES| CERTr{"`New
NodeId
Matches Client
Cert?`"}
CERTr -->|YES| UPDCNr["`UPDATE @ CN
*Push MNconfig to CN.
(nodeId CHANGED)*`"]
UPDCNr -->|SUCCESS| UPDBr["`UPDATE DB
*(authoritativeMNId
& nodeId history)*`"]
UPDCNr -->|FAIL| ERRORr
CERTr -->|NO| ERRORr["`LOG ERROR`"]
AUTOr -->|NO| ERRORr
IDCr -->|NO\nbut other data\nmay have changed| UPCNr["`UPDATE @ CN
*(Push MN config to CN.
(nodeId UNCHANGED)*`"]
UPCNr -->|SUCCESS| DONEr
UPCNr -->|FAIL| ERRORr
ERRORr & UPDBr --> DONEr(["Done"])
end
subgraph UNREG ["NOT Previously Registered"]
AUTO{"`*K8s ONLY:*
Registration
Change Requested?
(*yaml flag ==
today's date?*)`"}
AUTO -->|YES| CERT{"`NodeId
Matches Client
Cert?`"}
CERT -->|YES| REGCN["`REGISTER
@ CN`"]
CERT -->|NO| ERROR["`LOG ERROR`"]
REGCN -->|SUCCESS| IDC{"`nodeId changed?
(yaml:nodeId !=
DB nodeId_history
latest?)`"}
IDC -->|YES| UPDB
IDC -->|NO| DONE
REGCN -->|FAIL| ERROR["`LOG ERROR`"]
AUTO -->|NO:\n\nlocal change\nonly| UPDB["`UPDATE DB
*(authoritativeMNId
& nodeId history)*`"]
ERROR & UPDB--> DONE(["Done"])
end
|
resolved by PR #1682 |
Part of Epic #1623
related to #1665
Requested/identified by Val@ESSDIVE
Admin UI: DataONE Configuration - allow submitting settings to CN without saving locally, so functionality is not restricted by read-only properties in k8s
The text was updated successfully, but these errors were encountered: