mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
Compare commits
1 Commits
8f5e148bb2
...
v0.1.24
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b49e273b89 |
@@ -95,6 +95,7 @@ class PostgresDatabaseResource extends CustomResource<typeof postgresDatabaseSpe
|
|||||||
port: serverSecretData.data.port,
|
port: serverSecretData.data.port,
|
||||||
user: this.#userName,
|
user: this.#userName,
|
||||||
database: this.#dbName,
|
database: this.#dbName,
|
||||||
|
...databaseSecretData.data,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!isDeepSubset(databaseSecretData.data, expectedSecret)) {
|
if (!isDeepSubset(databaseSecretData.data, expectedSecret)) {
|
||||||
@@ -132,7 +133,7 @@ class PostgresDatabaseResource extends CustomResource<typeof postgresDatabaseSpe
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const secretData = postgresDatabaseConnectionSecretSchema.safeParse(decodeSecret(this.#serverSecret.current?.data));
|
const secretData = postgresDatabaseConnectionSecretSchema.safeParse(decodeSecret(this.#databaseSecret.data));
|
||||||
if (!secretData.success || !secretData.data) {
|
if (!secretData.success || !secretData.data) {
|
||||||
return {
|
return {
|
||||||
ready: false,
|
ready: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user