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

Added secret update function #55

Merged
merged 52 commits into from
Apr 27, 2020
Merged

Added secret update function #55

merged 52 commits into from
Apr 27, 2020

Conversation

gaopan233
Copy link
Contributor

Added secret update function
Modified logic when secret exists: secrets will always be reloaded

Added process logic for secret update

Signed-off-by: Gao Pan <gao_pan@intuit.com>
Mengying-intuit and others added 24 commits April 14, 2020 14:38
… for review, fixed some typos and 404 link for helm install
* Tests for creating controllers

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Additional pod test - found/fixed a bug

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* One more test

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Added process logic for secret update

Signed-off-by: Gao Pan <gao_pan@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Fixes #56
Fixes #53

Signed-off-by: Madeline <madeline_li@intuit.com>
Fixes #28

Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
* Fixing rbac issues reported in #64

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* improving logging for SE address generation

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
#68)

* formalizing the behavior to fall back to annotation if label isn't present

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Removing the hardcoded references to a default identity label

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Nil check

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Refactoring to add the rest of the admiral params to the singleton (and to enforce singleton-ness

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Another test

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* coverage bump

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Whoops broke a test

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
* Bootstrapping admiral

* Add circle ci config

* Fix the working directory for builds

* Bootstrapping admiral

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Add circle ci config

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Fix the working directory for builds

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Add build status badge.

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Revert "Add build status badge."

This reverts commit a9fa409.

* Publish images: i) latest from master, ii) TAG if its set and iii) commit sha if neither i) or ii)

* Revert "Formalizing the behavior to fall back to annotation if label isn't pr… (#68)"

This reverts commit 802de17.

Signed-off-by: Madeline <madeline_li@intuit.com>
* Overriding defaults for basic example

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
* Bootstrapping admiral

* Add circle ci config

* Fix the working directory for builds

* Bootstrapping admiral

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Add circle ci config

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Fix the working directory for builds

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Add build status badge.

Signed-off-by: aattuluri <anil_attuluri@intuit.com>

* Revert "Add build status badge."

This reverts commit a9fa409.

* Working version after major refactor.

* Fix test files.

* Use global traffic policy to update destination rule.

* Minor fixes.

* Update image for admiral

* Add outlier detection for locality load balancing to work

* Undo tag change

* Sample files for demo

* Remove/comment some tests

* Add the needed method

* Commenting out few more tests.

* Remove unwanted files.

* Adding back missing tests.

* Create an alias for logrus.

* Fixing tests.

Signed-off-by: Madeline <madeline_li@intuit.com>
* formalizing the behavior to fall back to annotation if label isn't present

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Removing the hardcoded references to a default identity label

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Nil check

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Refactoring to add the rest of the admiral params to the singleton (and to enforce singleton-ness

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Another test

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* coverage bump

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Whoops broke a test

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Adding warning for config re-initialization

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Fixed rebase-related issues

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Martin Baillie <martin@baillie.email>
Signed-off-by: Madeline <madeline_li@intuit.com>
aattuluri and others added 16 commits April 20, 2020 16:46
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
* Update sidecar resource in workload namespace

Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

* Updating review comments

Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

* Adding tests for sidecar update code

Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

* updating tests for sidecar update code

Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

Co-authored-by: vjoshi3 <vrushali_joshi@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

Co-authored-by: vjoshi3 <vrushali_joshi@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Fixes #87

Signed-off-by: Madeline <madeline_li@intuit.com>
* Added tests for destination rule creation

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Uncommented/fixed a bunch of SE tests

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

* Uncommented/fixed more se tests

Signed-off-by: Joe Peacock <joe_peacock@intuit.com>

Co-authored-by: Joe Peacock <joe_peacock@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
… for review, fixed some typos and 404 link for helm install

Signed-off-by: Madeline <madeline_li@intuit.com>
* finished first draft for recognizing admiral ignore annotation, ready for review, fixed some typos and 404 link for helm install

Signed-off-by: Madeline <madeline_li@intuit.com>

* added new fake client to pass CI

Signed-off-by: Madeline <madeline_li@intuit.com>

* added two tests for testing new annotation restriction

Signed-off-by: Madeline <madeline_li@intuit.com>

Co-authored-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
…rvice instance (#91)

* Route traffic to cluster local service instance from ingress-gateway

* Override kustomize admiral image tag for releases with the release tag

* Minor documentation edits

Fixes #90
Fixes #62
Fixes #39

Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
@codecov-io
Copy link

Codecov Report

Merging #55 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #55   +/-   ##
=======================================
  Coverage   69.86%   69.86%           
=======================================
  Files          23       23           
  Lines        1782     1782           
=======================================
  Hits         1245     1245           
  Misses        434      434           
  Partials      103      103           

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 a1e007e...a1e007e. Read the comment docs.

Copy link
Contributor

@aattuluri aattuluri left a comment

Choose a reason for hiding this comment

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

LGTM. One minor comment.

@@ -139,6 +145,13 @@ func NewController(
queue.Add(key)
}
},
UpdateFunc: func(oldObj interface{}, newObj interface{}) {
key, err := cache.MetaNamespaceKeyFunc(newObj)
log.Infof("Processing update: %s", key)
Copy link
Contributor

Choose a reason for hiding this comment

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

Change the log line to "Processing secret update for cluster: %s" for better readability.

@aattuluri aattuluri merged commit 6aa6d69 into master Apr 27, 2020
@aattuluri aattuluri deleted the MESH-376 branch April 27, 2020 17:13
asushanthk pushed a commit to asushanthk/admiral that referenced this pull request Apr 28, 2020
Signed-off-by: sa <sushanth_a@intuit.com>
itsLucario pushed a commit to itsLucario/admiral that referenced this pull request Aug 9, 2022
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.

7 participants