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 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions openstack/cortex/.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/cortex/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"
8 changes: 8 additions & 0 deletions openstack/cortex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v2
description: Helm chart for cortex
name: scheduler
version: 0.0.1
dependencies:
- name: owner-info
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
version: '>= 0.0.0'
5 changes: 5 additions & 0 deletions openstack/cortex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cortex 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)
1 change: 1 addition & 0 deletions openstack/cortex/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
technicalUser: foouser
38 changes: 38 additions & 0 deletions openstack/cortex/templates/seed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{- $vbase := .Values.global.vaultBaseURL | required "missing value for .Values.global.vaultBaseURL" -}}
{{- $region := .Values.global.region | required "missing value for .Values.global.region" -}}

apiVersion: "openstack.stable.sap.cc/v1"
kind: "OpenstackSeed"
metadata:
name: scheduler-seed
spec:
requires:
- {{ .Values.global.keystoneNamespace }}/keystone-seed

domains:
- name: Default
users:
- name: scheduler_service
description: "Scheduler service user for CC. This user was automatically generated by a user seed: https://github.com/sapcc/helm-charts/tree/master/openstack/cortex/"
password: {{ printf "%s/%s/cortex/keystone-user/password" $vbase $region | quote }}
role_assignments:
- project: scheduler
role: service

- name: ccadmin
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/cortex/"
role_assignments:
- user: scheduler_service@Default
role: member
- user: scheduler_service@Default
role: reader
- user: scheduler_service@Default
role: cloud_compute_admin
- user: scheduler_service@Default
role: cloud_identity_viewer
- user: scheduler_service@Default
role: cloud_volume_admin
- user: scheduler_service@Default
role: cloud_network_admin
5 changes: 5 additions & 0 deletions openstack/cortex/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
owner-info:
support-group: containers
service: scheduler
support-group: workload-mgmt
helm-chart-url: https://github.com/sapcc/helm-charts/tree/master/openstack/cortex