Title: GitHub · Where software is built
Open Graph Title: secureCodeBox/secureCodeBox
X Title: secureCodeBox/secureCodeBox
Description: secureCodeBox (SCB) - continuous secure delivery out of the box - secureCodeBox/secureCodeBox
Open Graph Description: secureCodeBox (SCB) - continuous secure delivery out of the box - secureCodeBox/secureCodeBox
X Description: secureCodeBox (SCB) - continuous secure delivery out of the box - secureCodeBox/secureCodeBox
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"serviceAccount annotations and labels are wrongly formatted","articleBody":"## 🐞 Bug report\r\n\r\n\r\n### Describe the bug\r\nI tried to install the helm chart and needed to configure an annotation for the service account so that it can access an s3 bucket. But I got an error:\r\n```\r\nHelm upgrade failed: YAML parse error on operator/templates/rbac/serviceaccount.yaml: error converting YAML to JSON: yaml: line 9: mapping values are not allowed in this context\r\n```\r\n\r\nThen I saw this recent commit https://github.com/secureCodeBox/secureCodeBox/pull/1302/files#diff-002a5fbebb62d0b4a0b23564626190ffa44ca38ea7aa083f11aed87560cd8751 and here some auto fixes and linting was applied, which actually cause the bug.\r\n\r\nIn Version `3.14.3` the `operator/templates/rbac/serviceaccount.yaml` looked like this:\r\n```\r\napiVersion: v1\r\nkind: ServiceAccount\r\nmetadata:\r\n name: {{ .Values.serviceAccount.name }}\r\n annotations:\r\n {{ .Values.serviceAccount.annotations | toYaml | indent 4}}\r\n labels:\r\n {{ .Values.serviceAccount.labels | toYaml | indent 4 }}\r\n```\r\n\r\nAnd with the linting the new lines were removed and now it looks like this:\r\n\r\n```\r\napiVersion: v1\r\nkind: ServiceAccount\r\nmetadata:\r\n name: {{.Values.serviceAccount.name}}\r\n annotations: {{.Values.serviceAccount.annotations | toYaml | indent 4}}\r\n labels: {{.Values.serviceAccount.labels | toYaml | indent 4}}\r\n```\r\n\r\n### Steps To Reproduce\r\n1. Install [secureCodeBox](https://github.com/secureCodeBox/secureCodeBox) via helm chart version 3.15.0 \r\n2. or check repository and use `helm template values.yaml . --debug \u003e test.yaml` and see the output and wrongly formatted `serviceAccount.annotations` \r\n\r\n### Expected behavior\r\nWe should be able to configure annotations and labels for service accounts.\r\n\r\n### System (please complete the following information):\r\n\r\n - secureCodeBox Version/Release 3.15.0\r\n - Kubernetes Version [command: `kubectl version`] - v1.25.2\r\n\r\n\r\n### Screenshots / Logs\r\n```\r\nHelm upgrade failed: YAML parse error on operator/templates/rbac/serviceaccount.yaml: error converting YAML to JSON: yaml: line 9: mapping values are not allowed in this context\r\n```\r\n","author":{"url":"https://github.com/ldimitrov","@type":"Person","name":"ldimitrov"},"datePublished":"2022-10-13T14:14:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1405/secureCodeBox/issues/1405"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:66d50fdd-6256-cda8-6831-ee7fb0a5ce99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E69A:18DE62:549C9F:6B01FE:697525EA |
| html-safe-nonce | 520e28f763fa35c567a4965119a885dd2e545e65b3c1274103b29dd4e41513ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjlBOjE4REU2Mjo1NDlDOUY6NkIwMUZFOjY5NzUyNUVBIiwidmlzaXRvcl9pZCI6IjcwNzAwNDc1MDEzODk0NzMyNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c011f46f6a19e14f6f28169b538e51ece61325ac5f9a83954804dd9335abe382 |
| hovercard-subject-tag | repository:80711933 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/secureCodeBox/secureCodeBox/issues/1405 |
| twitter:image | https://repository-images.githubusercontent.com/80711933/112cc480-66ae-11e9-834b-0c229c9d75c7 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/80711933/112cc480-66ae-11e9-834b-0c229c9d75c7 |
| og:image:alt | secureCodeBox (SCB) - continuous secure delivery out of the box - secureCodeBox/secureCodeBox |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-cache |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width