Skip to content

Commit

Permalink
Remove MustRunAs property and replaced sequence questions
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed Mar 16, 2023
1 parent e6716e7 commit d434fbb
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 81 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "selinux-psp"
version = "0.1.8"
version = "0.1.9"
authors = ["Rafael Fernández López <[email protected]>"]
edition = "2018"

Expand Down
66 changes: 25 additions & 41 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.1.8
version: 0.1.9
name: selinux-psp
displayName: Selinux PSP
createdAt: '2023-02-28T13:14:43+00:00'
Expand All @@ -9,15 +9,15 @@ license: Apache-2.0
homeURL: https://github.com/kubewarden/selinux-psp-policy
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/selinux-psp:v0.1.8
image: ghcr.io/kubewarden/policies/selinux-psp:v0.1.9
keywords:
- psp
- container
- runtime
- selinux
links:
- name: policy
url: https://github.com/kubewarden/selinux-psp-policy/releases/download/v0.1.8/policy.wasm
url: https://github.com/kubewarden/selinux-psp-policy/releases/download/v0.1.9/policy.wasm
- name: source
url: https://github.com/kubewarden/selinux-psp-policy
provider:
Expand Down Expand Up @@ -63,43 +63,27 @@ annotations:
required: false
type: enum
variable: rule
- default: []
description: >-
Contains the desired value for the `seLinuxOptions` parameter. If the pod
does not contain a `.securityContext`, or a
`.securityContext.seLinuxOptions`, then this policy acts as mutating and
defaults the `seLinuxOptions` attribute to the one provided in the
configuration. In all cases, pod containers, init container and ephemeral
containers `.seLinuxOptions` are checked for compatibility if they override
the Pod Security Context `seLinuxOptions` value.
- default: ''
group: Settings
label: Must run as
label: User
show_if: rule=MustRunAs
hide_input: true
type: sequence[
variable: MustRunAs
sequence_questions:
- default: ''
group: Settings
label: User
show_if: rule=MustRunAs
type: string
variable: user
- default: ''
group: Settings
label: Role
show_if: rule=MustRunAs
type: string
variable: role
- default: ''
group: Settings
label: Type
show_if: rule=MustRunAs
type: string
variable: type
- default: 0
group: Settings
label: Level
show_if: rule=MustRunAs
type: int
variable: level
type: string
variable: user
- default: ''
group: Settings
label: Role
show_if: rule=MustRunAs
type: string
variable: role
- default: ''
group: Settings
label: Type
show_if: rule=MustRunAs
type: string
variable: type
- default: ''
group: Settings
label: Level
show_if: rule=MustRunAs
type: string
variable: level
60 changes: 22 additions & 38 deletions questions-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,27 @@ questions:
required: false
type: enum
variable: rule
- default: []
description: >-
Contains the desired value for the `seLinuxOptions` parameter. If the pod
does not contain a `.securityContext`, or a
`.securityContext.seLinuxOptions`, then this policy acts as mutating and
defaults the `seLinuxOptions` attribute to the one provided in the
configuration. In all cases, pod containers, init container and ephemeral
containers `.seLinuxOptions` are checked for compatibility if they override
the Pod Security Context `seLinuxOptions` value.
- default: ''
group: Settings
label: Must run as
label: User
show_if: rule=MustRunAs
hide_input: true
type: sequence[
variable: MustRunAs
sequence_questions:
- default: ''
group: Settings
label: User
show_if: rule=MustRunAs
type: string
variable: user
- default: ''
group: Settings
label: Role
show_if: rule=MustRunAs
type: string
variable: role
- default: ''
group: Settings
label: Type
show_if: rule=MustRunAs
type: string
variable: type
- default: 0
group: Settings
label: Level
show_if: rule=MustRunAs
type: int
variable: level
type: string
variable: user
- default: ''
group: Settings
label: Role
show_if: rule=MustRunAs
type: string
variable: role
- default: ''
group: Settings
label: Type
show_if: rule=MustRunAs
type: string
variable: type
- default: ''
group: Settings
label: Level
show_if: rule=MustRunAs
type: string
variable: level

0 comments on commit d434fbb

Please sign in to comment.