-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kyle Liberti <kliberti@redhat.com>
- Loading branch information
Showing
20 changed files
with
821 additions
and
277 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
api/src/main/java/io/strimzi/api/kafka/model/kafka/cruisecontrol/ApiUsers.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,59 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.api.kafka.model.kafka.cruisecontrol; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import io.strimzi.api.kafka.model.common.Constants; | ||
import io.strimzi.api.kafka.model.common.PasswordSource; | ||
import io.strimzi.api.kafka.model.common.UnknownPropertyPreserving; | ||
import io.strimzi.crdgenerator.annotations.Description; | ||
import io.sundr.builder.annotations.Buildable; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Cruise Control's API users config | ||
*/ | ||
@Buildable( | ||
editableEnabled = false, | ||
builderPackage = Constants.FABRIC8_KUBERNETES_API | ||
) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({"type", "valueFrom"}) | ||
@EqualsAndHashCode | ||
public class ApiUsers implements UnknownPropertyPreserving { | ||
public static final String TYPE_HASH_LOGIN_SERVICE = "hashLoginService"; | ||
|
||
private PasswordSource valueFrom; | ||
private Map<String, Object> additionalProperties = new HashMap<>(0); | ||
|
||
@Description("Must be `" + TYPE_HASH_LOGIN_SERVICE + "`") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public String getType() { | ||
return TYPE_HASH_LOGIN_SERVICE; | ||
} | ||
|
||
@Description("Secret from which the custom Cruise Control API authentication credentials should be read. ") | ||
@JsonProperty(required = true) | ||
public PasswordSource getValueFrom() { | ||
return valueFrom; | ||
} | ||
|
||
public void setValueFrom(PasswordSource valueFrom) { | ||
this.valueFrom = valueFrom; | ||
} | ||
|
||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
} |
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
Oops, something went wrong.