Skip to content
Snippets Groups Projects
Commit 1c10bf7d authored by OZGCloud's avatar OZGCloud
Browse files

update update secret method

parent 89b2ed51
Branches
Tags
No related merge requests found
...@@ -91,8 +91,7 @@ class OzgCloudElsterTransferUserRemoteService { ...@@ -91,8 +91,7 @@ class OzgCloudElsterTransferUserRemoteService {
} }
public void createOrUpdateSecret(String namespace, String userPassword, String secretName) { public void createOrUpdateSecret(String namespace, String userPassword, String secretName) {
//client.secrets().inNamespace(namespace).resource(buildUserSecret(namespace, userPassword, secretName)).createOrReplace(); client.secrets().inNamespace(namespace).resource(buildUserSecret(namespace, userPassword, secretName)).createOrReplace();
client.resource(buildUserSecret(namespace, userPassword, secretName)).unlock().createOr(NonDeletingOperation::update);
} }
Secret buildUserSecret(String namespace, String userPassword, String secretName) { Secret buildUserSecret(String namespace, String userPassword, String secretName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment