Monitord Acces Change
This commit is contained in:
+22
-7
@@ -17,11 +17,26 @@ type VolumeSpec struct {
|
||||
} `yaml:"resources"`
|
||||
}
|
||||
|
||||
// ExistingVolume references a pre-provisioned PVC (created by oc-datacenter).
|
||||
// Used in Workflow.Spec.ExistingVolumes (yaml: "volumes") instead of volumeClaimTemplates.
|
||||
type ExistingVolume struct {
|
||||
Name string `yaml:"name"`
|
||||
PersistentVolumeClaim struct {
|
||||
ClaimName string `yaml:"claimName"`
|
||||
} `yaml:"persistentVolumeClaim"`
|
||||
// PVCRef references a pre-provisioned PersistentVolumeClaim by name.
|
||||
type PVCRef struct {
|
||||
ClaimName string `yaml:"claimName"`
|
||||
}
|
||||
|
||||
// SecretRef references a K8s Secret to mount as a volume.
|
||||
type SecretRef struct {
|
||||
SecretName string `yaml:"secretName"`
|
||||
}
|
||||
|
||||
// EmptyDirRef declares an emptyDir volume. Set Medium to "Memory" for /dev/shm-style RAM backing.
|
||||
type EmptyDirRef struct {
|
||||
Medium string `yaml:"medium,omitempty"`
|
||||
}
|
||||
|
||||
// ExistingVolume represents any volume mounted into an Argo workflow spec.
|
||||
// Exactly one of PersistentVolumeClaim, Secret, or EmptyDir should be non-nil.
|
||||
type ExistingVolume struct {
|
||||
Name string `yaml:"name"`
|
||||
PersistentVolumeClaim *PVCRef `yaml:"persistentVolumeClaim,omitempty"`
|
||||
Secret *SecretRef `yaml:"secret,omitempty"`
|
||||
EmptyDir *EmptyDirRef `yaml:"emptyDir,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user