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

gen2 profiles (design proposal 3) #335

Merged
merged 73 commits into from
Dec 7, 2022
Merged

gen2 profiles (design proposal 3) #335

merged 73 commits into from
Dec 7, 2022

Conversation

bcle
Copy link
Collaborator

@bcle bcle commented Nov 28, 2022

Design doc: https://github.com/arlonproj/arlon/blob/private/leb/multiprofiles/docs/gen2_profiles_proposal_3.md
Testing:

  • unit test located at pkg/appprofile/appprofile_test.go
  • E2E test: make e2e-appprofiles

@cruizen
Copy link
Member

cruizen commented Dec 6, 2022

Fixes #98

Copy link
Member

@Rohitrajak1807 Rohitrajak1807 left a comment

Choose a reason for hiding this comment

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

Added some general comments and nitpicks. I'm approving the changes, because the suggestions in my review are mostly related to cleanup which can be done as a part of the rebase.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
cmd/app/create.go Outdated Show resolved Hide resolved
cmd/app/delete.go Outdated Show resolved Hide resolved
pkg/app/app.go Outdated Show resolved Hide resolved
pkg/cluster/external.go Show resolved Hide resolved
@bcle bcle merged commit a09f3b9 into main Dec 7, 2022
@bcle bcle mentioned this pull request Dec 13, 2022
@cruizen cruizen deleted the private/leb/multiprofiles branch December 15, 2022 06:55
@cruizen cruizen restored the private/leb/multiprofiles branch December 15, 2022 06:56
cruizen pushed a commit that referenced this pull request Dec 16, 2022
Design doc: https://github.com/arlonproj/arlon/blob/private/leb/multiprofiles/docs/gen2_profiles_proposal_3.md
Testing:
- unit test located at pkg/appprofile/appprofile_test.go
- E2E test: make e2e-appprofiles

------ squashed commits ------

* gen2 profiles

* update gen2 profiles doc

* use applicationset apis from argo-cd repo

* initial AppProfile API, needs 'make' to regenerate code

* after make generate

* initial implementation of AppProfiles - untested

* fix circular import loop

* appprofiles reconciliation started working

* appprofiles reconciliation - improvements

* add application (cluster) and applicationset (app) reconciliation

* doc for gen2 profles - proposal 2

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* add arlon-gen2-profiles-reconc-algo.png

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* Update gen2_profiles_proposal_2.md

* fix reconciliation bug: don't take address of temp loop variable

* Update gen2_profiles_proposal_2.md

* multiple profiles support: initial implementation

* fixes ... seems to work now

* use a better time encoder for zap logger

* more logging tweaks to make log lines shorter

* unit test, first iteration

* unit test enhancements

* more unit test enhancements

* even more unit test enhancements

* add 'appprofile list' command

* display app-profiles in 'app list' command output

* 'appprofile list' and 'app create' commands, display app-profiles in 'app list' command output

* fix unit test

* new 'app delete' command

* display appprofiles in 'cluster list' command

* fix nil pointer deref bug in reconciliation

* new 'cluster setappprofiles' command

* new document for proposal 3 of gen2 profiles

* Update gen2_profiles_proposal_3.md

* Update gen2_profiles_proposal_3.md

* set CONTROLLER_TOOLS_VERSION to v0.10.0

* remove ngprofile and app/[add_to|remove_from]_profile commands

* Makefile: add unittests target

* add unit tests to github CI workflow

* set arlon image version to 0.10.0 in deployment yaml

* RBAC settings for appprofile

* add examples/declarative and examples/clustertemplates

* remove sshKeyName field from example cluster manifest

* rename my-cluster -> mycluster

* prepare base cluster files for examples/clustertemplates/eks-managed-mpool/manifest.yaml

* rename my-cluster -> mycluster in cluster.yaml

* consolidate example apps into single file

* raise arlon controller memory request and limit

* again raise arlon controller (the other one) memory request and limit

* fix repoUrl for redis example app

* (WIP) add e2e test for appprofiles

* fix relative path to example manifests

* fix relative path to example manifests again

* e2e-appprofiles: fix the expected values for MachinePool

* e2e-appprofiles: fix the API version for MachinePool

* Update .github/workflows/ci.yml

Co-authored-by: Rohit Rajak <[email protected]>

* Update cmd/app/create.go

remove null import of 'embed'

Co-authored-by: Rohit Rajak <[email protected]>

* Update cmd/app/delete.go

remove null import of 'embed'

Co-authored-by: Rohit Rajak <[email protected]>

* remove unittests target because pkgtest does same thing

* remove unused constant

Co-authored-by: Bich Le <[email protected]>
Co-authored-by: arlon automation <[email protected]>
Co-authored-by: Rohit Rajak <[email protected]>
@cruizen cruizen deleted the private/leb/multiprofiles branch February 21, 2024 07:14
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