Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:add portName to container #2347

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/apis/minio.min.io/v2/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const Revision = "min.io/revision"
// MinIOPort specifies the default Tenant port number.
const MinIOPort = 9000

// MinIOPortName specifies the default Container port name
const MinIOPortName = "minio-port"

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

Expand Down
1 change: 1 addition & 0 deletions pkg/resources/statefulsets/minio-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func poolMinioServerContainer(t *miniov2.Tenant, skipEnvVars map[string][]byte,

containerPorts := []corev1.ContainerPort{
{
Name: miniov2.MinIOPortName,
ramondeklein marked this conversation as resolved.
Show resolved Hide resolved
ContainerPort: miniov2.MinIOPort,
},
{
Expand Down
Loading