Skip to content
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

Fix API and parameterize port number #67

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

empovit
Copy link
Member

@empovit empovit commented Nov 25, 2024

The console plugin API has been made GA quite a few OpenShift versions back (in OCP 4.12).
This PR updates the API version to make the plugin work on newer versions of OpenShift,
makes the port number a variable, and fixes the build.

@empovit empovit force-pushed the openshift-4.17 branch 2 times, most recently from 9213541 to 61b48b2 Compare November 25, 2024 19:47
@empovit
Copy link
Member Author

empovit commented Nov 25, 2024

/cc @mresvanis @fabiendupont

@empovit
Copy link
Member Author

empovit commented Nov 25, 2024

I'm not sure why the image build fails. I could successfully deploy the plugin on OCP 4.17 after just changing the deployment YAMLs.

@empovit
Copy link
Member Author

empovit commented Nov 25, 2024

I'm not sure why the image build fails. I could successfully deploy the plugin on OCP 4.17 after just changing the deployment YAMLs.

Updated the Dockerfile, built and deployed an image. Everything looks fine.

@fabiendupont
Copy link
Member

/lgtm

@mresvanis
Copy link
Member

@mareklibra @rawagner could you PTAL whenever possible?

The console plugin API has been made GA quite a few OpenShift
versions back (in OCP 4.12).

* Update the API version to make the plugin work on newer versions
  of OpenShift.
* Makes the port number a variable.
* Bump the Helm chart version.
* Update the image build.
* Update the documentation.
@mresvanis
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 27, 2024
Copy link

openshift-ci bot commented Nov 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: empovit, fabiendupont, mareklibra, mresvanis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mareklibra
Copy link
Contributor

/lgtm

@openshift-merge-bot openshift-merge-bot bot merged commit eb3e36f into rh-ecosystem-edge:main Nov 27, 2024
3 checks passed
kind: ConsolePlugin
metadata:
name: {{ include "console-plugin-nvidia-gpu.fullname" . }}
namespace: {{ .Release.Namespace }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI ConsolePlugin is a cluster-scoped resource so specifying namespace does nothing. Not a big deal though

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm, you're right! I added it because of https://github.com/openshift/console-plugin-template/blob/main/charts/openshift-console-plugin/templates/consoleplugin.yaml#L5. That template plugin is the recommended way for developing a console plugin, according to https://docs.openshift.com/container-platform/4.17/web_console/dynamic-plugin/dynamic-plugins-get-started.html. Will open an issue for them.

@empovit empovit deleted the openshift-4.17 branch November 27, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants