Skip to content

Commit

Permalink
allow for a fake ocp route to be deployed
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cook <[email protected]>
  • Loading branch information
cooktheryan committed Jan 5, 2024
1 parent 94311d9 commit 256e3d6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions hack/router-crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: routes.route.openshift.io
spec:
# group name to use for REST API: /apis/<group>/<version>
group: route.openshift.io
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# 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

0 comments on commit 256e3d6

Please sign in to comment.