@@ -120,7 +120,7 @@ func (jobCommand *MinIOIntervalJobCommand) Success() bool {
120
120
}
121
121
122
122
// createJob - create job
123
- func (jobCommand * MinIOIntervalJobCommand ) createJob (ctx context.Context , k8sClient client.Client , jobCR * v1alpha1.MinIOJob , stsPort string ) (objs []client.Object ) {
123
+ func (jobCommand * MinIOIntervalJobCommand ) createJob (ctx context.Context , k8sClient client.Client , jobCR * v1alpha1.MinIOJob , stsPort int ) (objs []client.Object ) {
124
124
if jobCommand == nil {
125
125
return nil
126
126
}
@@ -178,7 +178,7 @@ func (jobCommand *MinIOIntervalJobCommand) createJob(ctx context.Context, k8sCli
178
178
},
179
179
StringData : map [string ]string {
180
180
"MC_HOST_myminio" : fmt .Sprintf ("https://$(ACCESS_KEY):$(SECRET_KEY)@minio.%s.svc.cluster.local" , jobCR .Namespace ),
181
- "MC_STS_ENDPOINT_myminio" : fmt .Sprintf ("https://sts.%s.svc.cluster.local:%s /sts/%s" , miniov2 .GetNSFromFile (), stsPort , jobCR .Namespace ),
181
+ "MC_STS_ENDPOINT_myminio" : fmt .Sprintf ("https://sts.%s.svc.cluster.local:%d /sts/%s" , miniov2 .GetNSFromFile (), stsPort , jobCR .Namespace ),
182
182
"MC_WEB_IDENTITY_TOKEN_FILE_myminio" : "/var/run/secrets/kubernetes.io/serviceaccount/token" ,
183
183
},
184
184
}
@@ -233,7 +233,7 @@ func (jobCommand *MinIOIntervalJobCommand) createJob(ctx context.Context, k8sCli
233
233
}
234
234
235
235
// CreateJob - create job
236
- func (jobCommand * MinIOIntervalJobCommand ) CreateJob (ctx context.Context , k8sClient client.Client , jobCR * v1alpha1.MinIOJob , stsPort string ) error {
236
+ func (jobCommand * MinIOIntervalJobCommand ) CreateJob (ctx context.Context , k8sClient client.Client , jobCR * v1alpha1.MinIOJob , stsPort int ) error {
237
237
for _ , obj := range jobCommand .createJob (ctx , k8sClient , jobCR , stsPort ) {
238
238
if obj == nil {
239
239
continue
@@ -308,7 +308,7 @@ func (intervalJob *MinIOIntervalJob) GetMinioJobStatus(ctx context.Context) v1al
308
308
}
309
309
310
310
// CreateCommandJob - create command job
311
- func (intervalJob * MinIOIntervalJob ) CreateCommandJob (ctx context.Context , k8sClient client.Client , stsPort string ) error {
311
+ func (intervalJob * MinIOIntervalJob ) CreateCommandJob (ctx context.Context , k8sClient client.Client , stsPort int ) error {
312
312
for _ , command := range intervalJob .Command {
313
313
if len (command .CommandSpec .DependsOn ) == 0 {
314
314
err := command .CreateJob (ctx , k8sClient , intervalJob .JobCR , stsPort )
0 commit comments