Skip to content

Comments

refactoring: make the controller code more readable#406

Merged
Skarlso merged 2 commits intomainfrom
refactor-controller-code
Apr 26, 2024
Merged

refactoring: make the controller code more readable#406
Skarlso merged 2 commits intomainfrom
refactor-controller-code

Conversation

@Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Apr 25, 2024

Description

Part of open-component-model/ocm-project#76

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

  • Related Issue # (issue)
  • Closes # (issue)
  • Fixes # (issue)

Remove if not applicable

Screenshots

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🙅 no documentation needed

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@github-actions
Copy link

github-actions bot commented Apr 25, 2024

Mend Scan Summary: ❌

Repository: open-component-model/ocm-controller

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 0
MAJOR UPDATES AVAILABLE 0
LICENSE REQUIRES REVIEW 2
LICENSE RISK HIGH 10
RESTRICTED LICENSE FOR ON-PREMISE DELIVERY 0

Detailed Logs: mend-scan-> Generate Report
Mend UI

@Skarlso Skarlso marked this pull request as ready for review April 26, 2024 12:47

// References specifies configuration for the handling of nested component references.
// +optional
References ReferencesConfig `json:"references,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed because there is no point in having this setting. This will never be false.

However, this is a BREAKING change, so after this has been applied, we'll have to update the demos to remove this setting from the manifests.

@Skarlso Skarlso force-pushed the refactor-controller-code branch from 1fb99c4 to 2235f49 Compare April 26, 2024 12:51

var localizations localize.Substitutions
for _, l := range config.Localization {
l := l
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally after 1.22 these are no longer required.

@Skarlso Skarlso added this to the 2024-Q2 milestone Apr 26, 2024
@Skarlso Skarlso force-pushed the refactor-controller-code branch 2 times, most recently from 7decc43 to 530b17a Compare April 26, 2024 13:19
@Skarlso Skarlso force-pushed the refactor-controller-code branch from 530b17a to c67787c Compare April 26, 2024 13:37
@Skarlso Skarlso merged commit 4bfb3df into main Apr 26, 2024
@Skarlso Skarlso deleted the refactor-controller-code branch April 26, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔒Closed

Development

Successfully merging this pull request may close these issues.

2 participants