mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* 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>
26 lines
582 B
YAML
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"] |