Skip to content

Commit

Permalink
feat:add portName to container
Browse files Browse the repository at this point in the history
feat:add portName to container
  • Loading branch information
jiuker committed Oct 21, 2024
1 parent 54a9f26 commit 6579fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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,
ContainerPort: miniov2.MinIOPort,
},
{
Expand Down

0 comments on commit 6579fe4

Please sign in to comment.