Skip to content

Commit

Permalink
Merge pull request #3 from upbound/feature/argocd-sso
Browse files Browse the repository at this point in the history
feat(sso): add options to configure argocd with sso
  • Loading branch information
haarchri authored Nov 23, 2023
2 parents 402613d + 81ba495 commit fa88084
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ spec:
patches:
- type: PatchSet
patchSetName: Common
- fromFieldPath: spec.parameters.ingressUrl
toFieldPath: spec.forProvider.values.server.url
- fromFieldPath: spec.parameters.oidcConfig
toFieldPath: spec.forProvider.values.server.config.oidc.config
- fromFieldPath: spec.parameters.operators.argocd.version
toFieldPath: spec.forProvider.chart.version
- fromFieldPath: spec.parameters.providerConfigName
Expand Down
6 changes: 6 additions & 0 deletions apis/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ spec:
providerConfigName:
type: string
description: Crossplane ProviderConfig to use for provisioning this resources
ingressUrl:
type: string
description: set ingressUrl for argocd server
oidcConfig:
type: string
description: set oidc config for argocd server
deletionPolicy:
description: Delete the external resources when the Claim/XR is deleted. Defaults to Delete
enum:
Expand Down
8 changes: 8 additions & 0 deletions examples/argocd-xr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ metadata:
name: configuration-gitops-argocd
spec:
parameters:
# this configuration is needed if you want to configure argocd with oidc
# ingressUrl: argocd-platform-ref-aws-cnoe.upboundrocks.cloud
# oidcConfig: |
# name: Keycloak
# issuer: https://keycloak-platform-ref-aws-cnoe.upboundrocks.cloud/realms/master
# clientID: argocd
# clientSecret: 0000000000000000000
# requestedScopes: ['openid', 'profile', 'email', 'groups']
providerConfigName: configuration-gitops-argocd
source:
git:
Expand Down

0 comments on commit fa88084

Please sign in to comment.