Files
kubevela/test/e2e-test/testdata/app/app8.yaml
Chwetion b582ccc060 add application component name duplication check in webhook (#1811)
* add application component name duplication check in webhook

* Helm test will not clean up the test data, and the application test of the component with the same name created failed during e2e.

* fix the problems encountered during the test:

* ignore the parsing failure caused by the existing application without definition when checking;

* after the addition is successful, the resources left by the helm test are automatically cleaned up;

Co-authored-by: chwetion <chwetion@foxmail.com>
2021-06-24 16:47:17 +08:00

20 lines
363 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: first-application
spec:
components:
- name: myweb
type: worker
properties:
image: busybox
cmd:
- sleep
- "1000"
- name: myweb
type: worker
properties:
image: busybox
cmd:
- sleep
- "10000"