Files
Somefive 1e15e27c8c Fix: conflict while using gc policy and shared-resource policy concurrently (#5330)
* Fix: conflict while using gc policy and shared-resource policy concurrently

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* Fix: github ci

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2023-01-13 15:51:15 +08:00

26 lines
582 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: app-gc-shared
spec:
components:
- type: k8s-objects
name: app-gc-shared
properties:
objects:
- apiVersion: v1
kind: ConfigMap
policies:
- name: gc-policy
type: garbage-collect
properties:
rules:
- selector:
resourceTypes: ["ConfigMap"]
strategy: never
- name: shared-policy
type: shared-resource
properties:
rules:
- selector:
resourceTypes: ["ConfigMap"]