Remove migration code not needed anymore since 26.11

オープン 初心者向け
#1,331 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stackabletech/operator-rs のほかの issue

stackabletech/operator-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。