github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/ingress_trait_instance_with_dest.yaml (about)

     1  # Copyright (c) 2021, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  apiVersion: oam.verrazzano.io/v1alpha1
     4  kind: IngressTrait
     5  metadata:
     6    labels:
     7      app.oam.dev/name: {{.APPCONF_NAME}}
     8      app.oam.dev/component: {{.COMPONENT_NAME}}
     9      app.oam.dev/resourceType: TRAIT
    10      app.oam.dev/revision: test-revision-1
    11    name: {{.TRAIT_NAME}}
    12    namespace: {{.TRAIT_NAMESPACE}}
    13    ownerReferences:
    14      - apiVersion: core.oam.dev/v1alpha2
    15        blockOwnerDeletion: true
    16        controller: true
    17        kind: ApplicationConfiguration
    18        name: {{.APPCONF_NAME}}
    19        uid: 0afe12fb-ea1a-41ab-8566-e2febf05cd89
    20  spec:
    21    rules:
    22      - paths:
    23          - path: /test-path
    24            pathType: Prefix
    25        destination:
    26          host: test-dest-host
    27          port: 777
    28    workloadRef:
    29      apiVersion: oam.verrazzano.io/v1alpha1
    30      kind: {{.WORKLOAD_KIND}}
    31      name: {{.WORKLOAD_NAME}}