@@ -82,14 +82,6 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
82
82
return nil , err
83
83
}
84
84
85
- minio , err := renderTemplate (vhostMinioTmpl , commonTpl {
86
- Domain : ctx .Config .Domain ,
87
- ReverseProxy : fmt .Sprintf ("minio.%s.%s:%d" , ctx .Namespace , kubeDomain , minioComponent .ServiceConsolePort ),
88
- })
89
- if err != nil {
90
- return nil , err
91
- }
92
-
93
85
openVSX , err := renderTemplate (vhostOpenVSXTmpl , openVSXTpl {
94
86
Domain : ctx .Config .Domain ,
95
87
RepoURL : fmt .Sprintf ("openvsx-proxy.%s.%s:%d" , ctx .Namespace , kubeDomain , openvsxproxy .ServicePort ),
@@ -117,12 +109,23 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
117
109
118
110
data := map [string ]string {
119
111
"vhost.empty" : * empty ,
120
- "vhost.minio" : * minio ,
121
112
"vhost.open-vsx" : * openVSX ,
122
113
"vhost.payment-endpoint" : * paymentEndpoint ,
123
114
"vhost.kedge" : * kedge ,
124
115
}
125
116
117
+ if ctx .Config .ObjectStorage .CloudStorage == nil {
118
+ // Don't expose Minio if using cloud storage
119
+ minio , err := renderTemplate (vhostMinioTmpl , commonTpl {
120
+ Domain : ctx .Config .Domain ,
121
+ ReverseProxy : fmt .Sprintf ("minio.%s.%s:%d" , ctx .Namespace , kubeDomain , minioComponent .ServiceConsolePort ),
122
+ })
123
+ if err != nil {
124
+ return nil , err
125
+ }
126
+ data ["vhost.minio" ] = * minio
127
+ }
128
+
126
129
if pointer .BoolDeref (ctx .Config .ContainerRegistry .InCluster , false ) {
127
130
username := ctx .Values .InternalRegistryUsername
128
131
if username == "" {
0 commit comments