Skip to content

Commit

Permalink
chore: set number of replicas for jce service to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Aug 29, 2024
1 parent edee514 commit a30d79e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webservice/signing/jar/jarsigner.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ local deployment = import "../../deployment.libsonnet";
local newDeployment(name, artifactId, version) = deployment.newDeployment(name, artifactId, version) {
pathspec: error "Must specify a pathspec for a service deployment",
preDeploy: importstr "../keystore.sh",
replicas: 4,

docker+: {
registry: "ghcr.io",
Expand All @@ -21,6 +22,7 @@ local newDeployment(name, artifactId, version) = deployment.newDeployment(name,
resources: [
if resource.kind == "Deployment" then resource + {
spec+: {
replicas: if std.endsWith($.version, "SNAPSHOT") then 1 else $.replicas,
template+: {
spec+: {
containers: [
Expand Down
1 change: 1 addition & 0 deletions webservice/signing/jar/jce.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local jarsigner = import "jarsigner.libsonnet";

jarsigner.newDeployment("jar-signing-jce", std.extVar("artifactId"), std.extVar("version")) {
pathspec: "/jarsigner/jce/sign",
replicas: 2,

keystore+: {
password: {
Expand Down

0 comments on commit a30d79e

Please sign in to comment.