Revert "Updated Postgres Spec for where to find engine version, removed calling calling -ev in edit commands (#14735)" (#14794)

This reverts commit 318559dcd7.
This commit is contained in:
Charles Gagnon
2021-03-18 14:19:59 -07:00
committed by GitHub
parent 11d4ea3232
commit a0a97d1611
10 changed files with 22 additions and 7 deletions

View File

@@ -53,7 +53,10 @@ export class PostgresModel extends ResourceModel {
/** Returns the major version of Postgres */
public get engineVersion(): string | undefined {
return this._config?.spec.engine.version;
const kind = this._config?.kind;
return kind
? kind.substring(kind.lastIndexOf('-') + 1)
: undefined;
}
/** Returns the IP address and port of Postgres */