Skip to content

Commit

Permalink
fixes (#367)
Browse files Browse the repository at this point in the history
* update config schema validation config.yaml

* check model service status
  • Loading branch information
gertd authored Apr 24, 2024
1 parent 2658165 commit 5ba6627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pkg/cc/config/schema/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ api:
- https://*.aserto.com
- https://*aserto-console.netlify.app
certs:
tls_key_path: ${TOPAZ_CERTS_DIR}/gateway.key
tls_cert_path: ${TOPAZ_CERTS_DIR}/gateway.crt
tls_ca_cert_path: ${TOPAZ_CERTS_DIR}/gateway-ca.crt
tls_key_path: '${TOPAZ_CERTS_DIR}/gateway.key'
tls_cert_path: '${TOPAZ_CERTS_DIR}/gateway.crt'
tls_ca_cert_path: '${TOPAZ_CERTS_DIR}/gateway-ca.crt'
http: false
read_timeout: 2s
read_header_timeout: 2s
Expand Down Expand Up @@ -190,9 +190,9 @@ api:
- https://*.aserto.com
- https://*aserto-console.netlify.app
certs:
tls_key_path: ${TOPAZ_CERTS_DIR}/gateway.key
tls_cert_path: ${TOPAZ_CERTS_DIR}/gateway.crt
tls_ca_cert_path: ${TOPAZ_CERTS_DIR}/gateway-ca.crt
tls_key_path: '${TOPAZ_CERTS_DIR}/gateway.key'
tls_cert_path: '${TOPAZ_CERTS_DIR}/gateway.crt'
tls_ca_cert_path: '${TOPAZ_CERTS_DIR}/gateway-ca.crt'
http: false
read_timeout: 2s
read_header_timeout: 2s
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/cmd/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (cmd *InstallTemplateCmd) installTemplate(c *cc.CommonCtx, tmpl *template)
c.UI.Exclamation().Msg("This configuration file still uses TOPAZ_DIR environment variable. Please change to using the new TOPAZ_DB_DIR and TOPAZ_CERTS_DIR environment variables.")
}
addr, _ := cfg.HealthService()
if !cc.ServiceHealthStatus(addr, "") {
if !cc.ServiceHealthStatus(addr, "model") {
return fmt.Errorf("gRPC endpoint not SERVING")
}
if model, ok := cfg.Configuration.APIConfig.Services["model"]; !ok {
Expand Down

0 comments on commit 5ba6627

Please sign in to comment.