Skip to content

Commit

Permalink
Add a kubebuilder marker for status
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
  • Loading branch information
tenzen-y committed Feb 4, 2023
1 parent 4891e97 commit a1d0bf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/v2beta1/mpi-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8061,6 +8061,8 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: v1
kind: ServiceAccount
Expand Down
2 changes: 2 additions & 0 deletions manifests/base/kubeflow.org_mpijobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8038,3 +8038,5 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
3 changes: 3 additions & 0 deletions pkg/apis/kubeflow/v2beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status

type MPIJob struct {
metav1.TypeMeta `json:",inline"`
Expand All @@ -31,6 +33,7 @@ type MPIJob struct {
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true

type MPIJobList struct {
metav1.TypeMeta `json:",inline"`
Expand Down

0 comments on commit a1d0bf9

Please sign in to comment.