Skip to content

Commit 16872e9

Browse files
Argo sync basic auth (#488)
* change docker version * basic auth as primary creds
1 parent d39e78c commit 16872e9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

graduated/argocd-sync/step.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '1.0'
22
kind: step-type
33
metadata:
44
name: argocd-sync
5-
version: 1.16.2
5+
version: 1.16.3
66
isPublic: true
77
description: This pipeline plugin trigger a sync for ArgoCD app
88
sources:
@@ -122,20 +122,25 @@ spec:
122122
"type": "boolean",
123123
"description": "Skip wait rollout",
124124
"default": false
125+
},
126+
"basic_auth": {
127+
"type": "boolean",
128+
"description": "Use ArgoCD username/password as primary credentials",
129+
"default": false
125130
}
126131
}
127132
}
128133
steps:
129134
runArgoCd:
130135
title: "Run ArgoCD"
131-
image: "codefresh/cf-argo-plugin:0.2.3"
136+
image: "codefresh/cf-argo-plugin:0.2.4"
132137
commands:
133138
- >-
134139
cf-argo-plugin sync "${{app_name}}"
135140
--cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}"
136141
--argo-host=${{host}} --argo-username=${{username}} --argo-password="${{password}}"
137142
--sync=${{sync}} --prune=${{prune}} --wait-healthy=${{wait_healthy}} --wait-suspend=${{wait_for_suspend}} --debug=${{debug}}
138-
--revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}}
143+
--revision="${{revision}}" --wait-additional-flags="${{additional_flags_for_wait_cmd}}" --skip=${{skip_wait_rollout}} --basic-auth=${{basic_auth}}
139144
--out-commands-file /codefresh/volume/${CF_BLOCK_NAME}-argo-executor --out-export-file /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
140145
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
141146
- chmod +x /codefresh/volume/${CF_BLOCK_NAME}-argo-export_url
@@ -144,11 +149,11 @@ spec:
144149
- echo ARGOCD_OPTS=$ARGOCD_OPTS >> /meta/env_vars_to_export
145150
executeArgoCd:
146151
title: "ExecuteArgoCd"
147-
image: "codefresh/cf-argo-plugin:0.2.3"
152+
image: "codefresh/cf-argo-plugin:0.2.4"
148153
commands:
149154
- /codefresh/volume/${CF_BLOCK_NAME}-argo-executor
150155
rollback:
151156
title: "Rollback"
152-
image: "codefresh/cf-argo-plugin:0.2.3"
157+
image: "codefresh/cf-argo-plugin:0.2.4"
153158
commands:
154159
- cf-argo-plugin rollback ${{app_name}} --code=$ARGO_SYNC_ERROR --cf-host=$CF_URL --cf-token=$CF_API_KEY --cf-integration="${{context}}" --needRollback=${{rollback}}

0 commit comments

Comments
 (0)