diff --git a/deployment/nmstate-console-plugin/templates/consoleplugin.tpl b/deployment/nmstate-console-plugin/templates/consoleplugin.tpl index 6da016d7..a56096dd 100644 --- a/deployment/nmstate-console-plugin/templates/consoleplugin.tpl +++ b/deployment/nmstate-console-plugin/templates/consoleplugin.tpl @@ -1,4 +1,4 @@ -apiVersion: console.openshift.io/v1alpha1 +apiVersion: console.openshift.io/v1 kind: ConsolePlugin metadata: name: {{ .Values.plugin }} @@ -6,8 +6,10 @@ metadata: console.openshift.io/use-i18n: "true" spec: displayName: 'Console Plugin for NMState' - service: - name: {{ .Values.plugin }} - namespace: {{ .Values.namespace }} - port: 9443 - basePath: '/' \ No newline at end of file + backend: + type: Service + service: + name: {{ .Values.plugin }} + namespace: {{ .Values.namespace }} + port: 9443 + basePath: '/' \ No newline at end of file diff --git a/oc-manifest.yaml b/oc-manifest.yaml index 6847c373..23b8ebfa 100755 --- a/oc-manifest.yaml +++ b/oc-manifest.yaml @@ -90,7 +90,7 @@ objects: app: "${PLUGIN_NAME}" type: ClusterIP sessionAffinity: None - - apiVersion: console.openshift.io/v1alpha1 + - apiVersion: console.openshift.io/v1 kind: ConsolePlugin metadata: name: "${PLUGIN_NAME}" @@ -98,11 +98,13 @@ objects: console.openshift.io/use-i18n: "true" spec: displayName: "Console Plugin NMState Template" - service: - name: "${PLUGIN_NAME}" - namespace: "${NAMESPACE}" - port: 9443 - basePath: "/" + backend: + type: Service + service: + name: "${PLUGIN_NAME}" + namespace: "${NAMESPACE}" + port: 9443 + basePath: "/" - apiVersion: v1 kind: ConfigMap metadata: