Skip to content

Commit 6c07d43

Browse files
feature: support volumes (#286)
* feature: support volumes * Update api/v1alpha1/migration_types.go Co-authored-by: Copilot <[email protected]> * Update api/v1alpha1/migration_types.go Co-authored-by: Copilot <[email protected]> * add test * regen crd --------- Co-authored-by: Copilot <[email protected]>
1 parent 573a051 commit 6c07d43

File tree

5 files changed

+2049
-4
lines changed

5 files changed

+2049
-4
lines changed

api/v1alpha1/migration_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ type FlywayConfiguration struct {
137137
// See https://documentation.red-gate.com/fd/environment-jdbc-properties-namespace-277578928.html
138138
// +kubebuilder:validation:Optional
139139
JdbcProperties map[string]string `json:"jdbcProperties,omitempty"`
140+
141+
// Volumes to make available to the migration job.
142+
// +kubebuilder:validation:Optional
143+
Volumes []v1.Volume `json:"volumes,omitempty"`
144+
145+
// Volume mounts to mount into the migration job.
146+
// +kubebuilder:validation:Optional
147+
VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`
140148
}
141149

142150
// MigrationSource defines the source for the flyway-migrations.

api/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)