Skip to content

Comments

[addon-operator] feat: add options to shell constructor#673

Closed
ldmonster wants to merge 11 commits intomainfrom
feat/add-options-to-shell-constructor
Closed

[addon-operator] feat: add options to shell constructor#673
ldmonster wants to merge 11 commits intomainfrom
feat/add-options-to-shell-constructor

Conversation

@ldmonster
Copy link
Collaborator

@ldmonster ldmonster commented Sep 20, 2025

Overview

Key Changes Identified:

  1. 📊 Metrics Centralization (Major)

    • Created new metrics.go with organized metric constants
    • Replaced 31 hardcoded metric strings across 32+ files
    • Organized metrics into functional categories with clear documentation
  2. 🏗️ Constructor Enhancement

    • Added WithMetricStorage() and WithHookMetricStorage() constructor options
    • Enhanced dependency injection capabilities
  3. 🔧 Code Structure Improvements

    • Enhanced bootstrap.go with modular functions and clear sections
    • Updated task interfaces to use modern shell-operator patterns
    • Improved error handling and logging throughout

What this PR does / why we need it

Special notes for your reviewer

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
@ldmonster ldmonster self-assigned this Sep 20, 2025
@ldmonster ldmonster added the enhancement New feature or request label Sep 20, 2025
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
@ldmonster ldmonster added the tests/run/all Run tests on full matrix of k8s versions label Sep 20, 2025
@ldmonster ldmonster closed this Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tests/run/all Run tests on full matrix of k8s versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant