oam-kubernetes-runtime
oam-kubernetes-runtime copied to clipboard
Support list/slic type of user defined workloadRef path
Workload will be applied to trait CR to its path spec.workloadRef in proposal trait-workload-interaction-mechanism. If the path mechanism support user defined list/slic type spec.gateways[0] as below?
apiVersion: core.oam.dev/v1alpha2
kind: ApplicationConfiguration
metadata:
name: bookinfo
spec:
components:
- componentName: bookinfo-gateway
traits:
- trait:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bookinfo
spec:
hosts:
- "*"
gateways:
- bookinfo-gateway
For more detailed info, please refer to https://github.com/oam-dev/catalog/pull/37
Can you put some details on this issue? I am not sure if I follow.
The bookinfo-gateway in gateways slice is a workloadRef in this case @ryanzhang-oss
The
bookinfo-gatewayin gateways slice is a workloadRef in this case @ryanzhang-oss
Does this take the exact same object as a workloadRef object? I will be surprised that it does as it's not designed for OAM.