Skip to content

Commit

Permalink
adds more
Browse files Browse the repository at this point in the history
adds more
  • Loading branch information
jiuker committed Oct 21, 2024
1 parent 6579fe4 commit 6addc9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/apis/minio.min.io/v2/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ const MinIOPort = 9000
// MinIOPortName specifies the default Container port name
const MinIOPortName = "minio-port"

// ConsolePortName specifies the default Container port name
const ConsolePortName = "console-port"

// MinIOSFTPPortName specifies the default Container port name
const MinIOSFTPPortName = "sftp-port"

// MinIOSFTPPort specifies the default Tenant SFTP port number.
const MinIOSFTPPort = 8022

Expand Down
2 changes: 2 additions & 0 deletions pkg/resources/statefulsets/minio-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func poolMinioServerContainer(t *miniov2.Tenant, skipEnvVars map[string][]byte,
ContainerPort: miniov2.MinIOPort,
},
{
Name: miniov2.ConsolePortName,
ContainerPort: int32(consolePort),
},
}
Expand All @@ -164,6 +165,7 @@ func poolMinioServerContainer(t *miniov2.Tenant, skipEnvVars map[string][]byte,
"--sftp", "ssh-private-key=" + pkFile,
}...)
containerPorts = append(containerPorts, corev1.ContainerPort{
Name: miniov2.MinIOSFTPPortName,
ContainerPort: miniov2.MinIOSFTPPort,
})
}
Expand Down

0 comments on commit 6addc9c

Please sign in to comment.