Skip to content

Instantly share code, notes, and snippets.

@mitch-seymour
Last active April 26, 2021 18:58
Show Gist options
  • Save mitch-seymour/39aec63e71d786dad1981084cddbb33f to your computer and use it in GitHub Desktop.
Save mitch-seymour/39aec63e71d786dad1981084cddbb33f to your computer and use it in GitHub Desktop.
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: trafficshadows.smispec.mitchseymour.com
spec:
group: smispec.mitchseymour.com
scope: Namespaced
names:
kind: TrafficShadow
listKind: TrafficShadowList
shortNames:
- shadow
plural: trafficshadows
singular: trafficshadow
versions:
- name: v1alpha1
served: true
storage: true
additionalPrinterColumns:
- name: Service
type: string
description: The service
jsonPath: .spec.service
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
required:
- service
- shadowBackends
properties:
service:
description: The primary backend service
type: string
shadowBackends:
description: The shadow backend services
type: array
items:
type: object
required: ['service']
properties:
service:
description: Name of the Kubernetes service.
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment