Skip to content

Commit 5d37c2b

Browse files
remove unused variable (#18)
1 parent d2b35a6 commit 5d37c2b

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

apps/v1alpha1/operationjob_types.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const (
3030
const (
3131
ReasonPodNotFound = "PodNotFound"
3232
ReasonContainerNotFound = "ContainerNotFound"
33-
ReasonReplacedByNewPod = "ReplacedByNewPod"
3433
)
3534

3635
// OperationProgress indicates operation progress of pod
@@ -134,10 +133,10 @@ type OpsStatus struct {
134133

135134
// error indicates the error info of progressing
136135
// +optional
137-
Error *CodeReasonMessage `json:"error,omitempty"`
136+
Error *ErrorReasonMessage `json:"error,omitempty"`
138137
}
139138

140-
type CodeReasonMessage struct {
139+
type ErrorReasonMessage struct {
141140
// A human-readable short word
142141
// +optional
143142
Reason string `json:"reason,omitempty"`
@@ -147,7 +146,7 @@ type CodeReasonMessage struct {
147146
}
148147

149148
// Error implements error.
150-
func (c *CodeReasonMessage) Error() string {
149+
func (c *ErrorReasonMessage) Error() string {
151150
return fmt.Sprintf("err: reason=%q, message=%q", c.Reason, c.Message)
152151
}
153152

apps/v1alpha1/zz_generated.deepcopy.go

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/apps/apps.kusionstack.io_operationjobs.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ spec:
124124
error:
125125
description: error indicates the error info of progressing
126126
properties:
127-
code:
128-
description: Code is a globally unique identifier
129-
type: string
130127
message:
131128
description: A human-readable message indicating details
132129
about the transition.

0 commit comments

Comments
 (0)