diff --git a/release/obd-kardinal.yaml b/release/obd-kardinal.yaml index 9eab907..8d15ad8 100644 --- a/release/obd-kardinal.yaml +++ b/release/obd-kardinal.yaml @@ -155,12 +155,7 @@ metadata: version: v1 annotations: kardinal.dev.service/dependencies: "productcatalogservice:http,cartservice:http" - kardinal.dev.service/plugins: | - - name: github.com/kurtosis-tech/jsdelivr-api-plugin - type: external - servicename: jsdelivr-api - args: - api_key: "" + kardinal.dev.service/plugins: "jsdelivr-api" spec: type: ClusterIP selector: @@ -222,33 +217,7 @@ metadata: version: v1 annotations: kardinal.dev.service/stateful: "true" - kardinal.dev.service/plugins: | - - name: github.com/kurtosis-tech/postgres-seed-plugin - args: - seed_script: | - -- create the table - CREATE TABLE IF NOT EXISTS public.items( - id bigserial PRIMARY KEY, - created_at TIMESTAMP WITH TIME ZONE, - updated_at TIMESTAMP WITH TIME ZONE, - deleted_at TIMESTAMP WITH TIME ZONE, - user_id TEXT, - product_id TEXT, - quantity INTEGER - ); - - INSERT INTO public.items (id, created_at, updated_at, deleted_at, user_id, product_id, quantity) - VALUES (1, '2024-08-02 13:02:07.656104 +00:00', '2024-08-02 13:02:07.656104 +00:00', null, '0494c5e0-dde0-48fa-a6d8-f7962f5476bf', '66VCHSJNUP', 1); - - INSERT INTO public.items (id, created_at, updated_at, deleted_at, user_id, product_id, quantity) - VALUES (2, '2024-08-02 13:02:10.891407 +00:00', '2024-08-02 13:02:10.891407 +00:00', null, '0494c5e0-dde0-48fa-a6d8-f7962f5476bf', '2ZYFJ3GM2N', 1); - - -- Set the sequence to the correct value after inserting records - SELECT setval('public.items_id_seq', (SELECT MAX(id) FROM public.items)); - db_name: "cart" - db_user: "postgresuser" - db_password: "postgrespass" - + kardinal.dev.service/plugins: "postgres-seed-plugin" spec: type: ClusterIP ports: @@ -437,7 +406,6 @@ spec: # value: #- name: SNS_TOPIC_ARN # value: - --- apiVersion: v1 kind: Service @@ -456,3 +424,51 @@ spec: protocol: TCP appProtocol: HTTP targetPort: 8091 + +--- +apiVersion: v1 +kind: Service +metadata: + name: jsdelivr-api + annotations: + kardinal.dev.service/plugin-definition: | + - name: github.com/kurtosis-tech/jsdelivr-api-plugin + type: external + servicename: jsdelivr-api + args: + api_key: "dev" + +--- +apiVersion: v1 +kind: Service +metadata: + name: postgres-seed-plugin + annotations: + kardinal.dev.service/plugin-definition: | + - name: github.com/kurtosis-tech/postgres-seed-plugin + type: stateful + servicename: postgres-seed-plugin + args: + seed_script: | + -- create the table + CREATE TABLE IF NOT EXISTS public.items( + id bigserial PRIMARY KEY, + created_at TIMESTAMP WITH TIME ZONE, + updated_at TIMESTAMP WITH TIME ZONE, + deleted_at TIMESTAMP WITH TIME ZONE, + user_id TEXT, + product_id TEXT, + quantity INTEGER + ); + + INSERT INTO public.items (id, created_at, updated_at, deleted_at, user_id, product_id, quantity) + VALUES (1, '2024-08-02 13:02:07.656104 +00:00', '2024-08-02 13:02:07.656104 +00:00', null, '0494c5e0-dde0-48fa-a6d8-f7962f5476bf', '66VCHSJNUP', 1); + + INSERT INTO public.items (id, created_at, updated_at, deleted_at, user_id, product_id, quantity) + VALUES (2, '2024-08-02 13:02:10.891407 +00:00', '2024-08-02 13:02:10.891407 +00:00', null, '0494c5e0-dde0-48fa-a6d8-f7962f5476bf', '2ZYFJ3GM2N', 1); + + -- Set the sequence to the correct value after inserting records + SELECT setval('public.items_id_seq', (SELECT MAX(id) FROM public.items)); + db_name: "cart" + db_user: "postgresuser" + db_password: "postgrespass"