Skip to content

Commit

Permalink
more deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc7373 committed Dec 5, 2024
1 parent 07b51c7 commit 844df0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/instanceset/pod_role_event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (h *PodRoleEventHandler) Handle(cli client.Client, reqCtx intctrlutil.Reque
// HACK: to support kb-agent probe event
event = h.transformKBAgentProbeEvent(reqCtx.Log, event)

filePaths := []string{readinessProbeEventFieldPath, legacyEventFieldPath, lorryEventFieldPath}
filePaths := []string{legacyEventFieldPath, lorryEventFieldPath}
if !slices.Contains(filePaths, event.InvolvedObject.FieldPath) || event.Reason != checkRoleOperation {
return nil
}
Expand Down
11 changes: 0 additions & 11 deletions pkg/controller/instanceset/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ const (

RoleLabelKey = "kubeblocks.io/role"
AccessModeLabelKey = "workloads.kubeblocks.io/access-mode"

LegacyRSMFinalizerName = "rsm.workloads.kubeblocks.io/finalizer"

roleProbeContainerName = "kb-role-probe"
usernameCredentialVarName = "KB_RSM_USERNAME"
passwordCredentialVarName = "KB_RSM_PASSWORD"
servicePortVarName = "KB_RSM_SERVICE_PORT"
actionSvcListVarName = "KB_RSM_ACTION_SVC_LIST"
RoleUpdateMechanismVarName = "KB_RSM_ROLE_UPDATE_MECHANISM"
roleProbeTimeoutVarName = "KB_RSM_ROLE_PROBE_TIMEOUT"
readinessProbeEventFieldPath = "spec.containers{" + roleProbeContainerName + "}"
)

const (
Expand Down

0 comments on commit 844df0d

Please sign in to comment.