Skip to content

Commit

Permalink
Bring the Route and Route RBAC up to date (stolostron#1362)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Gough <[email protected]>
  • Loading branch information
philipgough authored Mar 1, 2024
1 parent b5e3462 commit 6eb2e14
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
38 changes: 21 additions & 17 deletions tests/run-in-kind/router/route_crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
Expand All @@ -13,28 +13,32 @@ spec:
served: true
# One and only one version must be marked as the storage version.
storage: true
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
additionalPrinterColumns:
- name: Host
type: string
jsonPath: .status.ingress[0].host
- name: Admitted
type: string
jsonPath: .status.ingress[0].conditions[?(@.type=="Admitted")].status
- name: Service
type: string
jsonPath: .spec.to.name
- name: TLS
type: string
jsonPath: .spec.tls.type
subresources:
# enable spec/status
status: {}
# either Namespaced or Cluster
scope: Namespaced
subresources:
# enable spec/status
status: {}
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: routes
# singular name to be used as an alias on the CLI and for display
singular: route
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: Route
additionalPrinterColumns:
- name: Host
type: string
JSONPath: .status.ingress[0].host
- name: Admitted
type: string
JSONPath: .status.ingress[0].conditions[?(@.type=="Admitted")].status
- name: Service
type: string
JSONPath: .spec.to.name
- name: TLS
type: string
JSONPath: .spec.tls.type
2 changes: 1 addition & 1 deletion tests/run-in-kind/router/router_rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: openshift-ingress-router
Expand Down

0 comments on commit 6eb2e14

Please sign in to comment.