Skip to content

Commit

Permalink
also final
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Nov 11, 2022
1 parent 3480e87 commit f5f2b7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public GeneratorResult generateJava() {
} else {
String staticFieldName = "_" + fieldName;
FieldDeclaration defaultObjField = clz.addField(fieldType, staticFieldName, Modifier.Keyword.PRIVATE,
Modifier.Keyword.STATIC);
Modifier.Keyword.STATIC, Modifier.Keyword.FINAL);

defaultObjField.getVariable(0).setInitializer(
new NameExpr(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.deploymentStrategy = deploymentStrategy;
}

private static org.test.v1.akkamicroservicespec.DeploymentStrategy _deploymentStrategy = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"maxSurge\":\"25%\",\"maxUnavailable\":\"25%\"}}", org.test.v1.akkamicroservicespec.DeploymentStrategy.class);
private static final org.test.v1.akkamicroservicespec.DeploymentStrategy _deploymentStrategy = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"maxSurge\":\"25%\",\"maxUnavailable\":\"25%\"}}", org.test.v1.akkamicroservicespec.DeploymentStrategy.class);

/**
* List of environment variables to set in the container.
Expand Down Expand Up @@ -165,7 +165,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.extraVolumeMounts = extraVolumeMounts;
}

private static java.util.List<org.test.v1.akkamicroservicespec.ExtraVolumeMounts> _extraVolumeMounts = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
private static final java.util.List<org.test.v1.akkamicroservicespec.ExtraVolumeMounts> _extraVolumeMounts = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);

/**
* Enable ingress for gRPC
Expand Down Expand Up @@ -283,7 +283,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.imagePullSecrets = imagePullSecrets;
}

private static java.util.List<String> _imagePullSecrets = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
private static final java.util.List<String> _imagePullSecrets = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);

/**
* Additional arguments to the application JVM. It will be added to the `JAVA_TOOL_OPTIONS` environment variable, which will be used by most JVM implementations.
Expand Down Expand Up @@ -365,7 +365,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.livenessProbe = livenessProbe;
}

private static org.test.v1.akkamicroservicespec.LivenessProbe _livenessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/alive\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.LivenessProbe.class);
private static final org.test.v1.akkamicroservicespec.LivenessProbe _livenessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/alive\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.LivenessProbe.class);

/**
* Name of Secret with entries that will be used as logback.xml configuration.
Expand Down Expand Up @@ -432,7 +432,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.readinessProbe = readinessProbe;
}

private static org.test.v1.akkamicroservicespec.ReadinessProbe _readinessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/ready\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.ReadinessProbe.class);
private static final org.test.v1.akkamicroservicespec.ReadinessProbe _readinessProbe = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"httpGet\":{\"port\":\"management\",\"path\":\"/ready\"},\"periodSeconds\":10,\"initialDelaySeconds\":20,\"failureThreshold\":10}", org.test.v1.akkamicroservicespec.ReadinessProbe.class);

/**
* Number of desired pods.
Expand Down Expand Up @@ -468,7 +468,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.resources = resources;
}

private static org.test.v1.akkamicroservicespec.Resources _resources = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"limits\":{\"memory\":\"1024Mi\",\"cpu\":\"\"},\"requests\":{\"memory\":\"1024Mi\",\"cpu\":\"1\"}}", org.test.v1.akkamicroservicespec.Resources.class);
private static final org.test.v1.akkamicroservicespec.Resources _resources = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("{\"limits\":{\"memory\":\"1024Mi\",\"cpu\":\"\"},\"requests\":{\"memory\":\"1024Mi\",\"cpu\":\"1\"}}", org.test.v1.akkamicroservicespec.Resources.class);

/**
* Scale by Akka Cluster node role. https://doc.akka.io/docs/akka/current/typed/cluster.html#node-roles
Expand All @@ -486,7 +486,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.roles = roles;
}

private static java.util.List<org.test.v1.akkamicroservicespec.Roles> _roles = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
private static final java.util.List<org.test.v1.akkamicroservicespec.Roles> _roles = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);

/**
* List of Secrets with entries that will be mounted as files in the mountPath directory.
Expand All @@ -504,7 +504,7 @@ public class AkkaMicroserviceSpec implements io.fabric8.kubernetes.api.model.Kub
this.secretVolumes = secretVolumes;
}

private static java.util.List<org.test.v1.akkamicroservicespec.SecretVolumes> _secretVolumes = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);
private static final java.util.List<org.test.v1.akkamicroservicespec.SecretVolumes> _secretVolumes = io.fabric8.kubernetes.client.utils.Serialization.unmarshal("[]", java.util.List.class);

/**
* The service account to be used by the microservice, instead of the one generated one. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
Expand Down

0 comments on commit f5f2b7f

Please sign in to comment.