-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2eaac33
commit 13cd0b6
Showing
41 changed files
with
359 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
annotations: | ||
catalog.cattle.io/certified: rancher # Any application we are adding as a helm chart | ||
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.28.0-0' | ||
catalog.cattle.io/namespace: cattle-ui-plugin-system # Must prefix with cattle- and suffix with -system= | ||
catalog.cattle.io/os: linux | ||
catalog.cattle.io/permits-os: linux, windows | ||
catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0' | ||
catalog.cattle.io/scope: management | ||
catalog.cattle.io/ui-component: plugins | ||
apiVersion: v2 | ||
appVersion: "1.0.6" | ||
description: Kubewarden extension for Rancher Manager | ||
name: kubewarden | ||
type: application | ||
version: 1.0.6 | ||
icon: https://raw.githubusercontent.com/rancher/ui-plugin-charts/main/icons/kubewarden/1.0.6-icon-kubewarden.svg |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Kubewarden Extension for Rancher Manager | ||
|
||
An extension for Rancher Manager (v2.7.0) which allows you to interact with Kubewarden. | ||
|
||
After installation, go to a cluster and you will see a new side navigation entry 'Kubewarden'. This will allow you to install Kubewarden into the cluster and manage Kubewarden resources and configuration. | ||
|
||
For more information see https://www.kubewarden.io/ |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
events {} | ||
http { | ||
sendfile on; | ||
server { | ||
listen {{ .Values.pluginServer.service.targetPort }}; | ||
listen [::]:{{ .Values.pluginServer.service.targetPort }}; | ||
|
||
resolver 0.0.0.0; | ||
autoindex on; | ||
|
||
server_name _; | ||
server_tokens off; | ||
|
||
root /home/plugin-server/plugin-contents; | ||
gzip_static on; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "plugin-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 "plugin-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 "plugin-server.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "plugin-server.labels" -}} | ||
helm.sh/chart: {{ include "plugin-server.chart" . }} | ||
{{ include "plugin-server.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "plugin-server.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "plugin-server.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{- define "system_default_registry" -}} | ||
{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Windows cluster will add default taint for linux nodes, | ||
add below linux tolerations to workloads could be scheduled to those linux nodes | ||
*/}} | ||
{{- define "linux-node-tolerations" -}} | ||
- key: "cattle.io/os" | ||
value: "linux" | ||
effect: "NoSchedule" | ||
operator: "Equal" | ||
{{- end -}} | ||
|
||
{{- define "linux-node-selector" -}} | ||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
beta.kubernetes.io/os: linux | ||
{{- else -}} | ||
kubernetes.io/os: linux | ||
{{- end -}} | ||
{{- end -}} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.plugin.enabled }} | ||
apiVersion: catalog.cattle.io/v1 | ||
kind: UIPlugin | ||
metadata: | ||
name: {{ include "plugin-server.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{ include "plugin-server.labels" . | nindent 4 }} | ||
spec: | ||
plugin: # should initially follow the design of the Helm Chart.yaml fields, could discuss modifying this | ||
name: {{ include "plugin-server.fullname" . }} | ||
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }} | ||
endpoint: https://raw.githubusercontent.com/rancher/ui-plugin-charts/main/extensions/kubewarden/1.0.6 | ||
noCache: {{ .Values.plugin.noCache }} | ||
{{- end }} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
global: | ||
cattle: | ||
systemDefaultRegistry: '' | ||
kubectl: | ||
repository: rancher/kubectl | ||
tag: v1.20.2 | ||
pullPolicy: IfNotPresent | ||
imagePullSecrets: [] | ||
nameOverride: '' | ||
fullnameOverride: '' | ||
pluginServer: | ||
image: | ||
repository: kubewarden/ui | ||
pullPolicy: Always | ||
tag: 1.0.6 | ||
service: | ||
type: ClusterIP | ||
port: 80 | ||
targetPort: 8080 | ||
deployment: | ||
replicas: 1 | ||
resources: {} | ||
securityContext: {} | ||
nodeSelector: {} | ||
tolerations: [] | ||
affinity: {} | ||
plugin: | ||
enabled: true | ||
versionOverride: '' | ||
noCache: false |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
plugin/img/icon-kubewarden.3c183b75.svg | ||
plugin/kubewarden-1.0.6.umd.min.10.js | ||
plugin/kubewarden-1.0.6.umd.min.10.js.map | ||
plugin/kubewarden-1.0.6.umd.min.9.js | ||
plugin/kubewarden-1.0.6.umd.min.9.js.map | ||
plugin/kubewarden-1.0.6.umd.min.detail.js | ||
plugin/kubewarden-1.0.6.umd.min.detail.js.map | ||
plugin/kubewarden-1.0.6.umd.min.dialog.js | ||
plugin/kubewarden-1.0.6.umd.min.dialog.js.map | ||
plugin/kubewarden-1.0.6.umd.min.edit.js | ||
plugin/kubewarden-1.0.6.umd.min.edit.js.map | ||
plugin/kubewarden-1.0.6.umd.min.formatters.js | ||
plugin/kubewarden-1.0.6.umd.min.formatters.js.map | ||
plugin/kubewarden-1.0.6.umd.min.js | ||
plugin/kubewarden-1.0.6.umd.min.js.map | ||
plugin/kubewarden-1.0.6.umd.min.list.js | ||
plugin/kubewarden-1.0.6.umd.min.list.js.map | ||
plugin/kubewarden-1.0.6.umd.min.vendors~detail.js | ||
plugin/kubewarden-1.0.6.umd.min.vendors~detail.js.map | ||
plugin/kubewarden-1.0.6.umd.min.vendors~edit.js | ||
plugin/kubewarden-1.0.6.umd.min.vendors~edit.js.map | ||
plugin/kubewarden-1.0.6.umd.min.vendors~markdown.js | ||
plugin/kubewarden-1.0.6.umd.min.vendors~markdown.js.map | ||
plugin/package.json |
1 change: 1 addition & 0 deletions
1
extensions/kubewarden/1.0.6/plugin/img/icon-kubewarden.3c183b75.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.