2024-08-19 11:43:40 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type VolumeClaimTemplate struct {
|
|
|
|
|
Metadata struct {
|
2026-03-25 11:13:12 +01:00
|
|
|
Name string `yaml:"name"`
|
|
|
|
|
Annotations map[string]string `yaml:"annotations,omitempty"`
|
2024-08-19 11:43:40 +02:00
|
|
|
} `yaml:"metadata"`
|
|
|
|
|
Spec VolumeSpec `yaml:"spec"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VolumeSpec struct {
|
|
|
|
|
AccessModes []string `yaml:"accessModes,flow"`
|
|
|
|
|
Resources struct {
|
|
|
|
|
Requests struct {
|
|
|
|
|
Storage string `yaml:"storage"`
|
|
|
|
|
} `yaml:"requests"`
|
|
|
|
|
} `yaml:"resources"`
|
|
|
|
|
}
|
2026-03-25 11:13:12 +01:00
|
|
|
|
|
|
|
|
// 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"`
|
|
|
|
|
}
|