-
Notifications
You must be signed in to change notification settings - Fork 185
Allow noobaa on the client side to be deleted #2850
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -521,17 +521,20 @@ func (s *OCSProviderServer) getExternalResources(ctx context.Context, consumerRe | |
Kind: "Secret", | ||
Data: mustMarshal(map[string]string{ | ||
"auth_token": string(authToken), | ||
"mgmt_addr": noobaaMgmtAddress, | ||
"mgmt_addr": fmt.Sprintf("https://%s:443", noobaaMgmtAddress), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nb-ohad There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nb-ohad WDYT? |
||
}), | ||
}) | ||
|
||
extR = append(extR, &pb.ExternalResource{ | ||
Name: "noobaa-remote", | ||
Name: "noobaa", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have pointed the reason in the description. Noobaa operator will not accept any system name other than There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nb-ohad does it answer your question? |
||
Kind: "Noobaa", | ||
Data: mustMarshal(&nbv1.NooBaaSpec{ | ||
JoinSecret: &v1.SecretReference{ | ||
Name: "noobaa-remote-join-secret", | ||
}, | ||
CleanupPolicy: nbv1.CleanupPolicySpec{ | ||
AllowNoobaaDeletion: true, | ||
}, | ||
}), | ||
}) | ||
return extR, nil | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,11 +67,14 @@ var noobaaSpec = &nbv1.NooBaaSpec{ | |
JoinSecret: &v1.SecretReference{ | ||
Name: "noobaa-remote-join-secret", | ||
}, | ||
CleanupPolicy: nbv1.CleanupPolicySpec{ | ||
AllowNoobaaDeletion: true, | ||
}, | ||
} | ||
|
||
var joinSecret = map[string]string{ | ||
"auth_token": "authToken", | ||
"mgmt_addr": "noobaaMgmtAddress", | ||
"mgmt_addr": "https://noobaaMgmtAddress:443", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ezio-auditore any update on this? |
||
} | ||
|
||
var mockExtR = map[string]*externalResource{ | ||
|
@@ -105,8 +108,8 @@ var mockExtR = map[string]*externalResource{ | |
Kind: "Secret", | ||
Data: joinSecret, | ||
}, | ||
"noobaa-remote": { | ||
Name: "noobaa-remote", | ||
"noobaa": { | ||
Name: "noobaa", | ||
Kind: "Noobaa", | ||
Data: noobaaSpec, | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as it's https I'm assuming server & client speaks over TLS, so what certs are being used here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above is the secret from which noobaa-operator on the client side will connect to the provider side noobaa management address. The certs are being handled on the noobaa-core if I am not wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When it connects, for the simplest case client verifies that it is speaking to correct server isn't it? For that usually certs are presented, IOW did you check the feature is working as expected w/o providing certs explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it connects to the provider noobaa with ready status. Below is from a client cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...apps.kmajumder-client.ocs...
I'm assuming this is not local client, thanks.