Implement Runner resource

This commit is contained in:
Moto Ishizawa
2020-01-28 21:56:09 +09:00
parent 04a8e562c0
commit 6b392aedda
3 changed files with 135 additions and 10 deletions

View File

@@ -0,0 +1,86 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: runners.actions.summerwind.dev
spec:
group: actions.summerwind.dev
names:
kind: Runner
listKind: RunnerList
plural: runners
singular: runner
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: Runner is the Schema for the runners API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: RunnerSpec defines the desired state of Runner
properties:
image:
type: string
repository:
type: string
required:
- repository
type: object
status:
description: RunnerStatus defines the observed state of Runner
properties:
Message:
type: string
Phase:
type: string
Reason:
type: string
registration:
properties:
expiresAt:
format: date-time
type: string
repository:
type: string
token:
type: string
required:
- expiresAt
- repository
- token
type: object
required:
- Message
- Phase
- Reason
- registration
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []