forked from strimzi/strimzi-kafka-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ST] Add CC API Users test (strimzi#10473)
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
- Loading branch information
Showing
4 changed files
with
117 additions
and
17 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
systemtest/src/main/java/io/strimzi/systemtest/templates/kubernetes/SecretTemplates.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.systemtest.templates.kubernetes; | ||
|
||
import io.fabric8.kubernetes.api.model.SecretBuilder; | ||
|
||
import java.util.Collections; | ||
|
||
public class SecretTemplates { | ||
|
||
private SecretTemplates() {} | ||
|
||
public static SecretBuilder secret(String namespaceName, String secretName, String dataKey, String dataValue) { | ||
return new SecretBuilder() | ||
.withNewMetadata() | ||
.withName(secretName) | ||
.withNamespace(namespaceName) | ||
.endMetadata() | ||
.withType("Opaque") | ||
.withStringData(Collections.singletonMap(dataKey, dataValue)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters