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

fix: remove duplicate securityContext #6996

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

IvanJosipovic
Copy link
Contributor

@IvanJosipovic IvanJosipovic commented Jan 6, 2024

Description

When installing the 0.29.0 helm chart, I received an error message:

Helm install failed for release radius-system/radius with chart radius@0.29.0: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:
        line 61: mapping key "securityContext" already defined at line 54

This PR removed the duplicate key :)

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).

Issue: #6997

Signed-off-by: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com>
@IvanJosipovic IvanJosipovic requested review from a team as code owners January 6, 2024 01:18
@@ -73,8 +73,6 @@ spec:
mountPath: {{ .Values.global.rootCA.mountPath }}
readOnly: true
{{- end }}
securityContext:
allowPrivilegeEscalation: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for fixing this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the other files in the chart, and they all look good: https://github.com/search?q=repo%3Aradius-project%2Fradius%20securityContext&type=code

Copy link
Contributor

@rynowak rynowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: - thanks @IvanJosipovic !

@radius-functional-tests
Copy link

radius-functional-tests bot commented Jan 6, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository IvanJosipovic/radius
Commit ref ef93999
Unique ID bd4e97acaf
Image tag pr-bd4e97acaf
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-bd4e97acaf
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-bd4e97acaf
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-bd4e97acaf
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-bd4e97acaf
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting shared functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting kubernetes functional tests...
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ daprrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ shared functional tests succeeded

Copy link

@youngbupark youngbupark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@rynowak rynowak merged commit ea4b521 into radius-project:main Jan 6, 2024
16 checks passed
@rynowak
Copy link
Contributor

rynowak commented Jan 6, 2024

Merged, thanks!

@smorenburg
Copy link

Hello. I'm still experiencing the duplicate securityContext error when deploying the Helm chart with Flux.

image

willdavsmith pushed a commit to willdavsmith/radius that referenced this pull request Jan 17, 2024
# Description

When installing the 0.29.0 helm chart, I received an error message:

```
Helm install failed for release radius-system/radius with chart radius@0.29.0: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors:
        line 61: mapping key "securityContext" already defined at line 54
```

This PR removed the duplicate key :)

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Issue: radius-project#6997

Signed-off-by: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com>
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
@ytimocin
Copy link
Contributor

Hello. I'm still experiencing the duplicate securityContext error when deploying the Helm chart with Flux.

image

Hi @smorenburg! I see in the screenshot attached that you are using 0.29 release chart. From what I see, the changes in this PR are not released yet: v0.29.0...main. Please let me know if I am missing something.

With that being said, could you let me know which Flux commands you are running to reproduce this issue? I will try to do a deeper investigation myself and I am not very familiar with Flux (but am willing to be).

You can point to the main branch for the most up-to-date charts. Happy to sync offline, if you would also like, to tackle this problem further.

@smorenburg
Copy link

smorenburg commented Jan 18, 2024

Hi @ytimocin, thanks for the quick response. I could deploy the Helm chart with Flux using the repository's main branch instead of the published chart (https://radius.azurecr.io/helm/v1/repo). @IvanJosipovic's change works!

https://github.com/smorenburg/astro-source/blob/main/infrastructure/base/controllers/radius.yaml

I hope you have a great day.

@ytimocin
Copy link
Contributor

That is great @smorenburg! This change will be in our upcoming release.

Thanks for the link. I will test it out myself.

Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants