Skip to content

Commit 474450b

Browse files
committed
Refactored and documented values.yaml
1 parent f25fe6e commit 474450b

File tree

4 files changed

+28
-41
lines changed

4 files changed

+28
-41
lines changed
Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
1-
name: Release Charts
2-
1+
name: Publish charts
2+
# Run the tasks on every push
33
on: push
4-
54
jobs:
6-
release:
7-
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
8-
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
9-
permissions:
10-
contents: write
5+
publish_charts:
6+
name: Build and push Helm charts
117
runs-on: ubuntu-latest
128
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
9+
- name: Check out the repository
10+
uses: actions/checkout@v2
1511
with:
12+
# This is important for the semver action to work correctly
13+
# when determining the number of commits since the last tag
1614
fetch-depth: 0
1715
submodules: true
1816

1917
- name: Get SemVer version for current commit
2018
id: semver
2119
uses: stackhpc/github-actions/semver@master
2220

23-
- name: Configure Git
24-
run: |
25-
git config user.name "$GITHUB_ACTOR"
26-
git config user.email "[email protected]"
27-
28-
- name: Install Helm
29-
uses: azure/setup-helm@v3
30-
env:
31-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32-
33-
- name: "Package Chart"
34-
run: |
35-
mkdir -p .cr-release-packages
36-
helm package slurm-cluster-chart --version ${{ steps.semver.outputs.version }} --destination .cr-release-packages
37-
38-
- name: Run chart-releaser
39-
uses: helm/[email protected]
21+
- name: Publish Helm charts
22+
uses: stackhpc/github-actions/helm-publish@master
4023
with:
41-
charts_dir: .
42-
skip_packaging: True
43-
env:
44-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
45-
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
version: ${{ steps.semver.outputs.version }}
26+
app-version: ${{ steps.semver.outputs.short-sha }}
27+

slurm-cluster-chart/templates/mysql-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
value: "yes"
3535
- name: MYSQL_USER
3636
value: "slurm"
37-
image: {{ .Values.sqlImage }}
37+
image: {{ .Values.mySQL.image }}
3838
name: mysql
3939
ports:
4040
- containerPort: 3306

slurm-cluster-chart/templates/var-lib-mysql-persistentvolumeclaim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
- ReadWriteOnce
1212
resources:
1313
requests:
14-
storage: {{ .Values.databaseStorage }}
14+
storage: {{ .Values.mySQL.storage }}

slurm-cluster-chart/values.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,27 @@ nfs:
88
mountPath: /home
99
claimName: rook-nfs-pv-claim
1010

11-
sqlImage: mariadb:10.10
12-
13-
databaseStorage: 100Mi
14-
11+
# Values for Slurm's database container
12+
mySQL:
13+
#Database image to be used
14+
image: mariadb:10.10
15+
#Storage requested by the var-lib-mysql volume backing the database
16+
storage: 100Mi
17+
18+
# Configmap resource names
1519
configmaps:
1620
slurmConf: slurm-conf-configmap
1721
slurmdbdConf: slurmdbd-conf-configmap
1822
sshdConfig: sshd-config-configmap
1923

20-
# If let undefined, assumes you have run publish-keys.sh to publish your public key prior to deployment
24+
# Public key used for ssh access to the login node
25+
# If let undefined, assumes you have run the provided publish-keys.sh script to publish your public key prior to deployment
2126
sshPublicKey:
2227

28+
# Secret resource names
2329
secrets:
24-
databaseAuth: database-auth-secret
2530
mungeKey: munge-key-secret
2631

27-
#OOD username is rocky
2832
openOnDemand:
33+
#Password for default Open OnDemand user 'rocky'
2934
password: password

0 commit comments

Comments
 (0)