Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit e775742

Browse files
johnugeorgek8s-ci-robot
authored andcommitted
Moving crd to manifests (#178)
* Moving crd to manifests * Moving crd to manifests * Moving crd to manifests
1 parent e947bd2 commit e775742

File tree

3 files changed

+17
-54
lines changed

3 files changed

+17
-54
lines changed

developer_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export KUBEFLOW_NAMESPACE=$(your_namespace)
5555
After the cluster is up, the PyTorch Operator CRD should be created on the cluster.
5656

5757
```bash
58-
kubectl create -f ./examples/crd/crd-v1.yaml
58+
kubectl create -f ./manifests/crd.yaml
5959
```
6060

6161
### Run Operator

examples/crd/crd-v1.yaml

Lines changed: 0 additions & 52 deletions
This file was deleted.

manifests/crd.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ kind: CustomResourceDefinition
33
metadata:
44
name: pytorchjobs.kubeflow.org
55
spec:
6+
additionalPrinterColumns:
7+
- JSONPath: .status.conditions[-1:].type
8+
name: State
9+
type: string
10+
- JSONPath: .metadata.creationTimestamp
11+
name: Age
12+
type: date
613
group: kubeflow.org
714
names:
815
kind: PyTorchJob
916
plural: pytorchjobs
1017
singular: pytorchjob
1118
scope: Namespaced
19+
subresources:
20+
status: {}
1221
validation:
1322
openAPIV3Schema:
1423
properties:
@@ -27,4 +36,10 @@ spec:
2736
replicas:
2837
minimum: 1
2938
type: integer
30-
version: v1beta1
39+
versions:
40+
- name: v1
41+
served: true
42+
storage: true
43+
- name: v1beta2
44+
served: true
45+
storage: false

0 commit comments

Comments
 (0)