-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
15 changed files
with
162 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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: "0.1.0" | ||
description: pirate-locale plugin | ||
name: pirate-locale | ||
type: application | ||
version: 0.1.0 |
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,29 @@ | ||
# Pirate Locale Extension | ||
|
||
Arr matey, if ye be a fan o' the salty seadog life, ye be findin' yerself in the right place. This 'ere be a joke Rancher Extension that adds a new Pirate localization. Yo-ho-ho and a bottle of rum! Shiver me timbers, let's have some fun with our dev-ship! | ||
|
||
Note: The localisation in this example be far from the full breadth of pirate lingo and merely illustrates how such a zany idear could be achieved. 'Tis a life full of jollification and japes, we be tellin' ye! | ||
|
||
For this and other example plugins, see: https://github.com/rancher/ui-plugin-examples | ||
|
||
## How to Run | ||
|
||
1. Clone this here repository to yer machine. | ||
2. Install the npm dependencies with a hearty "yarn install". | ||
3. Run the extension with a rowdy "API=<Rancher Backend URL> yarn dev". | ||
|
||
## How to Use | ||
|
||
With the Pirate Locale Extension installed, ye'll be navigatin' yer Rancher UI in the ol' pirate speak! Just go to yer account settings, find the locale selection dropdown, and select "Pirate". Yer Rancher interface will now be speakin' like a true buccaneer! | ||
|
||
## Contribution | ||
|
||
All hands on deck! If ye be willin' to add more pirate speak to the extension, feel free to make a pull request. We welcome all old salts and landlubbers alike! | ||
|
||
## Support | ||
|
||
Got a bone to pick? Ye can raise yer issues in the issue tracker and we'll be sure to take a gander. | ||
|
||
Remember, this be a joke extension. Don't take it too seriously. Have fun, let loose, and maybe ye'll find ye got a bit o' the pirate in ye! | ||
|
||
Fair winds and followin' seas, me hearties! |
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,52 @@ | ||
{{/* | ||
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 }} |
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,12 @@ | ||
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/krumIO/krum-rancher-extensions-demo/gh-pages/extensions/pirate-locale/0.1.0 | ||
noCache: {{ .Values.plugin.noCache }} |
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,6 @@ | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
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,5 @@ | ||
plugin/package.json | ||
plugin/pirate-locale-0.1.0.umd.min.1.js | ||
plugin/pirate-locale-0.1.0.umd.min.1.js.map | ||
plugin/pirate-locale-0.1.0.umd.min.js | ||
plugin/pirate-locale-0.1.0.umd.min.js.map |
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,19 @@ | ||
{ | ||
"name": "pirate-locale", | ||
"description": "pirate-locale plugin", | ||
"version": "0.1.0", | ||
"private": false, | ||
"rancher": true, | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "4.5.18", | ||
"@vue/cli-service": "4.5.18", | ||
"@vue/cli-plugin-typescript": "4.5.18" | ||
}, | ||
"files": [ | ||
"**/*" | ||
], | ||
"main": "pirate-locale-0.1.0.umd.min.js" | ||
} |
2 changes: 2 additions & 0 deletions
2
extensions/pirate-locale/0.1.0/plugin/pirate-locale-0.1.0.umd.min.1.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
extensions/pirate-locale/0.1.0/plugin/pirate-locale-0.1.0.umd.min.1.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
extensions/pirate-locale/0.1.0/plugin/pirate-locale-0.1.0.umd.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.