Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scheduler seed #7037

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
21 changes: 21 additions & 0 deletions openstack/scheduler/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
6 changes: 6 additions & 0 deletions openstack/scheduler/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: owner-info
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: 1.0.0
digest: sha256:ca7c19b16632950e17c13dc4e5dbda8c7006ad9178f511fefe25bc57e69ad033
generated: "2024-09-05T09:55:44.009371+02:00"
10 changes: 10 additions & 0 deletions openstack/scheduler/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
description: Helm chart for Scheduler
name: scheduler
version: 0.0.1
maintainers:
- name: Philipp Matthes
dependencies:
- name: owner-info
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: '>= 0.0.0'
6 changes: 6 additions & 0 deletions openstack/scheduler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Scheduler seed project

Contains project seed for generating a project on CC.

- Example project seed: [link](https://github.com/sapcc/helm-charts/blob/master/openstack/domain-seeds/templates/domain-ccadmin-seed.yaml)
- Quota definition: [link](https://github.com/sapcc/limes/blob/master/docs/operators/config.md)
1 change: 1 addition & 0 deletions openstack/scheduler/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
technicalUser: foouser
16 changes: 16 additions & 0 deletions openstack/scheduler/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "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).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
PhilippMatthes marked this conversation as resolved.
Show resolved Hide resolved
26 changes: 26 additions & 0 deletions openstack/scheduler/templates/domain-ccadmin-seed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: "openstack.stable.sap.cc/v1"
kind: "OpenstackSeed"
metadata:
name: scheduler-seed
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
PhilippMatthes marked this conversation as resolved.
Show resolved Hide resolved
spec:
requires:
- monsoon3/domain-ccadmin-seed

domains:
- name: ccadmin
description: 'Converged Cloud Administration'
projects:
- name: scheduler
description: 'Scheduler for CC. This project was automatically generated by a project seed: https://github.com/sapcc/helm-charts/tree/master/openstack/scheduler/'
role_assignments:
- user: {{ required "technicalUser required" .Values.technicalUser }}
role: compute_viewer
- user: {{ required "technicalUser required" .Values.technicalUser }}
role: member
- user: {{ required "technicalUser required" .Values.technicalUser }}
role: volume_viewer
8 changes: 8 additions & 0 deletions openstack/scheduler/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
owner-info:
support-group: containers
service: scheduler
maintainers:
- Philipp Matthes
helm-chart-url: https://github.com/sapcc/helm-charts/tree/master/openstack/scheduler
# Secret
technicalUser: