Skip to content

Commit f0892b4

Browse files
Merge pull request #202 from flaper87/add-openstack-case
openstack: Add temporary OpenStack suport on FS
2 parents 879a99f + e5a9bdc commit f0892b4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/storage/storage.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ func getPlatformStorage() (imageregistryv1.ImageRegistryConfigStorage, error) {
107107
}
108108
case installConfig.Platform.AWS != nil:
109109
cfg.S3 = &imageregistryv1.ImageRegistryConfigStorageS3{}
110+
case installConfig.Platform.OpenStack != nil:
111+
// TODO(flaper87): This should be switch to swift as soon as support for
112+
// it is complete. Using Emptydir for now so that OpenStack deployments
113+
// (and work) can move forward for now. Not production ready!
114+
cfg.Filesystem = &imageregistryv1.ImageRegistryConfigStorageFilesystem{
115+
VolumeSource: corev1.VolumeSource{
116+
EmptyDir: &corev1.EmptyDirVolumeSource{},
117+
},
118+
}
110119
default:
111120
// if we can't determine what platform we're on, fallback to creating
112121
// a PVC for the registry.

0 commit comments

Comments
 (0)