Skip to content

Commit

Permalink
add cluster-domain to init, sidecar containers (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Apr 21, 2023
1 parent e76286c commit 391ea9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/resources/statefulsets/minio-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,12 @@ func getInitContainer(t *miniov2.Tenant, operatorImage string) v1.Container {
"--tenant",
t.Name,
},
Env: []corev1.EnvVar{
{
Name: "CLUSTER_DOMAIN",
Value: miniov2.GetClusterDomain(),
},
},
VolumeMounts: []corev1.VolumeMount{
CfgVolumeMount,
},
Expand All @@ -900,6 +906,12 @@ func getSideCarContainer(t *miniov2.Tenant, operatorImage string) v1.Container {
"--config-name",
t.Spec.Configuration.Name,
},
Env: []corev1.EnvVar{
{
Name: "CLUSTER_DOMAIN",
Value: miniov2.GetClusterDomain(),
},
},
VolumeMounts: []corev1.VolumeMount{
CfgVolumeMount,
},
Expand Down

0 comments on commit 391ea9d

Please sign in to comment.