Skip to content

Commit

Permalink
CI Build Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cjshearer committed Jul 24, 2023
1 parent 4d24612 commit d7d9ea0
Show file tree
Hide file tree
Showing 15 changed files with 162 additions and 18 deletions.
Binary file modified assets/app-launcher/app-launcher-0.1.0.tgz
Binary file not shown.
18 changes: 9 additions & 9 deletions assets/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ entries:
catalog.cattle.io/ui-component: plugins
apiVersion: v2
appVersion: 0.1.0
created: "2023-07-24T19:17:42.505448852Z"
created: "2023-07-24T19:37:17.482927202Z"
description: app-launcher plugin
digest: 894e05775df184974e9ddfa81c76eac4069d168142b614add53f6cfdde8e628e
digest: a80f73ad054c930471b8c4294fea2302f746a6d1e86861dc96fc5c793012d71c
name: app-launcher
type: application
urls:
- assets/app-launcher/app-launcher-0.1.0.tgz
version: 0.1.0
pirate-speak:
pirate-locale:
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.28.0-0'
Expand All @@ -32,12 +32,12 @@ entries:
catalog.cattle.io/ui-component: plugins
apiVersion: v2
appVersion: 0.1.0
created: "2023-07-24T19:17:42.505783353Z"
description: pirate-speak plugin
digest: 2e825e71332c3b3cf039fc31879e924fe1daed4700d65b5d616452e73ae42685
name: pirate-speak
created: "2023-07-24T19:37:17.483325642Z"
description: pirate-locale plugin
digest: 8cadf0c7d13b8bf3615e7c83e2cbfc031e9ab05b007d38b87e63557de7bbc07d
name: pirate-locale
type: application
urls:
- assets/pirate-speak/pirate-speak-0.1.0.tgz
- assets/pirate-locale/pirate-locale-0.1.0.tgz
version: 0.1.0
generated: "2023-07-24T19:17:42.504539051Z"
generated: "2023-07-24T19:37:17.481052213Z"
Binary file added assets/pirate-locale/pirate-locale-0.1.0.tgz
Binary file not shown.
15 changes: 15 additions & 0 deletions charts/pirate-locale/0.1.0/Chart.yaml
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
29 changes: 29 additions & 0 deletions charts/pirate-locale/0.1.0/README.md
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!
52 changes: 52 additions & 0 deletions charts/pirate-locale/0.1.0/templates/_helpers.tpl
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 }}
12 changes: 12 additions & 0 deletions charts/pirate-locale/0.1.0/templates/cr.yaml
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 }}
6 changes: 6 additions & 0 deletions charts/pirate-locale/0.1.0/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nameOverride: ""
fullnameOverride: ""
plugin:
enabled: true
versionOverride: ""
noCache: false
5 changes: 5 additions & 0 deletions extensions/pirate-locale/0.1.0/files.txt
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
19 changes: 19 additions & 0 deletions extensions/pirate-locale/0.1.0/plugin/package.json
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"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d7d9ea0

Please sign in to comment.