Skip to content

Commit

Permalink
fix: dont set resourceversion on new secrets - fixes kiwigrid#34
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed Oct 22, 2020
1 parent 28f9ee4 commit 391ae79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void manageSecret(RealmResource realmResource, String clientUuid, ClientResource

if (kubernetesSecret == null) {
kubernetesSecretResource.create(kubernetesSecretResource.createNew().withNewMetadata()
.withNamespace(secretNamespace).withName(secretName).withResourceVersion(null).and()
.withNamespace(secretNamespace).withName(secretName).and()
.addToData(secretKey, Base64.getEncoder().encodeToString(keycloakSecretValue.getBytes())).done());
log.info("{}/{}/{}: kubernetes secret {}/{} created",
keycloak, realm, clientId, secretNamespace, secretName);
Expand Down

0 comments on commit 391ae79

Please sign in to comment.