Skip to content

Commit

Permalink
disable-client-cache-for-apps-operator-for-eks (#416)
Browse files Browse the repository at this point in the history
* disable-client-cache-for-apps-operator-for-eks
  • Loading branch information
calvix authored Nov 15, 2023
1 parent d80dd3e commit a9bb82b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Disable kubernetes client cache in `app-operator` for EKS clusters.
- Update `app-operator` to version `6.10.0`.

## [2.16.0] - 2023-11-14

### Changed
Expand Down
2 changes: 1 addition & 1 deletion helm/cluster-apps-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
appOperator:
catalog: control-plane-catalog
version: 6.8.1
version: 6.10.0

chartOperator:
catalog: default
Expand Down
6 changes: 6 additions & 0 deletions service/controller/resource/clusterconfigmap/desired.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) ([]*cor
"domain": r.registryDomain,
},
}
// disable kubernetes client cache for EKS cluster
if key.IsEKS(cr) {
appOperatorValues["kubernetes"] = map[string]interface{}{
"disableClientCache": true,
}
}

appValuesYaml, err := yaml.Marshal(appOperatorValues)
if err != nil {
Expand Down

0 comments on commit a9bb82b

Please sign in to comment.