新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
apiVersion: "ch20.kiamol.net/v1"
|
||||
kind: ToDo
|
||||
metadata:
|
||||
name: ch20
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
item: "Finish KIAMOL Ch20"
|
||||
dueDate: "2020-07-26"
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: "ch20.kiamol.net/v1"
|
||||
kind: ToDo
|
||||
metadata:
|
||||
name: ch21
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
item: "Plan KIAMOL Ch21"
|
||||
dueDate: "2020-07-27"
|
||||
@@ -0,0 +1,31 @@
|
||||
apiVersion: apiextensions.k8s.io/v1 # minimum 1.16
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: todos.ch20.kiamol.net
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
group: ch20.kiamol.net
|
||||
scope: Namespaced
|
||||
names:
|
||||
plural: todos
|
||||
singular: todo
|
||||
kind: ToDo
|
||||
shortNames:
|
||||
- td
|
||||
versions:
|
||||
- name: v1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
properties:
|
||||
item:
|
||||
type: string
|
||||
dueDate:
|
||||
type: string
|
||||
format: date
|
||||
@@ -0,0 +1,40 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: todos.ch20.kiamol.net
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
group: ch20.kiamol.net
|
||||
scope: Namespaced
|
||||
names:
|
||||
plural: todos
|
||||
singular: todo
|
||||
kind: ToDo
|
||||
shortNames:
|
||||
- td
|
||||
versions:
|
||||
- name: v1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
properties:
|
||||
item:
|
||||
type: string
|
||||
dueDate:
|
||||
type: string
|
||||
format: date
|
||||
additionalPrinterColumns:
|
||||
- name: Item
|
||||
type: string
|
||||
description: What to do
|
||||
jsonPath: .spec.item
|
||||
- name: Due
|
||||
type: string
|
||||
description: When to do it
|
||||
jsonPath: .spec.dueDate
|
||||
Reference in New Issue
Block a user