mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 08:59:19 +00:00
Revert "kubernetes: prevent secrets from leaking to api-server logs" (#5293)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -233,13 +233,6 @@ func (e *kube) StartStep(ctx context.Context, step *types.Step, taskUUID string)
|
||||
}
|
||||
}
|
||||
|
||||
if needsStepSecret(step) {
|
||||
err = startStepSecret(ctx, e, step)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
log.Trace().Str("taskUUID", taskUUID).Msgf("starting step: %s", step.Name)
|
||||
_, err = startPod(ctx, e, step, options)
|
||||
return err
|
||||
@@ -405,13 +398,6 @@ func (e *kube) DestroyStep(ctx context.Context, step *types.Step, taskUUID strin
|
||||
}
|
||||
}
|
||||
|
||||
if needsStepSecret(step) {
|
||||
err := stopStepSecret(ctx, e, step, defaultDeleteOptions)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
}
|
||||
|
||||
err := stopPod(ctx, e, step, defaultDeleteOptions)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
|
Reference in New Issue
Block a user