oam-kubernetes-runtime icon indicating copy to clipboard operation
oam-kubernetes-runtime copied to clipboard

Support list/slic type of user defined workloadRef path

Open zzxwill opened this issue 5 years ago • 3 comments
trafficstars

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

zzxwill avatar Jul 01 '20 08:07 zzxwill

Can you put some details on this issue? I am not sure if I follow.

ryanzhang-oss avatar Jul 01 '20 23:07 ryanzhang-oss

The bookinfo-gateway in gateways slice is a workloadRef in this case @ryanzhang-oss

wonderflow avatar Jul 02 '20 02:07 wonderflow

The bookinfo-gateway in 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.

ryanzhang-oss avatar Jul 06 '20 22:07 ryanzhang-oss