Skip to content

Commit

Permalink
delete argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii.Mashkov committed Jun 17, 2024
1 parent 19158d0 commit 2a3663c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 55 deletions.
46 changes: 23 additions & 23 deletions cluster-bootstrap/argocd.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
version = "7.1.3"
namespace = "argocd"
create_namespace = true
wait = true
wait_for_jobs = true
values = [
file("${path.module}/helm-values/argocd.yaml"),
]
set {
name = "configs.credentialTemplates.https-creds.password"
value = var.argo_cd_private_key
}
}

variable "argo_cd_private_key" {
description = "Private key for Argo CD"
sensitive = true
type = string
}
# resource "helm_release" "argocd" {
# name = "argocd"
# repository = "https://argoproj.github.io/argo-helm"
# chart = "argo-cd"
# version = "5.49.0"
# namespace = "argocd"
# create_namespace = true
# wait = true
# wait_for_jobs = true
# values = [
# file("${path.module}/helm-values/argocd.yaml"),
# ]
# set {
# name = "configs.credentialTemplates.https-creds.password"
# value = var.argo_cd_private_key
# }
# }
#
# variable "argo_cd_private_key" {
# description = "Private key for Argo CD"
# sensitive = true
# type = string
# }
73 changes: 41 additions & 32 deletions cluster-bootstrap/helm-values/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ configs:
## - https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#clusters
## - https://argo-cd.readthedocs.io/en/stable/operator-manual/security/#external-cluster-credentials
## - https://argo-cd.readthedocs.io/en/stable/user-guide/projects/#project-scoped-repositories-and-clusters
clusterCredentials: {}
# mycluster:
# server: https://mycluster.example.com
clusterCredentials: []
# - name: mycluster
# server: https://mycluster.com
# labels: {}
# annotations: {}
# config:
Expand Down Expand Up @@ -446,7 +446,7 @@ configs:

# -- Repository credentials to be used as Templates for other repos
## Creates a secret for each key/value specified below to create repository credentials
credentialTemplates: {}
credentialTemplates:
# github-enterprise-creds-1:
# url: https://github.com/argoproj
# githubAppID: 1
Expand All @@ -473,7 +473,7 @@ configs:
# -- Repositories list to be used by applications
## Creates a secret for each key/value specified below to create repositories
## Note: the last example in the list would use a repository credential template, configured under "configs.credentialTemplates".
repositories: {}
repositories:
# istio-helm-repo:
# url: https://storage.googleapis.com/istio-prerelease/daily-build/master-latest-daily/charts
# name: istio.io
Expand Down Expand Up @@ -613,6 +613,22 @@ controller:
# @default -- `[]` (defaults to global.imagePullSecrets)
imagePullSecrets: []

# -- DEPRECATED - Application controller commandline flags
args: {}
# DEPRECATED - Use configs.params to override
# # -- define the application controller `--status-processors`
# statusProcessors: "20"
# # -- define the application controller `--operation-processors`
# operationProcessors: "10"
# # -- define the application controller `--app-hard-resync`
# appHardResyncPeriod: "0"
# # -- define the application controller `--app-resync`
# appResyncPeriod: "180"
# # -- define the application controller `--self-heal-timeout-seconds`
# selfHealTimeout: "5"
# # -- define the application controller `--repo-server-timeout-seconds`
# repoServerTimeoutSeconds: "60"

# -- Additional command line arguments to pass to application controller
extraArgs: []

Expand Down Expand Up @@ -914,7 +930,7 @@ dex:
# -- Dex image repository
repository: ghcr.io/dexidp/dex
# -- Dex image tag
tag: v2.38.0
tag: v2.37.0
# -- Dex imagePullPolicy
# @default -- `""` (defaults to global.image.imagePullPolicy)
imagePullPolicy: ""
Expand Down Expand Up @@ -1036,12 +1052,6 @@ dex:
livenessProbe:
# -- Enable Kubernetes liveness probe for Dex >= 2.28.0
enabled: false
# -- Http path to use for the liveness probe
httpPath: /healthz/live
# -- Http port to use for the liveness probe
httpPort: metrics
# -- Scheme to use for for the liveness probe (can be HTTP or HTTPS)
httpScheme: HTTP
# -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
failureThreshold: 3
# -- Number of seconds after the container has started before [probe] is initiated
Expand All @@ -1056,12 +1066,6 @@ dex:
readinessProbe:
# -- Enable Kubernetes readiness probe for Dex >= 2.28.0
enabled: false
# -- Http path to use for the readiness probe
httpPath: /healthz/ready
# -- Http port to use for the readiness probe
httpPort: metrics
# -- Scheme to use for for the liveness probe (can be HTTP or HTTPS)
httpScheme: HTTP
# -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
failureThreshold: 3
# -- Number of seconds after the container has started before [probe] is initiated
Expand All @@ -1076,9 +1080,6 @@ dex:
# -- terminationGracePeriodSeconds for container lifecycle hook
terminationGracePeriodSeconds: 30

# -- Automount API credentials for the Service Account into the pod.
automountServiceAccountToken: true

serviceAccount:
# -- Create dex service account
create: true
Expand Down Expand Up @@ -1167,7 +1168,7 @@ redis:
# -- Redis repository
repository: public.ecr.aws/docker/library/redis
# -- Redis tag
tag: 7.2.4-alpine
tag: 7.0.13-alpine
# -- Redis image pull policy
# @default -- `""` (defaults to global.image.imagePullPolicy)
imagePullPolicy: ""
Expand All @@ -1183,7 +1184,7 @@ redis:
# -- Repository to use for the redis-exporter
repository: public.ecr.aws/bitnami/redis-exporter
# -- Tag to use for the redis-exporter
tag: 1.58.0
tag: 1.53.0
# -- Image pull policy for the redis-exporter
# @default -- `""` (defaults to global.image.imagePullPolicy)
imagePullPolicy: ""
Expand Down Expand Up @@ -1388,17 +1389,17 @@ redis-ha:
## Redis image
image:
# -- Redis repository
repository: public.ecr.aws/docker/library/redis
repository: redis
# -- Redis tag
tag: 7.2.4-alpine
tag: 7.0.13-alpine
## Prometheus redis-exporter sidecar
exporter:
# -- Enable Prometheus redis-exporter sidecar
enabled: false
# -- Repository to use for the redis-exporter
image: public.ecr.aws/bitnami/redis-exporter
# -- Tag to use for the redis-exporter
tag: 1.58.0
tag: 1.53.0
persistentVolume:
# -- Configures persistence on Redis nodes
enabled: false
Expand Down Expand Up @@ -1576,10 +1577,10 @@ server:

## Argo UI extensions image
image:
# -- Repository to use for extension installer image
repository: "quay.io/argoprojlabs/argocd-extension-installer"
# -- Tag to use for extension installer image
tag: "v0.0.5"
# -- Repository to use for extensions image
repository: "ghcr.io/argoproj-labs/argocd-extensions"
# -- Tag to use for extensions image
tag: "v0.2.1"
# -- Image pull policy for extensions
# @default -- `""` (defaults to global.image.imagePullPolicy)
imagePullPolicy: ""
Expand All @@ -1590,7 +1591,6 @@ server:
runAsNonRoot: true
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
capabilities:
Expand Down Expand Up @@ -2455,7 +2455,16 @@ applicationSet:
# @default -- `[]` (defaults to global.imagePullSecrets)
imagePullSecrets: []

# -- ApplicationSet controller command line flags
# -- DEPRECATED - ApplicationSet controller command line flags
args: {}
# DEPRECATED - Use configs.params.applicationsetcontroller.policy to override
# -- How application is synced between the generator and the cluster
# policy: sync
# DEPRECATED - Use configs.params.applicationsetcontroller.dryrun to override
# -- Enable dry run mode
# dryRun: false

# -- List of extra cli args to add
extraArgs: []

# -- Environment variables to pass to the ApplicationSet controller
Expand Down

0 comments on commit 2a3663c

Please sign in to comment.