Skip to content

Commit 0d350d6

Browse files
authored
Merge pull request kubernetes#81359 from beautytiger/patch-9
v1beta1: bugfix in Event struct definition
2 parents f81ab5a + c6791aa commit 0d350d6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ test/integration/ttlcontroller
147147
test/integration/volume
148148
test/integration/volumescheduling
149149
test/utils
150-
vendor/k8s.io/api/events/v1beta1
151150
vendor/k8s.io/apiextensions-apiserver/pkg/apiserver
152151
vendor/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion
153152
vendor/k8s.io/apiextensions-apiserver/pkg/apiserver/schema

staging/src/k8s.io/api/events/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ type Event struct {
4343

4444
// ID of the controller instance, e.g. `kubelet-xyzf`.
4545
// +optional
46-
ReportingInstance string `json:"reportingInstance,omitemtpy" protobuf:"bytes,5,opt,name=reportingInstance"`
46+
ReportingInstance string `json:"reportingInstance,omitempty" protobuf:"bytes,5,opt,name=reportingInstance"`
4747

4848
// What action was taken/failed regarding to the regarding object.
4949
// +optional
50-
Action string `json:"action,omitemtpy" protobuf:"bytes,6,name=action"`
50+
Action string `json:"action,omitempty" protobuf:"bytes,6,name=action"`
5151

5252
// Why the action was taken.
5353
Reason string `json:"reason,omitempty" protobuf:"bytes,7,name=reason"`

0 commit comments

Comments
 (0)