Fix: support exposing cloud resource identifier and console url (#2825)

* Fix: support exposing cloud resource identifier and console url

To help users quickly navigate to the instance in the web console, exposing
necessary information in ComponentDefinition and convert them to Configuration

* fix ci

* Check whether wl.FullTemplate.ComponentDefinition is nil before getting annotations
This commit is contained in:
Zheng Xi Zhou
2021-11-28 17:21:12 +08:00
committed by GitHub
parent 23bceb9f9c
commit 92335eca17
6 changed files with 55 additions and 2 deletions
@@ -0,0 +1,14 @@
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: app-rds-sample
spec:
components:
- name: sample-db
type: alibaba-rds
properties:
instance_name: sample-db
account_name: oamtest
password: U34rfwefwefffaked
writeConnectionSecretToRef:
name: db-conn