-
Notifications
You must be signed in to change notification settings - Fork 0
/
artifacthub-pkg.yml
64 lines (64 loc) · 1.96 KB
/
artifacthub-pkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Kubewarden Artifacthub Package config
#
# Use this config to submit the policy to https://artifacthub.io.
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 0.1.1
name: pod-ndots
displayName: Pod ndots
createdAt: 2024-10-01T08:31:03.221511185Z
description: Enforce a minimum value for the ndots option in the resolv.conf file of a Pod.
license: Apache-2.0
homeURL: https://github.com/kubewarden/pod-ndots
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/pod-ndots:v0.1.1
keywords:
- pod
links:
- name: policy
url: https://github.com/kubewarden/pod-ndots/releases/download/v0.1.1/policy.wasm
- name: source
url: https://github.com/kubewarden/pod-ndots
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/kubewarden/policies/pod-ndots:v0.1.1
```
Then, generate the policy manifest and tune it to your liking. For example:
```console
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/pod-ndots:v0.1.1
```
maintainers:
- name: Kubewarden Developers
email: [email protected]
provider:
name: kubewarden
recommendations:
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
annotations:
kubewarden/mutation: 'true'
kubewarden/questions-ui: |
questions:
- default: 1
tooltip: Value for the Pod's spec.dnsConfig.options.ndots
description: >-
This policy enforces the DNS lookup configuration of a Pod to have the specified ndots value.
When no configuration is provided, the default value is 1.
group: Settings
label: ndots
required: false
type: int
variable: ndots
kubewarden/resources: Pod
kubewarden/rules: |
- apiGroups:
- ''
apiVersions:
- v1
resources:
- pods
operations:
- CREATE
- UPDATE