Skip to content

Conversation

@saswatamcode
Copy link
Collaborator

This PR adds an option to enable TLS for minio by generating certs, adjusting commands and readiness probes accordingly.

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
),
Readiness: e2e.NewHTTPReadinessProbe("metrics", "/health", 200, 204),
},
e2e.StartOptions{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nit here. Why modify the spacing? ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mdox, I think we were printing an extra bracket earlier, which caused the syntax to be a bit off. 🙂

Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks! Minor nits, optional 🙂

200,
)
} else {
envVars = append(envVars, "ENABLE_HTTPS="+"0")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the default, do we need to specify this if we don't want to enable HTTPS? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'll address in follow-up

)
} else {
envVars = append(envVars, "ENABLE_HTTPS="+"0")
command = command + fmt.Sprintf(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we could have one command var instead of two separate in each branch and just (not) include --certs-dir depending on HTTPS option

@matej-g matej-g merged commit fa7ceb0 into efficientgo:main Jan 19, 2023
Rasek91 pushed a commit to Rasek91/efficientgo-e2e that referenced this pull request May 13, 2023
* Add option to enable TLS for minio

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Fix readiness probe

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Fix lint

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants