istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/config/kube/gateway/testdata/invalid.status.yaml.golden (about)

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: GatewayClass
     3  metadata:
     4    creationTimestamp: null
     5    name: istio
     6    namespace: default
     7  spec: null
     8  status:
     9    conditions:
    10    - lastTransitionTime: fake
    11      message: Handled by Istio controller
    12      reason: Accepted
    13      status: "True"
    14      type: Accepted
    15    supportedFeatures:
    16    - HTTPRouteFeatureA
    17    - HTTPRouteFeatureB
    18  ---
    19  apiVersion: gateway.networking.k8s.io/v1beta1
    20  kind: Gateway
    21  metadata:
    22    creationTimestamp: null
    23    name: gateway
    24    namespace: istio-system
    25  spec: null
    26  status:
    27    addresses:
    28    - type: IPAddress
    29      value: 1.2.3.4
    30    conditions:
    31    - lastTransitionTime: fake
    32      message: Resource accepted
    33      reason: Accepted
    34      status: "True"
    35      type: Accepted
    36    - lastTransitionTime: fake
    37      message: Resource programmed, assigned to service(s) istio-ingressgateway.istio-system.svc.domain.suffix:80
    38      reason: Programmed
    39      status: "True"
    40      type: Programmed
    41    listeners:
    42    - attachedRoutes: 4
    43      conditions:
    44      - lastTransitionTime: fake
    45        message: No errors found
    46        reason: Accepted
    47        status: "True"
    48        type: Accepted
    49      - lastTransitionTime: fake
    50        message: No errors found
    51        reason: NoConflicts
    52        status: "False"
    53        type: Conflicted
    54      - lastTransitionTime: fake
    55        message: No errors found
    56        reason: Programmed
    57        status: "True"
    58        type: Programmed
    59      - lastTransitionTime: fake
    60        message: No errors found
    61        reason: ResolvedRefs
    62        status: "True"
    63        type: ResolvedRefs
    64      name: default
    65      supportedKinds:
    66      - group: gateway.networking.k8s.io
    67        kind: HTTPRoute
    68      - group: gateway.networking.k8s.io
    69        kind: GRPCRoute
    70  ---
    71  apiVersion: gateway.networking.k8s.io/v1beta1
    72  kind: Gateway
    73  metadata:
    74    creationTimestamp: null
    75    name: invalid-service
    76    namespace: istio-system
    77  spec: null
    78  status:
    79    conditions:
    80    - lastTransitionTime: fake
    81      message: Resource accepted
    82      reason: Accepted
    83      status: "True"
    84      type: Accepted
    85    - lastTransitionTime: fake
    86      message: 'Failed to assign to any requested addresses: hostname "fake-service.com"
    87        not found'
    88      reason: AddressNotUsable
    89      status: "False"
    90      type: Programmed
    91    listeners:
    92    - attachedRoutes: 0
    93      conditions:
    94      - lastTransitionTime: fake
    95        message: No errors found
    96        reason: Accepted
    97        status: "True"
    98        type: Accepted
    99      - lastTransitionTime: fake
   100        message: No errors found
   101        reason: NoConflicts
   102        status: "False"
   103        type: Conflicted
   104      - lastTransitionTime: fake
   105        message: No errors found
   106        reason: Programmed
   107        status: "True"
   108        type: Programmed
   109      - lastTransitionTime: fake
   110        message: No errors found
   111        reason: ResolvedRefs
   112        status: "True"
   113        type: ResolvedRefs
   114      name: default
   115      supportedKinds:
   116      - group: gateway.networking.k8s.io
   117        kind: HTTPRoute
   118      - group: gateway.networking.k8s.io
   119        kind: GRPCRoute
   120  ---
   121  apiVersion: gateway.networking.k8s.io/v1beta1
   122  kind: Gateway
   123  metadata:
   124    creationTimestamp: null
   125    name: target-port-reference
   126    namespace: istio-system
   127  spec: null
   128  status:
   129    conditions:
   130    - lastTransitionTime: fake
   131      message: Resource accepted
   132      reason: Accepted
   133      status: "True"
   134      type: Accepted
   135    - lastTransitionTime: fake
   136      message: 'Failed to assign to any requested addresses: port 8080 not found for
   137        hostname "istio-ingressgateway.istio-system.svc.domain.suffix" (hint: the service
   138        port should be specified, not the workload port. Did you mean one of these ports:
   139        [80]?)'
   140      reason: AddressNotUsable
   141      status: "False"
   142      type: Programmed
   143    listeners:
   144    - attachedRoutes: 0
   145      conditions:
   146      - lastTransitionTime: fake
   147        message: No errors found
   148        reason: Accepted
   149        status: "True"
   150        type: Accepted
   151      - lastTransitionTime: fake
   152        message: No errors found
   153        reason: NoConflicts
   154        status: "False"
   155        type: Conflicted
   156      - lastTransitionTime: fake
   157        message: No errors found
   158        reason: Programmed
   159        status: "True"
   160        type: Programmed
   161      - lastTransitionTime: fake
   162        message: No errors found
   163        reason: ResolvedRefs
   164        status: "True"
   165        type: ResolvedRefs
   166      name: default
   167      supportedKinds:
   168      - group: gateway.networking.k8s.io
   169        kind: HTTPRoute
   170      - group: gateway.networking.k8s.io
   171        kind: GRPCRoute
   172  ---
   173  apiVersion: gateway.networking.k8s.io/v1beta1
   174  kind: Gateway
   175  metadata:
   176    creationTimestamp: null
   177    name: invalid-gateway-address
   178    namespace: invalid-gateway-address
   179  spec: null
   180  status:
   181    conditions:
   182    - lastTransitionTime: fake
   183      message: only Hostname is supported, ignoring [1.2.3.4]
   184      reason: UnsupportedAddress
   185      status: "False"
   186      type: Accepted
   187    - lastTransitionTime: fake
   188      message: Failed to assign to any requested addresses
   189      reason: UnsupportedAddress
   190      status: "False"
   191      type: Programmed
   192  ---
   193  apiVersion: gateway.networking.k8s.io/v1beta1
   194  kind: Gateway
   195  metadata:
   196    creationTimestamp: null
   197    name: invalid-cert-kind
   198    namespace: istio-system
   199  spec: null
   200  status:
   201    addresses:
   202    - type: IPAddress
   203      value: 1.2.3.4
   204    conditions:
   205    - lastTransitionTime: fake
   206      message: Resource accepted
   207      reason: Accepted
   208      status: "True"
   209      type: Accepted
   210    - lastTransitionTime: fake
   211      message: Resource programmed, assigned to service(s) istio-ingressgateway.istio-system.svc.domain.suffix:34000
   212      reason: Programmed
   213      status: "True"
   214      type: Programmed
   215    listeners:
   216    - attachedRoutes: 0
   217      conditions:
   218      - lastTransitionTime: fake
   219        message: No errors found
   220        reason: Accepted
   221        status: "True"
   222        type: Accepted
   223      - lastTransitionTime: fake
   224        message: No errors found
   225        reason: NoConflicts
   226        status: "False"
   227        type: Conflicted
   228      - lastTransitionTime: fake
   229        message: Bad TLS configuration
   230        reason: Invalid
   231        status: "False"
   232        type: Programmed
   233      - lastTransitionTime: fake
   234        message: invalid certificate reference core/unknown/my-cert-http., only secret
   235          is allowed
   236        reason: InvalidCertificateRef
   237        status: "False"
   238        type: ResolvedRefs
   239      name: default
   240      supportedKinds:
   241      - group: gateway.networking.k8s.io
   242        kind: HTTPRoute
   243      - group: gateway.networking.k8s.io
   244        kind: GRPCRoute
   245  ---
   246  apiVersion: gateway.networking.k8s.io/v1beta1
   247  kind: Gateway
   248  metadata:
   249    creationTimestamp: null
   250    name: invalid-cert-notfound
   251    namespace: istio-system
   252  spec: null
   253  status:
   254    addresses:
   255    - type: IPAddress
   256      value: 1.2.3.4
   257    conditions:
   258    - lastTransitionTime: fake
   259      message: Resource accepted
   260      reason: Accepted
   261      status: "True"
   262      type: Accepted
   263    - lastTransitionTime: fake
   264      message: Resource programmed, assigned to service(s) istio-ingressgateway.istio-system.svc.domain.suffix:34001
   265      reason: Programmed
   266      status: "True"
   267      type: Programmed
   268    listeners:
   269    - attachedRoutes: 0
   270      conditions:
   271      - lastTransitionTime: fake
   272        message: No errors found
   273        reason: Accepted
   274        status: "True"
   275        type: Accepted
   276      - lastTransitionTime: fake
   277        message: No errors found
   278        reason: NoConflicts
   279        status: "False"
   280        type: Conflicted
   281      - lastTransitionTime: fake
   282        message: Bad TLS configuration
   283        reason: Invalid
   284        status: "False"
   285        type: Programmed
   286      - lastTransitionTime: fake
   287        message: invalid certificate reference /Secret/nonexistent., secret istio-system/nonexistent
   288          not found
   289        reason: InvalidCertificateRef
   290        status: "False"
   291        type: ResolvedRefs
   292      name: default
   293      supportedKinds:
   294      - group: gateway.networking.k8s.io
   295        kind: HTTPRoute
   296      - group: gateway.networking.k8s.io
   297        kind: GRPCRoute
   298  ---
   299  apiVersion: gateway.networking.k8s.io/v1beta1
   300  kind: Gateway
   301  metadata:
   302    creationTimestamp: null
   303    name: invalid-cert-malformed
   304    namespace: istio-system
   305  spec: null
   306  status:
   307    conditions:
   308    - lastTransitionTime: fake
   309      message: Resource accepted
   310      reason: Accepted
   311      status: "True"
   312      type: Accepted
   313    - lastTransitionTime: fake
   314      message: 'Failed to assign to any requested addresses: port 34002 not found for
   315        hostname "istio-ingressgateway.istio-system.svc.domain.suffix"'
   316      reason: AddressNotUsable
   317      status: "False"
   318      type: Programmed
   319    listeners:
   320    - attachedRoutes: 0
   321      conditions:
   322      - lastTransitionTime: fake
   323        message: No errors found
   324        reason: Accepted
   325        status: "True"
   326        type: Accepted
   327      - lastTransitionTime: fake
   328        message: No errors found
   329        reason: NoConflicts
   330        status: "False"
   331        type: Conflicted
   332      - lastTransitionTime: fake
   333        message: Bad TLS configuration
   334        reason: Invalid
   335        status: "False"
   336        type: Programmed
   337      - lastTransitionTime: fake
   338        message: 'invalid certificate reference /Secret/malformed., the certificate
   339          is malformed: tls: failed to find any PEM data in certificate input'
   340        reason: InvalidCertificateRef
   341        status: "False"
   342        type: ResolvedRefs
   343      name: default
   344      supportedKinds:
   345      - group: gateway.networking.k8s.io
   346        kind: HTTPRoute
   347      - group: gateway.networking.k8s.io
   348        kind: GRPCRoute
   349  ---
   350  apiVersion: gateway.networking.k8s.io/v1beta1
   351  kind: HTTPRoute
   352  metadata:
   353    creationTimestamp: null
   354    name: invalid-backendRef-kind
   355    namespace: default
   356  spec: null
   357  status:
   358    parents:
   359    - conditions:
   360      - lastTransitionTime: fake
   361        message: Route was valid
   362        reason: Accepted
   363        status: "True"
   364        type: Accepted
   365      - lastTransitionTime: fake
   366        message: 'referencing unsupported backendRef: group "" kind "GcsBucket"'
   367        reason: InvalidKind
   368        status: "False"
   369        type: ResolvedRefs
   370      controllerName: istio.io/gateway-controller
   371      parentRef:
   372        name: gateway
   373        namespace: istio-system
   374  ---
   375  apiVersion: gateway.networking.k8s.io/v1beta1
   376  kind: HTTPRoute
   377  metadata:
   378    creationTimestamp: null
   379    name: invalid-backendRef-mixed
   380    namespace: default
   381  spec: null
   382  status:
   383    parents:
   384    - conditions:
   385      - lastTransitionTime: fake
   386        message: Route was valid
   387        reason: Accepted
   388        status: "True"
   389        type: Accepted
   390      - lastTransitionTime: fake
   391        message: 'referencing unsupported backendRef: group "" kind "GcsBucket"'
   392        reason: InvalidKind
   393        status: "False"
   394        type: ResolvedRefs
   395      controllerName: istio.io/gateway-controller
   396      parentRef:
   397        name: gateway
   398        namespace: istio-system
   399  ---
   400  apiVersion: gateway.networking.k8s.io/v1beta1
   401  kind: HTTPRoute
   402  metadata:
   403    creationTimestamp: null
   404    name: invalid-backendRef-notfound
   405    namespace: default
   406  spec: null
   407  status:
   408    parents:
   409    - conditions:
   410      - lastTransitionTime: fake
   411        message: Route was valid
   412        reason: Accepted
   413        status: "True"
   414        type: Accepted
   415      - lastTransitionTime: fake
   416        message: backend(nonexistent.default.svc.domain.suffix) not found
   417        reason: BackendNotFound
   418        status: "False"
   419        type: ResolvedRefs
   420      controllerName: istio.io/gateway-controller
   421      parentRef:
   422        name: gateway
   423        namespace: istio-system
   424  ---
   425  apiVersion: gateway.networking.k8s.io/v1beta1
   426  kind: HTTPRoute
   427  metadata:
   428    creationTimestamp: null
   429    name: invalid-mirror
   430    namespace: default
   431  spec: null
   432  status:
   433    parents:
   434    - conditions:
   435      - lastTransitionTime: fake
   436        message: Route was valid
   437        reason: Accepted
   438        status: "True"
   439        type: Accepted
   440      - lastTransitionTime: fake
   441        message: 'referencing unsupported backendRef: group "" kind "no-support"'
   442        reason: InvalidKind
   443        status: "False"
   444        type: ResolvedRefs
   445      controllerName: istio.io/gateway-controller
   446      parentRef:
   447        name: gateway
   448        namespace: istio-system
   449  ---
   450  apiVersion: gateway.networking.k8s.io/v1beta1
   451  kind: HTTPRoute
   452  metadata:
   453    creationTimestamp: null
   454    name: invalid-parentRef-port
   455    namespace: default
   456  spec: null
   457  status:
   458    parents:
   459    - conditions:
   460      - lastTransitionTime: fake
   461        message: port 1234 not found
   462        reason: NoMatchingParent
   463        status: "False"
   464        type: Accepted
   465      - lastTransitionTime: fake
   466        message: All references resolved
   467        reason: ResolvedRefs
   468        status: "True"
   469        type: ResolvedRefs
   470      controllerName: istio.io/gateway-controller
   471      parentRef:
   472        name: gateway
   473        namespace: istio-system
   474        port: 1234
   475  ---
   476  apiVersion: gateway.networking.k8s.io/v1beta1
   477  kind: HTTPRoute
   478  metadata:
   479    creationTimestamp: null
   480    name: invalid-sectionname-port
   481    namespace: default
   482  spec: null
   483  status:
   484    parents:
   485    - conditions:
   486      - lastTransitionTime: fake
   487        message: sectionName "fake" not found
   488        reason: NoMatchingParent
   489        status: "False"
   490        type: Accepted
   491      - lastTransitionTime: fake
   492        message: All references resolved
   493        reason: ResolvedRefs
   494        status: "True"
   495        type: ResolvedRefs
   496      controllerName: istio.io/gateway-controller
   497      parentRef:
   498        name: gateway
   499        namespace: istio-system
   500        sectionName: fake
   501  ---
   502  apiVersion: gateway.networking.k8s.io/v1beta1
   503  kind: HTTPRoute
   504  metadata:
   505    creationTimestamp: null
   506    name: no-backend
   507    namespace: default
   508  spec: null
   509  status:
   510    parents:
   511    - conditions:
   512      - lastTransitionTime: fake
   513        message: Route was valid
   514        reason: Accepted
   515        status: "True"
   516        type: Accepted
   517      - lastTransitionTime: fake
   518        message: All references resolved
   519        reason: ResolvedRefs
   520        status: "True"
   521        type: ResolvedRefs
   522      controllerName: istio.io/gateway-controller
   523      parentRef:
   524        group: ""
   525        kind: Service
   526        name: httpbin
   527  ---