Skip to content

Commit

Permalink
CI Build Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Nov 29, 2022
1 parent 2f30c8f commit 994670c
Show file tree
Hide file tree
Showing 105 changed files with 2,888 additions and 7 deletions.
Binary file added assets/elemental/elemental-1.0.0.tgz
Binary file not shown.
16 changes: 16 additions & 0 deletions charts/elemental/1.0.0/Chart.yaml
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.25.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.0"
description: OS Management plugin
name: elemental
type: application
version: 1.0.0
icon: https://raw.githubusercontent.com/rancher/elemental-ui/main/pkg/elemental/icon.svg
15 changes: 15 additions & 0 deletions charts/elemental/1.0.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# OS Management Extension

Adds support for OS Management to Rancher Manager through Elemental.


Elemental is a software stack enabling a centralized, full cloud-native OS management with Kubernetes.

Cluster Node OSes are built and maintained via container images through the Elemental Toolkit and installed on new hosts using the Elemental CLI.

The Elemental Operator and the Rancher System Agent enable Rancher Manager to fully control Elemental clusters, from the installation and management of the OS on the Nodes to the provisioning of new K3s or RKE2 clusters in a centralized way.

For more details take a look at the documentation regarding [Elemental](https://rancher.github.io/elemental/).


**IMPORTANT NOTE**: In order to have access to OS Management in Rancher Manager, installation of the Elemental Operator is required. Instructions for installing it can be found [here](https://rancher.github.io/elemental/elementaloperatorchart-reference/).
17 changes: 17 additions & 0 deletions charts/elemental/1.0.0/files/nginx.conf
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;
}
}
78 changes: 78 additions & 0 deletions charts/elemental/1.0.0/templates/_helpers.tpl
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 -}}
14 changes: 14 additions & 0 deletions charts/elemental/1.0.0/templates/cr.yaml
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/elemental-ui/main/extensions/elemental/1.0.0
noCache: {{ .Values.plugin.noCache }}
{{- end }}
30 changes: 30 additions & 0 deletions charts/elemental/1.0.0/values.yaml
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: /ui-extension-elemental
pullPolicy: Always
tag: 1.0.0
service:
type: ClusterIP
port: 80
targetPort: 8080
deployment:
replicas: 1
resources: {}
securityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
plugin:
enabled: true
versionOverride: ''
noCache: false
96 changes: 96 additions & 0 deletions extensions/elemental/1.0.0/files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
plugin/elemental-1.0.0.umd.min.7.js
plugin/elemental-1.0.0.umd.min.7.js.map
plugin/elemental-1.0.0.umd.min.8.js
plugin/elemental-1.0.0.umd.min.8.js.map
plugin/elemental-1.0.0.umd.min.detail.js
plugin/elemental-1.0.0.umd.min.detail.js.map
plugin/elemental-1.0.0.umd.min.edit.js
plugin/elemental-1.0.0.umd.min.edit.js.map
plugin/elemental-1.0.0.umd.min.js
plugin/elemental-1.0.0.umd.min.js.map
plugin/elemental-1.0.0.umd.min.machine-config.js
plugin/elemental-1.0.0.umd.min.machine-config.js.map
plugin/elemental-1.0.0.umd.min.vendors~detail~edit.js
plugin/elemental-1.0.0.umd.min.vendors~detail~edit.js.map
plugin/elemental-1.0.0.umd.min.vendors~edit.js
plugin/elemental-1.0.0.umd.min.vendors~edit.js.map
plugin/elemental-1.0.0.umd.min.vendors~edit~machine-config.js
plugin/elemental-1.0.0.umd.min.vendors~edit~machine-config.js.map
plugin/img/aks-black.c476b248.svg
plugin/img/aks.f30a4ee5.svg
plugin/img/aliyun-black.b576ca7f.svg
plugin/img/aliyun.05625b68.svg
plugin/img/aliyunecs-black.47c0410f.svg
plugin/img/aliyunecs.d971267d.svg
plugin/img/amazonec2-black.d1821012.svg
plugin/img/amazonec2.1aa39ab0.svg
plugin/img/amazoneks-black.a84e95fa.svg
plugin/img/amazoneks.08036fe5.svg
plugin/img/aws.259e1339.svg
plugin/img/azure-black.5f0d4c16.svg
plugin/img/azure.eb8fe01e.svg
plugin/img/azuread-black.df47a4be.svg
plugin/img/azuread.89d0693d.svg
plugin/img/azureaks-black.c476b248.svg
plugin/img/azureaks.f30a4ee5.svg
plugin/img/baidu-black.fbfb0a3d.svg
plugin/img/baidu.59230de0.svg
plugin/img/cloudca-black.e617e95a.svg
plugin/img/cloudca.1095d0cc.svg
plugin/img/cloudscale-black.05c818ff.svg
plugin/img/cloudscale.15af4521.svg
plugin/img/custom.73e585f1.svg
plugin/img/digitalocean-black.c7b0f38c.svg
plugin/img/digitalocean.acdee7f1.svg
plugin/img/equinix-black.74a27b4d.svg
plugin/img/equinix.439fbbbe.svg
plugin/img/exoscale.7a312d6d.svg
plugin/img/gcp.92c9d851.svg
plugin/img/generic-catalog.99bdaecf.svg
plugin/img/generic-driver.58cd1dcb.svg
plugin/img/gke-black.270042cf.svg
plugin/img/gke.deaff14c.svg
plugin/img/google.778e7144.svg
plugin/img/googlegke-black.270042cf.svg
plugin/img/googlegke.deaff14c.svg
plugin/img/harvester.b14e570b.svg
plugin/img/huaweicce-black.39ee46f2.svg
plugin/img/huaweicce.4fb3a929.svg
plugin/img/icon.9267dab6.svg
plugin/img/import.2e2e359c.svg
plugin/img/k3s-black.d52e5687.svg
plugin/img/k3s.01e2b406.svg
plugin/img/kubernetes-black.3e32c1a8.svg
plugin/img/kubernetes.2e2e359c.svg
plugin/img/linode.72ae9a55.svg
plugin/img/linodelke-black.058df1a0.svg
plugin/img/linodelke.72ae9a55.svg
plugin/img/local-cluster.c77b2023.svg
plugin/img/minikube-black.b739e7a9.svg
plugin/img/minikube.b39dc584.svg
plugin/img/oci-black.f960feb5.svg
plugin/img/oci.8b52fe45.svg
plugin/img/openstack-black.46740f63.svg
plugin/img/openstack.638b1003.svg
plugin/img/oracle.8219cfb5.svg
plugin/img/oracleoke-black.aaa9e8cf.svg
plugin/img/oracleoke.ddaa8a0e.svg
plugin/img/otc-black.007c6157.svg
plugin/img/otc.d7330474.svg
plugin/img/otccce.d7330474.svg
plugin/img/packet-black.cdd96d23.svg
plugin/img/packet.5fce6e98.svg
plugin/img/pinganyunecs-black.2ff2c7d9.svg
plugin/img/pinganyunecs.e75d4c8a.svg
plugin/img/pnap-black.1b1773d7.svg
plugin/img/pnap.0cb6fe69.svg
plugin/img/rackspace-black.b5378844.svg
plugin/img/rackspace.6f98715f.svg
plugin/img/rke.d10540bf.svg
plugin/img/rke2.d10540bf.svg
plugin/img/softlayer.d474be09.svg
plugin/img/tencenttke-black.58828585.svg
plugin/img/tencenttke.0b34fe07.svg
plugin/img/vmwarevsphere-black.2f9d3f1d.svg
plugin/img/vmwarevsphere.32594541.svg
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.

Loading

0 comments on commit 994670c

Please sign in to comment.