Skip to content

Commit

Permalink
update: ack-system (#313)
Browse files Browse the repository at this point in the history
* fix: lint

* fix: missing vars; script
  • Loading branch information
codekow authored Jul 19, 2024
1 parent 31a360d commit 42d34e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions ack-system/base/user-config-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ data:
AWS_ENDPOINT_URL: ""
ENABLE_LEADER_ELECTION: "true"
LEADER_ELECTION_NAMESPACE: ""
RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS: "1"
9 changes: 5 additions & 4 deletions ack-system/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ ocp_aws_get_key(){
}

# create secrets for ack controllers
aws_setup_ack_system(){
ocp_aws_setup_ack_system(){
NAMESPACE=ack-system

ocp_aws_get_key

setup_namespace "${NAMESPACE}"

oc apply -k ../"${NAMESPACE}"/aggregate/popular
Expand All @@ -50,9 +52,8 @@ aws_setup_ack_system(){

< ../ack-${type}-controller/operator/overlays/alpha/user-secrets-secret.yaml \
sed "s@UPDATE_AWS_ACCESS_KEY_ID@${AWS_ACCESS_KEY_ID}@; s@UPDATE_AWS_SECRET_ACCESS_KEY@${AWS_SECRET_ACCESS_KEY}@" | \
oc -n ${NAMESPACE} apply -f -
oc -n "${NAMESPACE}" apply -f -
done
}

ocp_aws_get_key
aws_setup_ack_system
ocp_aws_setup_ack_system

0 comments on commit 42d34e9

Please sign in to comment.