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

Http crd flag #362

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Http crd flag #362

wants to merge 15 commits into from

Conversation

meecethereese
Copy link
Contributor

@meecethereese meecethereese commented Feb 11, 2025

Description

Adds the HTTPDisabled flag to the CRD for the NginxIngressController.

Fixes # (issue)
Feature # (details)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s)?

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

privateNic := manifests.NewNginxIngressController("private", "private.ingress.class")
privateNic.Spec.HTTPDisabled = true
if err := upsert(ctx, c, privateNic); err != nil {
return fmt.Errorf("ensuring private NIC: %w", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

not private

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed the test to mirror the logic in the test under it rather than the private test above it, lmk what you think of it

@OliverMKing
Copy link
Collaborator

/ok-to-test sha=40c61f7

Copy link
Collaborator

@OliverMKing OliverMKing left a comment

Choose a reason for hiding this comment

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

looks good to me. Just need to rename some things in e2e test. It's not a private nic

@OliverMKing
Copy link
Collaborator

/ok-to-test sha=00cd7c2

@OliverMKing
Copy link
Collaborator

@meecethereese
Copy link
Contributor Author

/ok-to-test sha=cf4217a

1 similar comment
@bfoley13
Copy link
Member

/ok-to-test sha=cf4217a

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