Skip to content

Commit

Permalink
Add type definition to ChaosExperiment CRD, in order to support cha…
Browse files Browse the repository at this point in the history
…nging the hostPath mounts when mounting sockets. (#324) (#325)

Necessary, as the latest OpenShift release does not allow mounting socket files (/var/run/crio/crio.sock) as a `File` type, and requires the use of `Socket` in this case

Signed-off-by: Christiaan Vermeulen <chrism.vermeulen@gmail.com>

Co-authored-by: Chris Vermeulen <chris@linguine.tech>
  • Loading branch information
Karthik Satchitanand and chris-cmsoft committed Jan 19, 2021
1 parent c2ea9ad commit 7bb6bcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/chaos_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ spec:
nodePath:
type: string
minLength: 1
type:
type: string
securityContext:
type: object
hostPID:
Expand Down
2 changes: 2 additions & 0 deletions deploy/crds/chaosexperiment_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ spec:
nodePath:
type: string
minLength: 1
type:
type: string
securityContext:
type: object
hostPID:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/litmuschaos/v1alpha1/chaosexperiment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type HostFile struct {
Name string `json:"name"`
MountPath string `json:"mountPath"`
NodePath string `json:"nodePath"`
Type corev1.HostPathType `json:"type,omitempty"`
}

// ExperimentDef defines information about nature of chaos & components subjected to it
Expand Down

0 comments on commit 7bb6bcb

Please sign in to comment.