Skip to content

Apply the CRD using the SSA method in LocallyRunOperationExtension #2458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Apply the CRD using the SSA method in LocallyRunOperationExtension #2458

merged 1 commit into from
Jun 26, 2024

Conversation

10000-ki
Copy link
Contributor

resolved: #2457

@openshift-ci openshift-ci bot requested review from adam-sandor and metacosm June 26, 2024 05:25
@@ -182,7 +182,7 @@ public static void applyCrd(String resourceTypeName, KubernetesClient client) {
var crdString = new String(is.readAllBytes(), StandardCharsets.UTF_8);
LOGGER.debug("Applying CRD: {}", crdString);
final var crd = client.load(new ByteArrayInputStream(crdString.getBytes()));
crd.createOrReplace();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have documented the related content in the issue. Is there any specific reason we need to use the CSA method here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, It think this is fine.

@metacosm metacosm merged commit 8f77f68 into operator-framework:main Jun 26, 2024
20 checks passed
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.

Apply the CRD using the SSA method in LocallyRunOperationExtension.
3 participants