Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
CI Build Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcase committed Jul 10, 2023
1 parent b439e43 commit 5e4a9dd
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 0 deletions.
Binary file added assets/cluster-api/cluster-api-0.1.0.tgz
Binary file not shown.
23 changes: 23 additions & 0 deletions assets/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
entries:
cluster-api:
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.28.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.7.0-0 < 2.8.0-0'
catalog.cattle.io/scope: management
catalog.cattle.io/ui-component: plugins
apiVersion: v2
appVersion: 0.1.0
created: "2023-07-10T13:25:55.788354799Z"
description: cluster-api plugin
digest: bef4f503d87b70630c7647c605f3c7b387f46fdbda1fbe354b280fc6550dbe73
name: cluster-api
type: application
urls:
- assets/cluster-api/cluster-api-0.1.0.tgz
version: 0.1.0
generated: "2023-07-10T13:25:55.78722239Z"
15 changes: 15 additions & 0 deletions charts/cluster-api/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: cluster-api plugin
name: cluster-api
type: application
version: 0.1.0
2 changes: 2 additions & 0 deletions charts/cluster-api/0.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Manage Cluster API
A proof-of-concept extension to integrate Cluster API and Rancher.
52 changes: 52 additions & 0 deletions charts/cluster-api/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/cluster-api/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/rancher-sandbox/rancher-turtles-ui/gh-pages/extensions/cluster-api/0.1.0
noCache: {{ .Values.plugin.noCache }}
6 changes: 6 additions & 0 deletions charts/cluster-api/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
3 changes: 3 additions & 0 deletions extensions/cluster-api/0.1.0/files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugin/cluster-api-0.1.0.umd.min.js
plugin/cluster-api-0.1.0.umd.min.js.map
plugin/package.json

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

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

19 changes: 19 additions & 0 deletions extensions/cluster-api/0.1.0/plugin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "cluster-api",
"description": "cluster-api 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": "cluster-api-0.1.0.umd.min.js"
}
23 changes: 23 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
entries:
cluster-api:
- annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.28.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.7.0-0 < 2.8.0-0'
catalog.cattle.io/scope: management
catalog.cattle.io/ui-component: plugins
apiVersion: v2
appVersion: 0.1.0
created: "2023-07-10T13:25:55.788354799Z"
description: cluster-api plugin
digest: bef4f503d87b70630c7647c605f3c7b387f46fdbda1fbe354b280fc6550dbe73
name: cluster-api
type: application
urls:
- assets/cluster-api/cluster-api-0.1.0.tgz
version: 0.1.0
generated: "2023-07-10T13:25:55.78722239Z"

0 comments on commit 5e4a9dd

Please sign in to comment.