Skip to content

support private endpoints #449

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

Merged
merged 4 commits into from
May 13, 2025
Merged

support private endpoints #449

merged 4 commits into from
May 13, 2025

Conversation

whoffler
Copy link
Contributor

Description

support private endpoints

for issue - #444 (comment)

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@whoffler whoffler requested review from Ak-sky and Aashiq-J as code owners May 13, 2025 10:24
@whoffler whoffler force-pushed the supportPrivateEndpoint branch from 072d935 to 7121c83 Compare May 13, 2025 10:54
@whoffler
Copy link
Contributor Author

/run pipeline

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

1 comment - will be interesting to see how upgrade test reacts to this change. Hopefully its an update in place

@whoffler
Copy link
Contributor Author

/run pipeline

Copy link
Member

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

I expected the upgrade test to fail, but it passes. So I checked the code, and seem the wrong test function is being used for the upgrade test. Its using RunSchematicTest and it should be using RunSchematicUpgradeTest:

err := options.RunSchematicUpgradeTest()
if !options.UpgradeTestSkipped {
  assert.Nil(t, err, "This should not have errored")
}

Please fix the upgrade test

@whoffler
Copy link
Contributor Author

Ran upgrade test locally and it fails:

Error:      	Should be false
        	Test:       	TestRunSecurityEnforcedUpgradeDASolution
        	Messages:   	Resource(s) identified to be updated 
        	            	Name: en_instance
        	            	Address: module.event_notifications.module.event_notifications[0].ibm_resource_instance.en_instance
        	            	Actions: [update]
        	            	DIFF:
        	            	  Before: 
        	            		{"parameters":{"service-endpoints":"public-and-private"}}
        	            	  After: 
        	            		{"parameters":{"service-endpoints":"private"}}
        	            	
        	            	Change Detail:
        	            	{
        	            	  "actions": [
        	            	    "update"
        	            	  ],
                                  "after": {
        	            	    "parameters": {
        	            	      "service-endpoints": "private"
        	            	    },
                                     ...
        	            	    "service": "event-notifications",
        	            	    "service_endpoints": "public-and-private",
        	            	  ...
                                  "before": {
        	            	    "parameters_json": null,
        	            	    "plan": "standard",
        	            	    "service": "event-notifications",
        	            	    "service_endpoints": "public-and-private",

@whoffler whoffler force-pushed the supportPrivateEndpoint branch from 52cd945 to 422a65b Compare May 13, 2025 13:15
@whoffler
Copy link
Contributor Author

/run pipeline

@whoffler whoffler force-pushed the supportPrivateEndpoint branch from 8d1e8e8 to 5df337c Compare May 13, 2025 13:31
@whoffler
Copy link
Contributor Author

/run pipeline

@ocofaigh ocofaigh merged commit fdb5b5f into main May 13, 2025
2 checks passed
@ocofaigh ocofaigh deleted the supportPrivateEndpoint branch May 13, 2025 14:30
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants