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

fix: invalid web service manifest generation #288

Merged
merged 1 commit into from
Mar 6, 2024
Merged

fix: invalid web service manifest generation #288

merged 1 commit into from
Mar 6, 2024

Conversation

jpflouret
Copy link
Contributor

The pihole-web service is now valid when both serviceWeb.http and serviceWeb.https are disabled. Without this change, setting both of these to false will result in an invalid service manifest with an empty spec.ports value.

Description of the change

This change prevents the creation of the web service manifest if both serviceWeb.http.enabled and serviceWeb.https.enabled are false. Setting either of these values to true (the default) will preserve existing behaviour.

Benefits

Allows the user to not expose the pihole web service by disabling both http and https in the serviceWeb configuration option.

Possible drawbacks

Applicable issues

Additional information

Checklist

The pihole-web service is now valid when both serviceWeb.http and serviceWeb.https are disabled.

Signed-off-by: JP Flouret <[email protected]>
@MoJo2600
Copy link
Owner

MoJo2600 commented Mar 6, 2024

Thank you very much! LGTM!

@MoJo2600 MoJo2600 merged commit b1019dc into MoJo2600:main Mar 6, 2024
2 checks passed
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.

2 participants