Remove migration code not needed anymore since 26.11

未关闭 适合新手
#1,331 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
kubernetes, rust
领域
backend

调研方向

从 crates/stackable-operator/src/commons/random_secret_creation.rs 开始,检查 create_random_secret_if_not_exists,尤其是不可变 Secret 分支及其 TODO。为 27.3 版本移除仅用于迁移的行为及相关代码;该 issue 还建议在不可变 Secret 表明升级已跳过时记录警告。移除过时的迁移路径和 TODO,并处理是否记录警告的决定后,即为完成。

由索引模型根据 Issue 内容生成。

描述

scheduled-for/27.3.0

create_random_secret_if_not_exists (crates/stackable-operator/src/commons/random_secret_creation.rs) migrates random Secrets that SDP up to 26.3.0 created as immutable (https://github.com/stackabletech/issues/843). It deletes the immutable Secret and then re-creates it as mutable from the copy in memory.

This code is not needed anymore for 26.11 and later but we forgot to remove it. In 27.3 this can be removed.

Scope:

  • Remove the immutable: Some(true) branch and whatever else is only there for that including the TODO comment
  • And/or: Add a log warning for an immutable secret saying that the upgrade seems to have been skipped.
主要语言
Rust
星标
170
派生
20
平均合并
1 天 10 小时
30 天内合并 PR
17

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stackabletech/operator-rs 的其他 Issue

查看 stackabletech/operator-rs 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。