Skip to content

Commit

Permalink
feat: update the manually maintained model
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenko committed Oct 4, 2023
1 parent a2a3a68 commit 694c175
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public class ApicurioRegistrySpecConfiguration {

private String logLevel;

private String registryLogLevel;

private ApicurioRegistrySpecConfigurationSecurity security;

private List<EnvVar> env;
Expand Down Expand Up @@ -86,6 +88,14 @@ public void setLogLevel(String logLevel) {
this.logLevel = logLevel;
}

public String getRegistryLogLevel() {
return registryLogLevel;
}

public void setRegistryLogLevel(String registryLogLevel) {
this.registryLogLevel = registryLogLevel;
}

public ApicurioRegistrySpecConfigurationSecurity getSecurity() {
return security;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,21 @@ public class ApicurioRegistrySpecConfigurationSecurity {

private ApicurioRegistrySpecConfigurationSecurityKeycloak keycloak;

private ApicurioRegistrySpecConfigurationSecurityHttps https;

public ApicurioRegistrySpecConfigurationSecurityKeycloak getKeycloak() {
return keycloak;
}

public void setKeycloak(ApicurioRegistrySpecConfigurationSecurityKeycloak keycloak) {
this.keycloak = keycloak;
}

public ApicurioRegistrySpecConfigurationSecurityHttps getHttps() {
return https;
}

public void setHttps(ApicurioRegistrySpecConfigurationSecurityHttps https) {
this.https = https;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright 2022 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.apicurio.registry.operator.api.v1.model;

import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Buildable(
editableEnabled = false,
builderPackage = Constants.FABRIC8_KUBERNETES_API
)
@EqualsAndHashCode
@ToString
// NOTE: We can not use Lombok @Getter and @Setter because it does not work with fabric8 generator.
public class ApicurioRegistrySpecConfigurationSecurityHttps {

private boolean disableHttp;

private String secretName;

public boolean isDisableHttp() {
return disableHttp;
}

public void setDisableHttp(boolean disableHttp) {
this.disableHttp = disableHttp;
}

public String getSecretName() {
return secretName;
}

public void setSecretName(String secretName) {
this.secretName = secretName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import io.fabric8.kubernetes.api.model.Affinity;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.PodTemplateSpec;
import io.fabric8.kubernetes.api.model.Toleration;
import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
Expand Down Expand Up @@ -48,6 +49,10 @@ public class ApicurioRegistrySpecDeployment {

private List<LocalObjectReference> imagePullSecrets;

private ApicurioRegistrySpecDeploymentManagedResources managedResources;

private PodTemplateSpec podTemplateSpecPreview;

public Integer getReplicas() {
return replicas;
}
Expand Down Expand Up @@ -103,4 +108,20 @@ public List<LocalObjectReference> getImagePullSecrets() {
public void setImagePullSecrets(List<LocalObjectReference> imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
}

public ApicurioRegistrySpecDeploymentManagedResources getManagedResources() {
return managedResources;
}

public void setManagedResources(ApicurioRegistrySpecDeploymentManagedResources managedResources) {
this.managedResources = managedResources;
}

public PodTemplateSpec getPodTemplateSpecPreview() {
return podTemplateSpecPreview;
}

public void setPodTemplateSpecPreview(PodTemplateSpec podTemplateSpecPreview) {
this.podTemplateSpecPreview = podTemplateSpecPreview;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright 2022 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.apicurio.registry.operator.api.v1.model;

import io.fabric8.kubernetes.api.model.Affinity;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.Toleration;
import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Buildable(
editableEnabled = false,
builderPackage = Constants.FABRIC8_KUBERNETES_API
)
@EqualsAndHashCode
@ToString
// NOTE: We can not use Lombok @Getter and @Setter because it does not work with fabric8 generator.
public class ApicurioRegistrySpecDeploymentManagedResources {

private boolean disableIngress;

private boolean disableNetworkPolicy;

private boolean disablePodDisruptionBudget;

public boolean isDisableIngress() {
return disableIngress;
}

public void setDisableIngress(boolean disableIngress) {
this.disableIngress = disableIngress;
}

public boolean isDisableNetworkPolicy() {
return disableNetworkPolicy;
}

public void setDisableNetworkPolicy(boolean disableNetworkPolicy) {
this.disableNetworkPolicy = disableNetworkPolicy;
}

public boolean isDisablePodDisruptionBudget() {
return disablePodDisruptionBudget;
}

public void setDisablePodDisruptionBudget(boolean disablePodDisruptionBudget) {
this.disablePodDisruptionBudget = disablePodDisruptionBudget;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@
// NOTE: We can not use Lombok @Getter and @Setter because it does not work with fabric8 generator.
public class ApicurioRegistryStatus {

private ApicurioRegistryStatusInfo info;

private List<Condition> conditions;

private List<ApicurioRegistryStatusManagedResource> managedResources;

private ApicurioRegistryStatusInfo info;
public ApicurioRegistryStatusInfo getInfo() {
return info;
}

public void setInfo(ApicurioRegistryStatusInfo info) {
this.info = info;
}

public List<Condition> getConditions() {
return conditions;
Expand All @@ -53,12 +61,4 @@ public List<ApicurioRegistryStatusManagedResource> getManagedResources() {
public void setManagedResources(List<ApicurioRegistryStatusManagedResource> managedResources) {
this.managedResources = managedResources;
}

public ApicurioRegistryStatusInfo getInfo() {
return info;
}

public void setInfo(ApicurioRegistryStatusInfo info) {
this.info = info;
}
}

0 comments on commit 694c175

Please sign in to comment.