diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff02b3e..d16f496 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,7 +119,7 @@ jobs: run: | version="${{ inputs.version }}" co_version="${version:0}" - operator_path="./operators/konveyor-operator/${co_version}" + operator_path="./operators/trustify-operator/${co_version}" mkdir -p "${operator_path}" docker cp extract:/metadata "${operator_path}" docker cp extract:/manifests "${operator_path}" diff --git a/src/main/java/org/trustify/operator/cdrs/v2alpha1/db/DBDeployment.java b/src/main/java/org/trustify/operator/cdrs/v2alpha1/db/DBDeployment.java index 8170473..512dba6 100644 --- a/src/main/java/org/trustify/operator/cdrs/v2alpha1/db/DBDeployment.java +++ b/src/main/java/org/trustify/operator/cdrs/v2alpha1/db/DBDeployment.java @@ -134,7 +134,7 @@ private DeploymentSpec getDeploymentSpec(Trustify cr, Context context) ) .withLivenessProbe(new ProbeBuilder() .withExec(new ExecActionBuilder() - .withCommand("/bin/sh", "-c", "psql -U $POSTGRESQL_USER -d $POSTGRESQL_DATABASE -c 'SELECT 1'") + .withCommand("/bin/sh", "-c", "psql -U $POSTGRES_USER -d $POSTGRES_DB -c 'SELECT 1'") .build() ) .withInitialDelaySeconds(10) @@ -146,7 +146,7 @@ private DeploymentSpec getDeploymentSpec(Trustify cr, Context context) ) .withReadinessProbe(new ProbeBuilder() .withExec(new ExecActionBuilder() - .withCommand("/bin/sh", "-c", "psql -U $POSTGRESQL_USER -d $POSTGRESQL_DATABASE -c 'SELECT 1'") + .withCommand("/bin/sh", "-c", "psql -U $POSTGRES_USER -d $POSTGRES_DB -c 'SELECT 1'") .build() ) .withInitialDelaySeconds(5) @@ -192,15 +192,7 @@ private DeploymentSpec getDeploymentSpec(Trustify cr, Context context) private List getEnvVars(Trustify cr) { return Arrays.asList( new EnvVarBuilder() - .withName("POSTGRESQL_MAX_CONNECTIONS") - .withValue("200") - .build(), - new EnvVarBuilder() - .withName("POSTGRESQL_MAX_PREPARED_TRANSACTIONS") - .withValue("200") - .build(), - new EnvVarBuilder() - .withName("POSTGRESQL_USER") + .withName("POSTGRES_USER") .withNewValueFrom() .withNewSecretKeyRef() .withName(DBSecret.getSecretName(cr)) @@ -210,7 +202,7 @@ private List getEnvVars(Trustify cr) { .endValueFrom() .build(), new EnvVarBuilder() - .withName("POSTGRESQL_PASSWORD") + .withName("POSTGRES_PASSWORD") .withNewValueFrom() .withNewSecretKeyRef() .withName(DBSecret.getSecretName(cr)) @@ -220,7 +212,7 @@ private List getEnvVars(Trustify cr) { .endValueFrom() .build(), new EnvVarBuilder() - .withName("POSTGRESQL_DATABASE") + .withName("POSTGRES_DB") .withValue(Constants.DB_NAME) .build() ); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 2d6dabb..2f1ad28 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,8 +5,8 @@ quarkus.container-image.tag=v${quarkus.application.version} quarkus.operator-sdk.crd.apply=true # Operator config -related.image.api=ghcr.io/trustification/trustd:0.1.0-alpha.6 -related.image.db=registry.access.redhat.com/rhscl/postgresql-10-rhel7:1 +related.image.api=ghcr.io/trustification/trustd:0.1.0-alpha.9 +related.image.db=quay.io/enterprisedb/postgresql:16-ubi9 related.image.pull-policy=Always # https://quarkus.io/guides/deploying-to-kubernetes#environment-variables-from-keyvalue-pairs