Skip to content

Commit

Permalink
fix minio image and dex command
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Dec 10, 2023
1 parent 8f67c00 commit 6f83d5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/identity/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func deploymentResource(issuerURL, configChecksum string, options Options) (*app
Image: image,
ImagePullPolicy: corev1.PullIfNotPresent,
Name: "dex",
Command: []string{"/usr/local/bin/dex", "serve", "/etc/dex/cfg/dexConfig.yaml"},
Command: []string{"dex", "serve", "/etc/dex/cfg/dexConfig.yaml"},
Ports: []corev1.ContainerPort{
{Name: "http", ContainerPort: 5556},
},
Expand Down
7 changes: 6 additions & 1 deletion pkg/snapshot/filesystem_minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ func fileSystemMinioDeploymentResource(clientset kubernetes.Interface, secretChe
if err != nil {
return nil, errors.Wrap(err, "failed to get minio image tag")
}
minioImage := fmt.Sprintf("minio/minio:%s", minioTag) // TODO NOW: figure this out

minioImage := fmt.Sprintf("kotsadm/minio:%s", minioTag)
if strings.HasPrefix(minioTag, "RELEASE.") {
minioImage = fmt.Sprintf("minio/minio:%s", minioTag)
}

imagePullSecrets := []corev1.LocalObjectReference{}

isKurl, err := kurl.IsKurl(clientset)
Expand Down

0 comments on commit 6f83d5b

Please sign in to comment.