Skip to content

Commit e3332c4

Browse files
authored
chore(cmdProbe): Adding imagePullSecrets source cmdProbe (#415)
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
1 parent 90e8141 commit e3332c4

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

api/litmuschaos/v1alpha1/chaosengine_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ type SourceDetails struct {
255255
Volumes []corev1.Volume `json:"volumes,omitempty"`
256256
// VolumesMount for the source pod
257257
VolumesMount []corev1.VolumeMount `json:"volumeMount,omitempty"`
258+
//ImagePullSecrets for source pod
259+
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
258260
}
259261

260262
//PromProbeInputs contains all the inputs required for prometheus probe

api/litmuschaos/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/chaos_crds.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,20 @@ spec:
319319
description: Image for the source pod
320320
type: string
321321
imagePullPolicy:
322-
description: ImagePullPolicy for the source
323-
pod
322+
description: ImagePullPolicy for the source pod
324323
type: string
324+
imagePullSecrets:
325+
description: ImagePullSecrets for source pod
326+
items:
327+
description: LocalObjectReference contains enough information
328+
to let you locate the referenced object inside the same
329+
namespace.
330+
properties:
331+
name:
332+
description: 'Name of the referent'
333+
type: string
334+
type: object
335+
type: array
325336
labels:
326337
additionalProperties:
327338
type: string

deploy/crds/chaosengine_crd.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,20 @@ spec:
318318
description: Image for the source pod
319319
type: string
320320
imagePullPolicy:
321-
description: ImagePullPolicy for the source
322-
pod
321+
description: ImagePullPolicy for the source pod
323322
type: string
323+
imagePullSecrets:
324+
description: ImagePullSecrets for source pod
325+
items:
326+
description: LocalObjectReference contains enough information
327+
to let you locate the referenced object inside the same
328+
namespace.
329+
properties:
330+
name:
331+
description: 'Name of the referent'
332+
type: string
333+
type: object
334+
type: array
324335
labels:
325336
additionalProperties:
326337
type: string

0 commit comments

Comments
 (0)