Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Butler operator #737

Merged
merged 224 commits into from
Apr 30, 2021
Merged

Butler operator #737

merged 224 commits into from
Apr 30, 2021

Conversation

lucasbfernandes
Copy link
Contributor

No description provided.

lucasbfernandes and others added 6 commits December 1, 2020 12:10
* accepted adr

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* updated adr

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* update crds

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>
* Create Manifest spec

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create Helm manifest strategy

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Configure module for helm manifest

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Configure git provider for helm manifest

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Configure namespace overriding

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Unit tests for helm manifests

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create method for get resource from repository

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create manifest from chart directory not package

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create GitHubRepository

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add support for download of a single file

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Generate manifest with kubernetes types

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Change github repo url

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create gitlab download chart integration

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add branch to gitlab integration

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add unit tests for gitlab integration

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add branch support to github integration

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Configure helm on Dockerfile

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Fix types

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Make branch mandatory

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Fix lint errors

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Fix types

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add logs on manifest generating

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Add logs on repository

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Create factory for repository provider

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>

* Code gardening

Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
* operator crds

those will be moved to the installation script later

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* resource examples

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* add metacontroller yamls

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* metacontroller install yaml

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* basic typing for hook request

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>

* add response comments

Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>
* K8s client structure

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* K8s Client initial structure

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Fixing imports

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Separate and organize methods

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Fix patch and add undeploy step

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Changing names to apply

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Changing CRD definition

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Add unit tests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Changing types and removing hardcoded configs

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>
@boring-cyborg boring-cyborg bot added the butler Improvements/additions/fixes for butler module. label Dec 8, 2020
Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>
Signed-off-by: Cassio Godinho <cassiopgodinho@gmail.com>
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #737 (d4c0097) into main (c57ea83) will decrease coverage by 0.02%.
The diff coverage is 90.30%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #737      +/-   ##
============================================
- Coverage     77.69%   77.67%   -0.03%     
- Complexity     2168     2177       +9     
============================================
  Files          1256     1236      -20     
  Lines         17587    17682      +95     
  Branches       1616     1635      +19     
============================================
+ Hits          13664    13734      +70     
- Misses         3440     3462      +22     
- Partials        483      486       +3     
Flag Coverage Δ Complexity Δ
butler 84.36% <90.30%> (-1.76%) 0.00 <0.00> (ø)
moove 75.52% <ø> (+0.32%) 1658.00 <ø> (+9.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...loyments/use-cases/receive-notification.usecase.ts 29.90% <0.00%> (-60.36%) 0.00 <0.00> (ø)
...app/v2/core/integrations/utils/deployment.utils.ts 56.75% <0.00%> (-40.39%) 0.00 <0.00> (ø)
...oove/application/DeploymentConfigurationService.kt 83.33% <ø> (ø) 4.00 <0.00> (?)
...o/charlescd/moove/application/DeploymentService.kt 96.15% <ø> (-3.85%) 12.00 <0.00> (ø)
...mpl/CreateDeploymentConfigurationInteractorImpl.kt 100.00% <ø> (ø) 5.00 <0.00> (?)
...on/request/CreateDeploymentConfigurationRequest.kt 100.00% <ø> (ø) 6.00 <0.00> (?)
...ration/response/DeploymentConfigurationResponse.kt 33.33% <ø> (ø) 3.00 <0.00> (?)
.../deployment/impl/CreateDeploymentInteractorImpl.kt 96.96% <ø> (+0.09%) 11.00 <0.00> (ø)
...eployment/impl/FindDeploymentLogsInteractorImpl.kt 100.00% <ø> (ø) 4.00 <0.00> (+2.00)
...lication/deployment/impl/UndeployInteractorImpl.kt 90.32% <ø> (-9.68%) 9.00 <0.00> (+1.00) ⬇️
... and 103 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab4012b...d4c0097. Read the comment docs.

cpgo and others added 19 commits December 9, 2020 15:42
* CRD definitions and metacontroller install files

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Install files

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Adding RBAC configuration

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Separating in CRD folders

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* rollback changes

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* metacontroller values enabled

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* fix spaces

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
* First tests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Tests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Routing tests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* undeployment k8s tests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Mockin K8sClient class for the integrations test context

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* Removing 0

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* remove comment

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
@eliasalveszup eliasalveszup changed the title Butler operator [WIP] Butler operator Jan 11, 2021
thalleslmF and others added 20 commits April 27, 2021 18:44
Signed-off-by: thalles <lopthalles@gmail.com>
* using cluster scoped composite controller

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>

* changing composite controller manifests

Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: thalles <thalles.freitas@zup.com.br>
Signed-off-by: barbararochazup <barbara.rocha@zup.com.br>
…validation

changing token, gatewayName and host value validation
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Fix cluster role for butler adding acess for all api groups
Signed-off-by: Leandro Rodrigues <leandro.rodrigues@zup.com.br>
Signed-off-by: Lucas Borges Fernandes <lucasbfernandes94@gmail.com>
@lucasbfernandes lucasbfernandes marked this pull request as ready for review April 30, 2021 19:31
@fandrade-zup fandrade-zup merged commit 9aeb52f into main Apr 30, 2021
@fandrade-zup fandrade-zup deleted the butler-operator branch April 30, 2021 20:25
@cpgo
Copy link
Contributor

cpgo commented Apr 30, 2021

❤️

@lucasbfernandes
Copy link
Contributor Author

❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
butler Improvements/additions/fixes for butler module. TESTED QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants