Skip to content

Commit c729704

Browse files
committed
Revert "Warn that v1.28 will deprecate reencrypt/prepare (#7848)"
This reverts commit 4ab01f3. Signed-off-by: Derek Nola <[email protected]>
1 parent 58a8deb commit c729704

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

pkg/cli/secretsencrypt/secrets_encrypt.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/k3s-io/k3s/pkg/server"
1717
"github.com/k3s-io/k3s/pkg/version"
1818
"github.com/pkg/errors"
19-
"github.com/sirupsen/logrus"
2019
"github.com/urfave/cli"
2120
"k8s.io/utils/pointer"
2221
)
@@ -152,7 +151,6 @@ func Prepare(app *cli.Context) error {
152151
if err = cmds.InitLogging(); err != nil {
153152
return err
154153
}
155-
logrus.Warnln("This command will be deprecated in v1.28, will be combined with rotate")
156154
info, err := commandPrep(app, &cmds.ServerConfig)
157155
if err != nil {
158156
return err
@@ -198,7 +196,6 @@ func Reencrypt(app *cli.Context) error {
198196
if err = cmds.InitLogging(); err != nil {
199197
return err
200198
}
201-
logrus.Warnln("This command will be deprecated in v1.28, will be combined with rotate")
202199
info, err := commandPrep(app, &cmds.ServerConfig)
203200
if err != nil {
204201
return err

pkg/server/secrets-encrypt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ func encryptionPrepare(ctx context.Context, server *config.Control, force bool)
208208
if err := AppendNewEncryptionKey(&curKeys); err != nil {
209209
return err
210210
}
211-
logrus.Warnln("prepare command will be deprecated in v1.28, will be combined with rotate")
212211
logrus.Infoln("Adding secrets-encryption key: ", curKeys[len(curKeys)-1])
213212

214213
if err := secretsencrypt.WriteEncryptionConfig(server.Runtime, curKeys, true); err != nil {
@@ -276,7 +275,6 @@ func encryptionReencrypt(ctx context.Context, server *config.Control, force bool
276275
if _, err = server.Runtime.Core.Core().V1().Node().Update(node); err != nil {
277276
return err
278277
}
279-
logrus.Warnln("reencrypt command will be deprecated in v1.28, will be combined with rotate")
280278
logrus.Debugf("encryption hash annotation set successfully on node: %s\n", node.ObjectMeta.Name)
281279
return nil
282280
}

0 commit comments

Comments
 (0)