Skip to content

Commit

Permalink
Add akri-dashboard-extension v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomasek committed Nov 15, 2024
1 parent 0e68fc1 commit d06ef9d
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 3 deletions.
Binary file not shown.
18 changes: 18 additions & 0 deletions charts/akri-dashboard-extension/1.2.0/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Akri
catalog.cattle.io/kube-version: '>= v1.26.0-0'
catalog.cattle.io/namespace: cattle-ui-plugin-system
catalog.cattle.io/os: linux
catalog.cattle.io/permits-os: linux, windows
catalog.cattle.io/rancher-version: '>= 2.10.0-0'
catalog.cattle.io/scope: management
catalog.cattle.io/ui-component: plugins
catalog.cattle.io/ui-extensions-version: '>= 3.0.0'
apiVersion: v2
appVersion: 1.2.0
description: 'SUSE Edge: Akri extension for Rancher Dashboard'
icon: https://raw.githubusercontent.com/cncf/artwork/main/projects/akri/icon/color/akri-icon-color.svg
name: akri-dashboard-extension
type: application
version: 1.2.0
6 changes: 6 additions & 0 deletions charts/akri-dashboard-extension/1.2.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SUSE Edge: Akri extension for Rancher Dashboard

An extension for Rancher Dashboard allowing to manage heterogenous leaf devices and their workloads.

For more information on SUSE Edge see https://suse-edge.github.io/ \
For more information on Kubevirt see https://docs.akri.sh/
63 changes: 63 additions & 0 deletions charts/akri-dashboard-extension/1.2.0/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "extension-server.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "extension-server.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}


{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "extension-server.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "extension-server.labels" -}}
helm.sh/chart: {{ include "extension-server.chart" . }}
{{ include "extension-server.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "extension-server.selectorLabels" -}}
app.kubernetes.io/name: {{ include "extension-server.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Pkg annotations
*/}}
{{- define "extension-server.pluginMetadata" -}}
{{- with .Values.plugin.metadata }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/akri-dashboard-extension/1.2.0/templates/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: catalog.cattle.io/v1
kind: UIPlugin
metadata:
name: {{ include "extension-server.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{ include "extension-server.labels" . | nindent 4 }}
spec:
plugin:
name: {{ include "extension-server.fullname" . }}
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
endpoint: https://raw.githubusercontent.com/suse-edge/dashboard-extensions/gh-pages/extensions/akri-dashboard-extension/1.2.0
noCache: {{ .Values.plugin.noCache }}
noAuth: {{ .Values.plugin.noAuth }}
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
12 changes: 12 additions & 0 deletions charts/akri-dashboard-extension/1.2.0/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
nameOverride: ""
fullnameOverride: ""
plugin:
enabled: true
versionOverride: ""
noCache: false
noAuth: false
metadata:
catalog.cattle.io/display-name: Akri
catalog.cattle.io/rancher-version: ">= 2.10.0-0"
catalog.cattle.io/ui-extensions-version: ">= 3.0.0"
catalog.cattle.io/kube-version: ">= v1.26.0-0"
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ <h2>Charts</h2>


<div class="chart">
<a href="assets/akri-dashboard-extension/akri-dashboard-extension-1.1.0.tgz" title="assets/akri-dashboard-extension/akri-dashboard-extension-1.1.0.tgz">
<a href="assets/akri-dashboard-extension/akri-dashboard-extension-1.2.0.tgz" title="assets/akri-dashboard-extension/akri-dashboard-extension-1.2.0.tgz">
<div class="icon">
<img class="chart-item-logo" alt="akri-dashboard-extension's logo" src="https://raw.githubusercontent.com/cncf/artwork/main/projects/akri/icon/color/akri-icon-color.svg">
</div>
<div class="body">
<p class="info">
akri-dashboard-extension
(1.1.0@1.1.0)
(1.2.0@1.2.0)
<a href="https://github.com/suse-edge/charts/tree/main/charts/akri-dashboard-extension">
<img src="https://raw.githubusercontent.com/suse-edge/charts/main/_images/GitHub-Mark-32px.png" alt="github link" style="height: 16px; width: 16px; vertical-align: middle;" />
</a>
Expand Down
22 changes: 22 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ entries:
- assets/akri/akri-0.10.4.tgz
version: 0.10.4
akri-dashboard-extension:
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Akri
catalog.cattle.io/kube-version: '>= v1.26.0-0'
catalog.cattle.io/namespace: cattle-ui-plugin-system
catalog.cattle.io/os: linux
catalog.cattle.io/permits-os: linux, windows
catalog.cattle.io/rancher-version: '>= 2.10.0-0'
catalog.cattle.io/scope: management
catalog.cattle.io/ui-component: plugins
catalog.cattle.io/ui-extensions-version: '>= 3.0.0'
apiVersion: v2
appVersion: 1.2.0
created: "2024-11-15T12:31:57.799324+01:00"
description: 'SUSE Edge: Akri extension for Rancher Dashboard'
digest: e04fd8820a574e1b1a7c5b6f86d5de53d94e73e2cfc2daaaa81400ad4660a710
icon: https://raw.githubusercontent.com/cncf/artwork/main/projects/akri/icon/color/akri-icon-color.svg
name: akri-dashboard-extension
type: application
urls:
- assets/akri-dashboard-extension/akri-dashboard-extension-1.2.0.tgz
version: 1.2.0
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Akri
Expand Down
2 changes: 1 addition & 1 deletion packages/akri-dashboard-extension/package.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
url: https://github.com/suse-edge/dashboard-extensions/raw/gh-pages/assets/akri-dashboard-extension/akri-dashboard-extension-1.1.0.tgz
url: https://github.com/suse-edge/dashboard-extensions/raw/gh-pages/assets/akri-dashboard-extension/akri-dashboard-extension-1.2.0.tgz

0 comments on commit d06ef9d

Please sign in to comment.