Skip to content

fix: ward against nil error if resource is not filled in#1069

Merged
jakobmoellerdev merged 2 commits into
open-component-model:mainfrom
Skarlso:fix-panic-in-controller
Oct 21, 2025
Merged

fix: ward against nil error if resource is not filled in#1069
jakobmoellerdev merged 2 commits into
open-component-model:mainfrom
Skarlso:fix-panic-in-controller

Conversation

@Skarlso

@Skarlso Skarlso commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Fixes #1067

Which issue(s) this PR fixes

@Skarlso Skarlso requested a review from a team as a code owner October 20, 2025 19:54
@Skarlso

Skarlso commented Oct 20, 2025

Copy link
Copy Markdown
Contributor Author

0.5.1 -> this is not working.

kroVersion=$(curl -sL \
    https://api.github.com/repos/kro-run/kro/releases/latest | \
    jq -r '.tag_name | ltrimstr("v")'
  )
helm install kro oci://ghcr.io/kro-run/kro/kro --namespace kro --create-namespace --version="${kroVersion}" || exit 1

I'm not sure it's okay to use latest...? Maybe we should pin. 🤔

piotrjanik
piotrjanik previously approved these changes Oct 20, 2025
@piotrjanik

Copy link
Copy Markdown
Contributor

Code LGTM. Kro? Should not that be 0.4.1? That's the latest, not 0.5.1

@Skarlso

Skarlso commented Oct 20, 2025

Copy link
Copy Markdown
Contributor Author

It is the latest, but it's not a "finished" latest apparently. It's missing some pieces. :D

ikhandamirov
ikhandamirov previously approved these changes Oct 20, 2025
@ikhandamirov

Copy link
Copy Markdown
Contributor

Ok, if it is missing some pieces, then to be re-reviewed. :)

Comment thread kubernetes/controller/internal/controller/deployer/deployer_controller.go Outdated
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso force-pushed the fix-panic-in-controller branch from 9217f5a to 1669d55 Compare October 21, 2025 06:16
@github-actions github-actions Bot added the size/xs Extra small label Oct 21, 2025

@sk31337 sk31337 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm :)

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@jakobmoellerdev jakobmoellerdev merged commit 16716cc into open-component-model:main Oct 21, 2025
18 checks passed
morri-son pushed a commit to morri-son/open-component-model that referenced this pull request Oct 23, 2025
…ent-model#1069)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Fixes
open-component-model#1067

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

---------

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix Bug size/s Small size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic in k8s-toolkit

6 participants