-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify all chart files under .obs/charfile
Signed-off-by: David Cassany <[email protected]>
- Loading branch information
1 parent
20ce1e0
commit 07d4863
Showing
21 changed files
with
3,274 additions
and
21 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
.obs/chartfile/crds/templates/validate-no-pending-deletions.yaml
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 @@ | ||
{{- $inventoryCRD := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" .Release.Namespace "machineinventories.elemental.cattle.io" -}} | ||
{{- if $inventoryCRD -}} | ||
{{- if $inventoryCRD.metadata.deletionTimestamp -}} | ||
{{- required "CRDs from previous installations are pending to be removed (deletionTimestamp is set). Fully deleting them before (re-)installing is required" "" -}} | ||
{{- 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,5 @@ | ||
# Elemental | ||
|
||
Elemental brings to Rancher the ability to install and manage the OS of bare metal and virtualized machines. | ||
|
||
For more information on how to deploy an Elemental Cluster, follow the [official documentation](https://elemental.docs.rancher.com/). |
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,27 @@ | ||
questions: | ||
- variable: channel.defaultChannel | ||
default: "true" | ||
description: "Provide an Elemental OS Channel container image" | ||
label: Elemental OS Channel | ||
type: boolean | ||
show_subquestion_if: true | ||
group: "Elemental OS Channel" | ||
subquestions: | ||
- variable: channel.repository | ||
default: registry.suse.com/rancher/elemental-teal-channel | ||
description: "Specify Elemental OS channel repository" | ||
type: string | ||
label: Elemental OS Channel Repository | ||
group: "Elemental OS Channel" | ||
- variable: channel.tag | ||
default: "1.3.4" | ||
description: "Specify Elemental OS channel tag" | ||
type: string | ||
label: "Elemental OS Channel Tag" | ||
group: "Elemental OS Channel" | ||
- variable: debug | ||
default: "false" | ||
description: "Enable debug logging in the Elemental operator" | ||
type: boolean | ||
label: "Enable Debug Logging" | ||
group: "Logging" |
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 @@ | ||
{{- define "system_default_registry" -}} | ||
{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "registry_url" -}} | ||
{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
{{ include "system_default_registry" . }} | ||
{{- else if .Values.registryUrl -}} | ||
{{- printf "%s/" .Values.registryUrl -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- 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,9 @@ | ||
kind: APIService | ||
apiVersion: management.cattle.io/v3 | ||
metadata: | ||
name: {{ .Release.Name }} | ||
spec: | ||
secretName: elemental-operator | ||
secretNamespace: {{ .Release.Namespace }} | ||
pathPrefixes: | ||
- /elemental/ |
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,10 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: elemental-capi-role | ||
labels: | ||
cluster.x-k8s.io/aggregate-to-manager: "true" | ||
rules: | ||
- apiGroups: ["elemental.cattle.io"] | ||
resources: ["*"] | ||
verbs: ["*"] |
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,11 @@ | ||
{{ if and .Values.channel .Values.channel.repository .Values.channel.tag }} | ||
apiVersion: elemental.cattle.io/v1beta1 | ||
kind: ManagedOSVersionChannel | ||
metadata: | ||
name: elemental-channel | ||
namespace: fleet-default | ||
spec: | ||
options: | ||
image: {{ template "registry_url" . }}{{ .Values.channel.repository }}:{{ .Values.channel.tag }} | ||
type: custom | ||
{{ 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,267 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
name: '{{ .Release.Name }}' | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods/log | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods/status | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- serviceaccounts | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services/status | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- cluster.x-k8s.io | ||
resources: | ||
- machines | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineinventories | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineinventories/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineinventoryselectors | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineinventoryselectors/status | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineregistrations | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- machineregistrations/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosimages | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosimages/status | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosversionchannels | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosversionchannels/status | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosversions | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- managedosversions/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- seedimages | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- elemental.cattle.io | ||
resources: | ||
- seedimages/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- fleet.cattle.io | ||
resources: | ||
- bundles | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- management.cattle.io | ||
resources: | ||
- settings | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- rolebindings | ||
- roles | ||
verbs: | ||
- create | ||
- delete | ||
- list | ||
- watch |
13 changes: 13 additions & 0 deletions
13
.obs/chartfile/operator/templates/cluster_role_binding.yaml
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,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Release.Name }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ .Release.Name }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }} | ||
namespace: {{.Release.Namespace}} | ||
|
Oops, something went wrong.