You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@startumltitleRun() SIA v3.2note right
1. Run() runs once a day, if every step is successful
2. If anyone of them fails, it restarts from the beginning
(Specifically defined failures won't restart the process)
end notestart repeatif (idConfig.ProviderService != ""?) then (not empty)
#lightblue:IdentityProvisioning();
(notgiven) elseif (CERT_FILE & KEY_FILEbothgiven?) then (given)
#red:Attemptstoreadinstancecertonlocaldirectory;
else (not given)
:Write a debug"Skipping to request/load x509 certificate";
endifif (Successfully Prepared Instance Cert?) then (no)
if (IS BACKUP_MODE "read" or "read+write" && idConfig.ProviderService != ""?) then (yes)
#lightblue:Attemptstoreadfromk8ssecret;
else (no)
:Write a debug"Skipping to load backup from k8s secret";
endifelse (yes)
endifrepeat while (Successfully prepared instance cert?) is (failed to prepare)
if (Is K8s Backup Secret used?) then (no)
else (yes)
#lightblue:IdentityProvisioning() withFORCE_INIT;
note right
It is just an attempt.
If it fails, it does not restart the flow,
as the instance cert is already prepared.
end note endifnote right
Saves instance certificate into the cert reloader
end note :CertReloader.UpdateCertificate(); :RoleCertProvisioningRequest(); :WriteFile();note right
Color #lightblue: WriteFile() Should WRITE InstanceCert
Color #red: WriteFile() Should NOT write InstanceCert
end notestop@enduml
Background
Before the pr #111, there was not enough check and cert loader panicked.
The changes however has three different uploading part.
It will be great to bring it as one as the following instead:
TODOs
The text was updated successfully, but these errors were encountered: