Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save christopherhein/a55ce30dad92cc8f8014cf3ac7241628 to your computer and use it in GitHub Desktop.
Save christopherhein/a55ce30dad92cc8f8014cf3ac7241628 to your computer and use it in GitHub Desktop.
Example APIGateway Account CRD
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: accounts.apigateway.awsoperator.io
spec:
group: apigateway.awsoperator.io
versions:
- name: v1alpha1
served: true
storage: true
scope: Namespaced
names:
plural: accounts
singular: account
kind: Account
shortNames: []
categories:
- aws
- apigateway
additionalPrinterColumns:
- name: Status
type: string
description: Status for the AWS CloudFormation stack.
JSONPath: ".status.reason"
- name: Message
type: string
description: Message accompanying it's current stack status.
JSONPath: ".status.message"
priority: 1
- name: Created At
type: date
description: When the resource was created
JSONPath: ".metadata.creationTimestamp"
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html
type: object
required: []
properties:
cloudWatchRole:
description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html#cfn-apigateway-account-cloudwatchrolearn
type: object
properties:
arn:
type: string
description: raw arn for the CloudWatchRoleArn
cloudWatchRoleRef:
type: object
description: CloudWatchRoleArn reference using other CRDs
properties:
name:
type: string
description: CloudWatchRoleArn name reference for other CRD
namespace:
type: string
description: CloudWatchRoleArn namespace reference for other
CRD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment