Skip to content

Commit

Permalink
chore: documenting, samples, code review
Browse files Browse the repository at this point in the history
  • Loading branch information
llaszkie authored and yorugac committed Jan 12, 2024
1 parent 55a6d2e commit 0d1b2ae
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/k6-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k6-operator

![Version: 3.3.0](https://img.shields.io/badge/Version-3.3.0-informational?style=flat-square) ![AppVersion: 0.0.11](https://img.shields.io/badge/AppVersion-0.0.11-informational?style=flat-square)
![Version: 3.3.0](https://img.shields.io/badge/Version-3.3.0-informational?style=flat-square) ![AppVersion: 0.0.12](https://img.shields.io/badge/AppVersion-0.0.12-informational?style=flat-square)

A Helm chart to install the k6-operator

Expand Down Expand Up @@ -38,7 +38,7 @@ Kubernetes: `>=1.16.0-0`
| manager.env | object | `{}` | Environment variables to be applied on the controller |
| manager.image.name | string | `"ghcr.io/grafana/k6-operator"` | controller-manager image name |
| manager.image.pullPolicy | string | `"Always"` | pull policy for the image possible values Always, Never, IfNotPresent (default: Always) |
| manager.image.tag | string | `"controller-v0.0.11"` | controller-manager image tag |
| manager.image.tag | string | `"controller-v0.0.12"` | controller-manager image tag |
| manager.livenessProbe | object | `{}` | Liveness probe in Probe format |
| manager.readinessProbe | object | `{}` | Readiness probe in Probe format |
| manager.replicas | int | `1` | number of controller-manager replicas (default: 1) |
Expand Down
53 changes: 53 additions & 0 deletions config/samples/k6_v1alpha1_k6_with_securitycontext.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
apiVersion: k6.io/v1alpha1
kind: TestRun
metadata:
name: k6-sample
spec:
parallelism: 4
script:
configMap:
name: k6-test
file: test.js
initializer:
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
securityContext:
fsGroup: 1
runAsNonRoot: true
runAsUser: 12345
seccompProfile:
type: RuntimeDefault
supplementalGroups:
- 12345
starter:
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
securityContext:
fsGroup: 1
runAsNonRoot: true
runAsUser: 12345
seccompProfile:
type: RuntimeDefault
supplementalGroups:
- 12345
runner:
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
securityContext:
fsGroup: 1
runAsNonRoot: true
runAsUser: 12345
seccompProfile:
type: RuntimeDefault
supplementalGroups:
- 12345

0 comments on commit 0d1b2ae

Please sign in to comment.