Service export should handle securityContext field
Open
good first issue
kind/feature
triage/accepted
- Dominant language
- Go
- Stars
- 387
- Forks
- 274
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 8
Description
### Feature request
With more Pod Security Standards enabled clusters we need to address the `securityContext` being present in PodSpec and Containers definitions. Since the two cluster with different PSS config might not be compatible for the same export.
I'd suggest that we remove it in default behavior and add a flag to include it optionally
### UI Example
```
kn service export --with-securityContext
or
kn service export --with-sc
```
/kind good-first-issue
/kind proposal
/cc @rhuss @mvinkler
Contributor guide
Assessment
This issue has not been assessed yet.