-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix API and parameterize port number
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.
- Loading branch information
Showing
8 changed files
with
220 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v2 | ||
appVersion: latest | ||
description: | | ||
Red Hat OpenShift dynamic console plugin that leverages the NVIDIA GPU operator metrics and serves the respective console-extensions. Requires Red Hat OpenShift version 4.11+ | ||
Red Hat OpenShift dynamic console plugin that leverages the NVIDIA GPU operator metrics and serves the respective console-extensions. Requires Red Hat OpenShift version 4.12+ | ||
name: console-plugin-nvidia-gpu | ||
sources: | ||
- https://github.com/rh-ecosystem-edge/console-plugin-nvidia-gpu | ||
|
@@ -11,7 +11,7 @@ keywords: | |
- nvidia | ||
- gpu | ||
type: application | ||
version: 0.2.4 | ||
version: 0.2.5 | ||
maintainers: | ||
- name: mresvanis | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
deployment/console-plugin-nvidia-gpu/templates/consoleplugin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
apiVersion: console.openshift.io/v1alpha1 | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsolePlugin | ||
metadata: | ||
name: {{ include "console-plugin-nvidia-gpu.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "console-plugin-nvidia-gpu.labels" . | nindent 4 }} | ||
spec: | ||
displayName: 'Console Plugin NVIDIA GPU Template' | ||
service: | ||
name: {{ include "console-plugin-nvidia-gpu.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
port: 9443 | ||
basePath: '/' | ||
backend: | ||
type: Service | ||
service: | ||
name: {{ include "console-plugin-nvidia-gpu.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
port: {{ .Values.plugin.port }} | ||
basePath: {{ .Values.plugin.basePath }} |
12 changes: 6 additions & 6 deletions
12
deployment/console-plugin-nvidia-gpu/templates/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,7 @@ nodeSelector: {} | |
tolerations: [] | ||
|
||
affinity: {} | ||
|
||
plugin: | ||
port: 9443 | ||
basePath: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters