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

Add Azure integration #65

Merged
merged 106 commits into from
Aug 19, 2023
Merged

Conversation

Tankilevitch
Copy link
Contributor

@Tankilevitch Tankilevitch commented Aug 10, 2023

Description

Port 4351

What - Add azure integration as well as default deployment method using terraform over azure
Why -
How -

  • Added support for extension resources of base resources to be added only with configuration ( wasn't supported by the default resource manager API ), e.g Microsoft.Storage/storageAccounts/blobServices/containers which is an extension resource of Microsoft.Storage/storageAccounts.
  • Implemented listing of a resource by kind to return their full metadata with pagination to improve performance ( wasn't supported by the default resource manager API, had to monkey patch their list method so it will access each resource provider directly instead of the resource manager API )

Type of change

Please leave one option from the following and delete the rest:

  • 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)
  • Non-breaking change (fix of existing functionality that will not change current behavior)

TODOs

  • Support creating a DNS endpoint that won't change after re-deploy of a container app, today when choosing to assign a public ip for the integration it uses the container app ingress which creates an endpoint with the revision id as part of the DNS which will changes if re-deploying the container app (e.g adding environment variable) this is problematic for other integrations which requires to know theirs host so that they could subscribe to other third party services for live events.

Copy link
Member

@MPTG94 MPTG94 left a comment

Choose a reason for hiding this comment

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

LGTM

integrations/azure/pyproject.toml Outdated Show resolved Hide resolved
integrations/azure/debug.py Outdated Show resolved Hide resolved
integrations/azure/debug.py Outdated Show resolved Hide resolved
integrations/azure/azure_integration/ocean.py Outdated Show resolved Hide resolved
integrations/azure/azure_integration/ocean.py Outdated Show resolved Hide resolved
integrations/azure/README.md Outdated Show resolved Hide resolved
integrations/azure/README.md Outdated Show resolved Hide resolved
integrations/azure/README.md Show resolved Hide resolved
integrations/azure/README.md Outdated Show resolved Hide resolved
integrations/azure/README.md Show resolved Hide resolved
integrations/azure/main.py Outdated Show resolved Hide resolved
Comment on lines 9 to 11
- kind: resource_group
- kind: container_app
- kind: aks
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't really know all the possibilities
So i think it will be better to delete this field

integrations/azure/azure_integration/exceptions.py Outdated Show resolved Hide resolved
integrations/azure/azure_integration/ocean.py Outdated Show resolved Hide resolved
integrations/azure/azure_integration/ocean.py Outdated Show resolved Hide resolved
integrations/azure/azure_integration/ocean.py Show resolved Hide resolved
current_resource_kind, is_last_level = get_resource_kind_by_level(
full_resource_kind, kind_level
)
current_resource_kind_suffix = current_resource_kind.split("/")[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

_*, var_name = iter

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 think it is more readable with -1 , but if it is a convention you want to have let me know and i'll update

….com:port-labs/Port-Ocean into PORT-4351-azure-integration-powered-by-ocean
@Tankilevitch Tankilevitch merged commit 1e4bbc5 into main Aug 19, 2023
1 check passed
@Tankilevitch Tankilevitch deleted the PORT-4351-azure-integration-powered-by-ocean branch August 19, 2023 09:46
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.

4 participants