GitHub
12/12/2023, 10:45 AMcompose.yaml
.
But compose.yaml
does not contain volumes.
score.yaml
apiVersion: score.dev/v1b1
metadata:
name: hello-world
containers:
awesome-web-service:
image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do echo Hello!; sleep 100; done"]
volumes:
- source: ${resources.tmp-data}
target: /tmp
resources:
tmp-data:
type: volume
generate compose.yaml
score-compose run -f score.yaml -o compose.yaml
compose.yaml
services:
hello-world:
command:
- -c
- while true; do echo Hello!; sleep 100; done
entrypoint:
- /bin/sh
image: busybox
volumes:
- type: volume
source: tmp-data
target: /tmp
Expected behavior
services:
hello-world:
command:
- -c
- while true; do echo Hello!; sleep 100; done
entrypoint:
- /bin/sh
image: busybox
volumes:
- type: volume
source: tmp-data
target: /tmp
volumes: # generated this block
tmp-data: #
Desktop (please complete the following information):
• OS: macOS
• Version [e.g. 1.1.0]
Additional context
I'm a newbie to Score, so my thinking may be wrong.
score-spec/score-composeGitHub
12/12/2023, 10:45 AMcompose.yaml
.
But compose.yaml
does not contain volumes.
score.yaml
apiVersion: score.dev/v1b1
metadata:
name: hello-world
containers:
awesome-web-service:
image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do echo Hello!; sleep 100; done"]
volumes:
- source: ${resources.tmp-data}
target: /tmp
resources:
tmp-data:
type: volume
generate compose.yaml
score-compose run -f score.yaml -o compose.yaml
compose.yaml
services:
hello-world:
command:
- -c
- while true; do echo Hello!; sleep 100; done
entrypoint:
- /bin/sh
image: busybox
volumes:
- type: volume
source: tmp-data
target: /tmp
Expected behavior
services:
hello-world:
command:
- -c
- while true; do echo Hello!; sleep 100; done
entrypoint:
- /bin/sh
image: busybox
volumes:
- type: volume
source: tmp-data
target: /tmp
volumes: # generated this block
tmp-data: #
Desktop (please complete the following information):
• OS: macOS
• Version [e.g. 1.1.0]
Additional context
I'm a newbie to Score, so my thinking may be wrong.
score-spec/score-composeGitHub
12/12/2023, 11:21 AMGitHub
12/12/2023, 2:29 PMGitHub
12/12/2023, 2:52 PM<https://github.com/score-spec/spec/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/spec/commit/cac70a9e8fe14dbcfd26fe1ca0522ca7fdd2584d|cac70a9e>
- Updated readme (#67)
score-spec/specGitHub
12/14/2023, 9:41 AMGitHub
12/14/2023, 9:43 AMGitHub
12/14/2023, 9:50 AMGitHub
12/14/2023, 11:06 AMgit subtree pull
command as specified in schemas/README.md
to pull the latest version.
I compared the JSON files in both repos using diff
and found no differences.
Is this related to any issues?
No.
Have you read the <CONTRIBUTING.md|Contributing Guidelines>?
☑︎ I have read the <CONTRIBUTING.md|Contributing Guidelines>
score-spec/docs
✅ All checks have passed
1/1 successful checksGitHub
12/14/2023, 11:34 AM<https://github.com/score-spec/docs/tree/main|main>
by TobiasBabin
<https://github.com/score-spec/docs/commit/328f5c669f9e7e2b5d9ff93e48398767860ee8e6|328f5c66>
- Squashed 'schemas/' changes from 99610a4..cff7163
<https://github.com/score-spec/docs/commit/b4512c81ffed2df1348161fe8e05d83cfcf6de6d|b4512c81>
- Merge commit '328f5c669f9e7e2b5d9ff93e48398767860ee8e6' into import-latest-schema
<https://github.com/score-spec/docs/commit/102324b6a25157dd7f6782ed121617a7d547545f|102324b6>
- Import latest schema (#68)
score-spec/docsGitHub
12/14/2023, 1:18 PMGitHub
12/14/2023, 1:18 PMGitHub
12/14/2023, 1:33 PMGitHub
12/14/2023, 1:37 PM<https://github.com/score-spec/score-helm-charts/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-helm-charts/commit/3b1092d7506537448c809fbb18eea3b27d49ed66|3b1092d7>
- Update deployment.yaml - add annotations
<https://github.com/score-spec/score-helm-charts/commit/80bdf5b28345f2540f57b952aa87566978603181|80bdf5b2>
- labels on deployment and service
<https://github.com/score-spec/score-helm-charts/commit/03ca7411df36502dfb5637e9b678b5309bedc844|03ca7411>
- Update deployment.yaml - .Values.workload.containers.labels|annotations
<https://github.com/score-spec/score-helm-charts/commit/8beb52e60110d263c86583eddca52e2d165ad02a|8beb52e6>
- Update service.yaml - Fix labels and annotations
<https://github.com/score-spec/score-helm-charts/commit/b36aa739c12d0bc5a679159a096783432d35df93|b36aa739>
- Merge pull request #4 from mathieu-benoit/deployment-annotations
score-spec/score-helm-chartsGitHub
12/14/2023, 1:37 PMGitHub
12/14/2023, 1:42 PM<https://github.com/score-spec/spec/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/spec/commit/26abae817d77cc11d4a3983f6aabb3d871b69987|26abae81>
- Update README.md (#68)
score-spec/specGitHub
12/14/2023, 1:42 PM<https://github.com/score-spec/score-helm-charts/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-helm-charts/commit/4bad4026a4f8bace37a0e68479f97fd6383e1f4d|4bad4026>
- Update README.md
<https://github.com/score-spec/score-helm-charts/commit/86338bbc056a3acd8e9f612eeefd1046f6fb7a36|86338bbc>
- Merge pull request #5 from score-spec/sujaya-sys-patch-1
score-spec/score-helm-chartsGitHub
12/14/2023, 1:42 PMGitHub
12/14/2023, 1:48 PM<https://github.com/score-spec/docs/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/docs/commit/0e0803abd61bdbaf9c8fbee0fbef55121be66677|0e0803ab>
- Update README.md
<https://github.com/score-spec/docs/commit/ccc16746edf0257b20094fd0a37a5ed833d4250a|ccc16746>
- Update README.md (#67)
score-spec/docsGitHub
12/14/2023, 1:52 PM<https://github.com/score-spec/score-compose/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-compose/commit/da167a2e6b11a2510e18cc7412811a09f2dec30f|da167a2e>
- Update README.md
<https://github.com/score-spec/score-compose/commit/48593412ea38de543c98dacbe38673f807922cdc|48593412>
- Update README.md
<https://github.com/score-spec/score-compose/commit/8f12eb825ed7cacc6eba6724f411d8e47b6dae18|8f12eb82>
- Update README.md (#45)
score-spec/score-composeGitHub
12/14/2023, 1:52 PM<https://github.com/score-spec/score-compose/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-compose/commit/da167a2e6b11a2510e18cc7412811a09f2dec30f|da167a2e>
- Update README.md
<https://github.com/score-spec/score-compose/commit/48593412ea38de543c98dacbe38673f807922cdc|48593412>
- Update README.md
<https://github.com/score-spec/score-compose/commit/8f12eb825ed7cacc6eba6724f411d8e47b6dae18|8f12eb82>
- Update README.md (#45)
score-spec/score-composeGitHub
12/14/2023, 1:55 PM<https://github.com/score-spec/score-helm/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-helm/commit/70ddd0aae1fc13eaef204522039989ff068eec24|70ddd0aa>
- Update README.md
<https://github.com/score-spec/score-helm/commit/41857c57449828560d288f9bc43ea43060cf50de|41857c57>
- Update README.md
<https://github.com/score-spec/score-helm/commit/6e33932f42efdf833756e04cac2fc8b09742d0d6|6e33932f>
- Update README.md (#26)
score-spec/score-helmGitHub
12/14/2023, 7:03 PM0.4.0
version for this Helm chart:
wget <https://github.com/helm/chart-releaser/releases/download/v1.6.1/chart-releaser_1.6.1_linux_amd64.tar.gz>
tar xfz chart-releaser_1.6.1_linux_amd64.tar.gz cr
sudo mv cr /usr/local/bin/
rm workload-0.3.0.tgz
helm package ./charts/workload/ --version 0.4.0 --app-version 0.4.0
And I manually updated both the index.yaml
and the charts/workload/Chart.yaml
files.
Note: I didn't use cr upload
nor cr index
as it seems that it was not used with the previous version 0.3.0
.
Once merged into main
, we will see if it's working as expected.
Also, this release process is very manual for now, let's see in the future if we could automate/document it.
score-spec/score-helm-charts
✅ All checks have passed
1/1 successful checksGitHub
12/15/2023, 12:16 PMGitHub
12/15/2023, 3:03 PM<https://github.com/score-spec/score-helm-charts/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/score-helm-charts/commit/062c1f10e7efb07daba4d802f8bc21ed12f6a5c1|062c1f10>
- workload-0.4.0
<https://github.com/score-spec/score-helm-charts/commit/e9619c9aa57db4aadb9ab6233d474bc452f8d069|e9619c9a>
- Merge pull request #6 from mathieu-benoit/chart-0-4-0
score-spec/score-helm-chartsGitHub
12/15/2023, 3:04 PMGitHub
12/15/2023, 3:39 PMhelm template test workload --repo <https://score-spec.github.io/score-helm-charts>
or helm template charts/workload
returns this error:
Error: template: workload/templates/deployment.yaml:6:22: executing "workload/templates/deployment.yaml" at <.Values.workload.annotations>: nil pointer evaluating interface {}.annotations
Fix by safer tests in templating + proposing a smoke test in CI in order to catch such a trivial errors in the future.
Tested:
• helm template charts/workload/
• helm template test charts/workload/ --set workload.annotations.test=test
• helm template test charts/workload/ --set service.type=LoadBalancer
• helm template test charts/workload/ --set service.type=LoadBalancer --set service.annotations.test=test
I also re-packaged the chart with the same version, in order to fix that version out there.
score-spec/score-helm-charts
✅ All checks have passed
1/1 successful checksGitHub
12/15/2023, 4:16 PM<https://github.com/score-spec/score-helm-charts/tree/main|main>
by astromechza
<https://github.com/score-spec/score-helm-charts/commit/529775d03dfbe85536d5c24f91683f038d20c969|529775d0>
- fix-chart
<https://github.com/score-spec/score-helm-charts/commit/3bef68b8fbea860066ea6e956683debe15a82336|3bef68b8>
- annotations test upper
<https://github.com/score-spec/score-helm-charts/commit/3bb04acc4b1dc12614f65f839925beb9f41afc6b|3bb04acc>
- New chart
<https://github.com/score-spec/score-helm-charts/commit/a493c77808641aee3634def9b6cdf3cd38bf981e|a493c778>
- Merge pull request #7 from mathieu-benoit/main
score-spec/score-helm-chartsGitHub
12/15/2023, 4:17 PMGitHub
12/18/2023, 8:19 AM<https://github.com/score-spec/spec/tree/main|main>
by sujaya-sys
<https://github.com/score-spec/spec/commit/dd79ced595b1ff38dc7f1aac61f0f507a5348336|dd79ced5>
- Added list of maintainers (#69)
score-spec/spec