Skip to content

Commit

Permalink
update cma (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiwei Yin <[email protected]>
  • Loading branch information
zhiweiyin318 authored Oct 9, 2024
1 parent a9552fe commit 6ff1869
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 9 deletions.
9 changes: 9 additions & 0 deletions configuration/addonhostedconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: addon.open-cluster-management.io/v1alpha1
kind: AddOnDeploymentConfig
metadata:
name: addon-hosted-config
namespace: multicluster-engine
spec:
customizedVariables:
- name: managedKubeConfigSecret
value: external-managed-kubeconfig
23 changes: 23 additions & 0 deletions configuration/workmanagercma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: addon.open-cluster-management.io/v1alpha1
kind: ClusterManagementAddOn
metadata:
annotations:
addon.open-cluster-management.io/lifecycle: addon-manager
name: work-manager
spec:
addOnMeta:
description: work-manager provides action, view and rbac settings
displayName: work-manager
installStrategy:
placements:
- name: global
namespace: open-cluster-management-global-set
rolloutStrategy:
type: All
type: Placements
supportedConfigs:
- defaultConfig:
name: addon-hosted-config
namespace: multicluster-engine
group: addon.open-cluster-management.io
resource: addondeploymentconfigs
5 changes: 5 additions & 0 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ echo ""
echo "###### Wait unitl MCE CR is Available ######"
waitForReady "kubectl get mce multiclusterengine | grep -c \"Available\"" 1

echo ""
echo "###### create addonhostedconfig ######"
kubectl apply -f ./configuration/addonhostedconfig.yaml


echo ""
echo "#### Install Policy addons #####"
make install-policy
Expand Down
2 changes: 1 addition & 1 deletion policy/charts/cluster-lifecycle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ global:
hubconfig:
nodeSelector: null
proxyConfigs: {}
replicaCount: 1
replicaCount: 2
tolerations: []
org: open-cluster-management
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ spec:
supportedConfigs:
- group: addon.open-cluster-management.io
resource: addondeploymentconfigs
defaultConfig:
{{- toYaml .Values.global.cma.defaultConfig | nindent 8 }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ spec:
supportedConfigs:
- group: addon.open-cluster-management.io
resource: addondeploymentconfigs
defaultConfig:
{{- toYaml .Values.global.cma.defaultConfig | nindent 8 }}

6 changes: 5 additions & 1 deletion policy/charts/grc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ global:
pullSecret: null
pullPolicy: Always
hubSize: Small

cma:
defaultConfig: {}

hubconfig:
nodeSelector: null
proxyConfigs: {}
replicaCount: 1
replicaCount: 2
tolerations: []
org: open-cluster-management
12 changes: 5 additions & 7 deletions policy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ global:
# klusterlet_addon_controller: "registry.redhat.io/rhacm2/klusterlet-addon-controller-rhel9@sha256:478e3e6cda0d74f43b0f05911d023344108a5cd79d57d5cc9f268ad064848a00"
namespace: multicluster-engine
pullSecret: open-cluster-management-image-pull-credentials
grc:
hubconfig:
replicaCount: 2

cluster-lifecycle:
hubconfig:
replicaCount: 2

cma:
defaultConfig:
name: addon-hosted-config
namespace: multicluster-engine

0 comments on commit 6ff1869

Please sign in to comment.