Skip to content

Conversation

@oskarwojciski
Copy link
Member

@oskarwojciski oskarwojciski commented Jan 15, 2026

When calling RecordActionResults, we send the component parameters used for installing the component.
We send only defined parameters in extractor package.

To handle the case when the operator is upgraded directly with Helm (no with component_action from castware service) a detection of version change, and then new params are recorded.

Values sent for operator with extended-permissions:
image

@oskarwojciski oskarwojciski marked this pull request as draft January 15, 2026 09:58
@oskarwojciski oskarwojciski marked this pull request as ready for review January 15, 2026 10:25
},
Config: map[string]interface{}{},
}, nil).Times(2)
}, nil).AnyTimes()
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why we can't adjust those to the expected number of calls instead of any ?

return extractOperatorParams(ctx, log, k8sClient, namespace)
case components.ComponentNameSpotHandler:
return extractSpotHandlerParams(helmRelease)
case components.ComponentNameClusterController:
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need anything from the agent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants