Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
feat(schema/caag): apply sql and grants
Browse files Browse the repository at this point in the history
  • Loading branch information
zls committed Feb 10, 2020
1 parent f3b5efe commit 954b1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/grant/grafana.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ GRANT SELECT ON agg_container_mem TO :role_name;
GRANT SELECT ON agg_grafana_alert TO :role_name;
GRANT SELECT ON agg_grafana_alert_long TO :role_name;

GRANT SELECT ON agg_pod_count TO :role_name;

GRANT SELECT ON cat_container TO :role_name;
GRANT SELECT ON cat_instance TO :role_name;
GRANT SELECT ON cat_name TO :role_name;
2 changes: 2 additions & 0 deletions scripts/schema-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ then
# instance caggs
psql -f schema/cagg/instance/load.sql
psql -f schema/cagg/instance/pods.sql
# deployment caggs
psql -f schema/cagg/deployment/pod_count.sql
fi

if [[ "${SKIP_CATALOG:-}" != "TRUE" ]];
Expand Down

0 comments on commit 954b1e4

Please sign in to comment.