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

Plugin Framework Migration #666

Merged
merged 26 commits into from
Jul 31, 2024
Merged

Plugin Framework Migration #666

merged 26 commits into from
Jul 31, 2024

Conversation

benPearce1
Copy link
Collaborator

@benPearce1 benPearce1 commented Jul 9, 2024

chore: added mux server for sxs framework migration
chore: migrate space data source to Framework (#667)
chore: migrate space resource to Framework (#667)
chore: migrate lifecycle data source to Framework (#668)
chore: migrate project group data source to Framework (#660)
chore: migrate project group resource to Framework (#660)
chore: migrate environment data source to Framework (#678)
chore: migrate space resource to Framework (#672)
chore: migrate maven feed resource to Framework (#671)
chore: migrate environment resource to Framework (#681)
chore: migrate lifecycle resource to Framework (#669)
chore: migrate helm feed resource to Framework (#674)
chore: migrate artifactory feed resource to Framework (#675)
chore: migrate git credential datasource to Framework (#683)
chore: migrate git credential resource to Framework (#683)
chore: migrate github repository feed resource to Framework (#677)
chore: migrate aws elastic container feed resource to Framework (#679)
chore: migrate nuget feed resource to Framework (#680)
chore: migrate feeds datasource to Framework (#682)
chore: migrate tenant variable resources to Framework (#685)
chore: migrate library variable set resource to Framework (#686)
chore: migrate library variable set data source to Framework (#686)
chore: migrate tenant project resource to Framework (#700)

BREAKING CHANGE: Migrated set of data sources and resources to Terraform Framework.

benPearce1 and others added 9 commits July 9, 2024 10:37
* added mux server for sxs framework migration

* removed broken framework provider tests

* updated provider type name
* data source for space and spaces

* cleanup
* data source for space and spaces

* cleanup

* add datasource lifecycles

* Add missing method

* refactor

* Revert "refactor"

This reverts commit a1f0376.

* refactor

* Remove old lifecycles datasource

* add window build

---------

Co-authored-by: Ben Pearce <ben.pearce@octopus.com>
* introduced new protocol v6 server and muxing server to old provider

* working project group resource

* Trigger pipeline testing

* Updates

* Lets see what fails...

* working project group data source

* Comment out terratest _test files. Unsure at this stage if these will be re-instated during migrations but these are currently out-dated

* Uncommenting packages

* Push changes for testing migrated project groups

* Updating tests

* Updating containers and handling for tests

* Tidy up

* Tidy up go.mod

* Tidy up providerv6_test

* Comment out testing_container TestMain methods

* re-enable TestMain

* Add exit code to TestMain

* Add logging

* Try waiting for log containers to clear

* Add flag to TestMain methods

* Add TF_Acc

* Update to use test framework configured client

* Update test providers

* Always run test combine summaries

* Update integration tests to use shared container

* Always upload test summaries

* Skip some failing tests

* Skip some out dated tests

* Resolve oidc string array attributed being converted to strings in tests

* Skip outdated tests by default

* Remove terratest

* Update more tests

* Fix sort_order issues

* More test updates

* More updates

* Updates

* More test fixes

* Skip Azure Oidc & fix deployment process tests

* Fix tests

* Tidy up provider

* go mod tidy

* Update framework provider

* Add project group to framework provider

* Update resource deployment process test

* Remove resouce and datasource schema

* Set minimum for download attempts to 1 on github and maven feeds

* updated layout for project group entities

* register project group resources

* refactored project group schemas to own package

* Update tests GHA to only trigger on PRs

* Fix framework provider datasource config

* Remove duplicated NewProjectGroupsDataSource

---------

Co-authored-by: Ben Pearce <ben.pearce@octopus.com>
* chore: refactor GetIds as the ids were getting surrounded by double-quotes

* chore: remove old sdkv2 data source

* chore: add new helper methods to get schema for name and sort order

* feat: migrate environment data source to tf framework

* chore(tests): add tests for new environment data source

* chore(tests): fix environments datasource tests

* chore: add validator for jira environment type
IsaacCalligeros95 and others added 11 commits July 17, 2024 12:51
* chore: remove old sdkv2 resource

* chore: add resource schema and move some common methods around

* chore: add common resource schema attribute funcs

* feat: migrate environment resource to tf framework

* chore(tests): add tests for new environment resource

* chore: fix update resource issue

* chore: only set bool values if they've been set in config

* chore: refactor to use helper method to get number
* data source for space and spaces

* cleanup

* add datasource lifecycles

* Add missing method

* refactor

* add resource lifecycles

* Revert "refactor"

This reverts commit a1f0376.

* refactor

* refactor to reuse

* refactor datasource

* Remove old lifecycles datasource

* add window build

* Fix schema issue

* refactor retention_policy schema

* more refactor

* refactor resource schema to it own file

* refactor datasource schema

* remove old code

* Add lifecycle import

* Move schema lifecycle test

* refactor

* Make API-Key and Address required

* Revert "Make API-Key and Address required"

This reverts commit c242112.

* Add integration test

* Move the test

* Add back some method that use by other test

* just test

* set true in both octopus deploy

* Try fix test fail

* remove test code

* Add default release_retention_policy

* Correct test

* Fix fail test

* Fix wrong test param

* fix build fail

* Update resource lifecycles to manually set default retention in read/update/create

* refactor remove duplicate code

* Fix comments

* Add back

* Add back new lifecycle resource

* remove duplicate

---------

Co-authored-by: Ben Pearce <ben.pearce@octopus.com>
* chore!: Migrate Artifactory Generic Feeds

* Remove artifactory generic feeds from sdk provider

* tidy up

* Fix layout regex unset change
* Add datasource git credentials

* Add git credential resource

* fix merge fail

* refactor

* finish resource git credential

* Remove old datasource
* Migrate aws elastic container registry feed

* Fix merge issues

* Set ECR env vars to empty for migration tests

* Remove aws ecr migration test
* Migrate nuget feed

* Remove AWS ECR migration test

* Fix provider
* Migrate feeds datasource

* remove aws ecr migration test

* Remove AWS ECR from feeds datasource test
@HuyPhanNguyen HuyPhanNguyen force-pushed the plugin-framework-development branch from 8875b18 to 3ab7c67 Compare July 24, 2024 14:27
IsaacCalligeros95 and others added 3 commits July 25, 2024 15:24
* Add environment variable for mssql image tag
* aligned provider config

* prefer utility over custom for typename
@benPearce1 benPearce1 marked this pull request as ready for review July 29, 2024 04:26
HuyPhanNguyen and others added 3 commits July 30, 2024 11:51
* Add tenant project variable

* fix issue plan id fail

* Add tenant common variable

* fix comment

* update merge conflict

* Skip test relate to project_environment until Ben fix the test
* Include docs changes and update library_variable_sets to get correct Block List output
* migrated project tenant mapping resource

* issue from merge

* replacement not required when modifiying the environment collection

* migration test

* fixed tests, issue with environment resource

* extended test
@benPearce1 benPearce1 enabled auto-merge July 31, 2024 03:48
@benPearce1 benPearce1 merged commit e069b97 into main Jul 31, 2024
21 checks passed
@benPearce1 benPearce1 deleted the plugin-framework-development branch July 31, 2024 03:49
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