-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send Application Sync request to Argo CD Server (#44)
* Add initial skeleton of app syncing code * Create Argo CD clients on startup * Formatting and variable naming updates * Regen go.sum * Restructure code to mock Argo CD client * Return synced applications * Fix configuration loading bug * Add tests related to app sync * Add mutex to mocked argocd app client * Automatically create .prcconfig directory to run locally * Add .prcconfig to .gitignore * Adopt shellcheck recommendations * Use mutex in mocked argocd app client * Set up ability to run locally with env variables * Reenable leader election * Update README with information on configuration * Update main.go Co-authored-by: Sebastien Le Digabel <[email protected]> * Address review comments * Reset prog rollout definition to use v1beta1 * Address review comments * Address review comments around configuration * Move to mocks to mocks package * Remove leftover generatorOptions * Update README * Update internal/utils/config.go Co-authored-by: Matteo Ruina <[email protected]> * Add config secret to helm chart * Base 64 encode secrets * Bump Helm chart version * Merge controller test files Co-authored-by: Sebastien Le Digabel <[email protected]> Co-authored-by: Matteo Ruina <[email protected]>
- Loading branch information
1 parent
f526010
commit 42c9374
Showing
20 changed files
with
456 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
configSecret: | ||
argoCDAuthToken: "citoken" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: prc-config | ||
namespace: {{ .Release.Namespace }} | ||
type: Opaque | ||
data: | ||
ARGOCD_AUTH_TOKEN: {{ required "An ArgoCD authentication token is required." .Values.configSecret.argoCDAuthToken | quote | b64enc }} | ||
ARGOCD_SERVER_ADDR: {{ required "An ArgoCD server address is required." .Values.configSecret.argoCDServerAddr | quote | b64enc }} | ||
ARGOCD_INSECURE: {{ required "An ArgoCD 'Insecure' flag is required." .Values.configSecret.argoCDInsecure | quote | b64enc }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.