裁剪harbor 默认webhook事件
[root@docker2 data]# docker exec -it b3669c341bb6 bash
postgres [ / ]$ psql
psql (9.6.14)
Type "help" for help.
postgres=# \d notification_policy
Did not find any relation named "notification_policy".
postgres=# \c registry
You are now connected to database "registry" as user "postgres".
registry=# \d notification_policy
Table "public.notification_policy"
Column | Type | Modifiers
---------------+-----------------------------+------------------------------------------------------------------
id | integer | not null default nextval('notification_policy_id_seq'::regclass)
name | character varying(256) |
project_id | integer | not null
enabled | boolean | not null default true
description | text |
targets | text |
event_types | text |
creator | character varying(256) |
creation_time | timestamp without time zone | default now()
update_time | timestamp without time zone | default now()
Indexes:
"notification_policy_pkey" PRIMARY KEY, btree (id)
"unique_project_id" UNIQUE CONSTRAINT, btree (project_id)
registry=# select event_types from notification_policy;
event_types
---------------
["pushImage"]
(1 row)
registry=# update notification_policy set event_types='["pushImage"]' where id=1;
————————————————————————————————————————————
myron