Skip to content

Commit

Permalink
OSSM-6295: Copy all annotations and labels added by ArgoCD except `ar…
Browse files Browse the repository at this point in the history
…gocd.argoproj.io/instance` (#980)

* OSSM-6295: Copy ArgoCD annotations from Gateway to Route

Signed-off-by: Jacek Ewertowski <[email protected]>

* OSSM-6295: Copy all annotations and labels added by ArgoCD except argocd.argoproj.io/instance

Signed-off-by: Jacek Ewertowski <[email protected]>

* Fix lint errors

Signed-off-by: Jacek Ewertowski <[email protected]>

---------

Co-authored-by: Jacek Ewertowski <[email protected]>
Signed-off-by: Yann Liu <[email protected]>
  • Loading branch information
jewertow authored and yannuil committed May 28, 2024
1 parent c5bdded commit 89fa4fd
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 142 deletions.
3 changes: 1 addition & 2 deletions pilot/pkg/config/kube/ior/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func filteredRouteAnnotation(routeAnnotation string) bool {
filteredPrefixes := [...]string{
ShouldManageRouteAnnotation,
"kubectl.kubernetes.io",
"argocd.argoproj.io",
}

for _, prefix := range filteredPrefixes {
Expand All @@ -139,7 +138,7 @@ func filteredRouteAnnotation(routeAnnotation string) bool {
func filteredRouteLabel(routeLabel string) bool {
filteredPrefixes := [...]string{
maistraPrefix,
"argocd.argoproj.io",
"argocd.argoproj.io/instance",
}

for _, prefix := range filteredPrefixes {
Expand Down
Loading

0 comments on commit 89fa4fd

Please sign in to comment.