Skip to content

feat: move bot-prod to argocd generator#60

Merged
lorenzocorallo merged 2 commits intostablefrom
bot-prod
Mar 24, 2025
Merged

feat: move bot-prod to argocd generator#60
lorenzocorallo merged 2 commits intostablefrom
bot-prod

Conversation

@lorenzocorallo
Copy link
Copy Markdown
Member

No description provided.

@lorenzocorallo lorenzocorallo requested a review from toto04 March 24, 2025 22:08
@infracost
Copy link
Copy Markdown

infracost bot commented Mar 24, 2025

💰 Infracost report

Monthly estimate generated

This comment will be updated when code changes.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2025

💰 Infracost report

Monthly estimate generated

This comment will be updated when code changes.

@github-actions
Copy link
Copy Markdown

Terraform Plan Output

Click to expand
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
  - destroy

Terraform will perform the following actions:

  # module.argo-cd.helm_release.argocd_apps will be updated in-place
  ~ resource "helm_release" "argocd_apps" {
        id                         = "argocd-apps"
      ~ metadata                   = [
          - {
              - chart          = "argocd-apps"
              - first_deployed = 1740916110
              - last_deployed  = 1742477328
              - name           = "argocd-apps"
              - namespace      = "argocd"
              - revision       = 3
              - values         = jsonencode(
                    {
                      - applications = {
                          - bot-prod = {
                              - destination = {
                                  - namespace = "bot-prod"
                                  - server    = "https://kubernetes.default.svc"
                                }
                              - info        = [
                                  - {
                                      - name  = "url"
                                      - value = "https://argoproj.github.io/"
                                    },
                                ]
                              - name        = "bot-prod"
                              - namespace   = "argocd"
                              - project     = "default"
                              - source      = {
                                  - directory      = {
                                      - recurse = true
                                    }
                                  - path           = "bot-prod"
                                  - repoURL        = "https://github.com/poliNetworkOrg/polinetwork-cd"
                                  - targetRevision = "HEAD"
                                }
                              - syncPolicy  = {
                                  - automated   = {
                                      - prune    = true
                                      - selfHeal = true
                                    }
                                  - syncOptions = [
                                      - "CreateNamespace=false",
                                    ]
                                }
                            }
                          - mariadb  = {
                              - destination = {
                                  - namespace = "mariadb"
                                  - server    = "https://kubernetes.default.svc"
                                }
                              - info        = [
                                  - {
                                      - name  = "url"
                                      - value = "https://argoproj.github.io/"
                                    },
                                ]
                              - name        = "mariadb"
                              - namespace   = "argocd"
                              - project     = "default"
                              - source      = {
                                  - directory      = {
                                      - recurse = true
                                    }
                                  - path           = "mariadb"
                                  - repoURL        = "https://github.com/poliNetworkOrg/polinetwork-cd"
                                  - targetRevision = "HEAD"
                                }
                              - syncPolicy  = {
                                  - automated   = {
                                      - prune    = true
                                      - selfHeal = true
                                    }
                                  - syncOptions = [
                                      - "CreateNamespace=false",
                                    ]
                                }
                            }
                        }
                    }
                )
              - version        = "2.0.2"
                # (2 unchanged attributes hidden)
            },
        ] -> (known after apply)
        name                       = "argocd-apps"
      ~ values                     = [
          ~ <<-EOT
                applications:
                  # - name: bot-dev
                  #   namespace: argocd
                  #   project: default
                  #   source:
                  #     repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
                  #     targetRevision: HEAD
                  #     path: bot-dev
                  #     directory:
                  #       recurse: true
                  #   destination:
                  #     server: https://kubernetes.default.svc
                  #     namespace: bot-dev
                  #   syncPolicy:
                  #     automated:
                  #       prune: true
                  #       selfHeal: true
                  #     syncOptions:
                  #       - CreateNamespace=false
                  #   info:
                  #     - name: url
                  #       value: https://argoproj.github.io/
              -   bot-prod:
              +   # bot-prod:
              -     name: bot-prod
              +   #   name: bot-prod
              -     namespace: argocd
              +   #   namespace: argocd
              -     project: default
              +   #   project: default
              -     source:
              +   #   source:
              -       repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
              +   #     repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
              -       targetRevision: HEAD
              +   #     targetRevision: HEAD
              -       path: bot-prod
              +   #     path: bot-prod
              -       directory:
              +   #     directory:
              -         recurse: true
              +   #       recurse: true
              -     destination:
              +   #   destination:
              -       server: https://kubernetes.default.svc
              +   #     server: https://kubernetes.default.svc
              -       namespace: bot-prod
              +   #     namespace: bot-prod
              -     syncPolicy:
              +   #   syncPolicy:
              -       automated:
              +   #     automated:
              -         prune: true
              +   #       prune: true
              -         selfHeal: true
              +   #       selfHeal: true
              -       syncOptions:
              +   #     syncOptions:
              -         - CreateNamespace=false
              +   #       - CreateNamespace=false
              -     info:
              +   #   info:
              -       - name: url
              +   #     - name: url
              -         value: https://argoproj.github.io/
              +   #       value: https://argoproj.github.io/
                  # bot-mat:
                  #   name: bot-mat
                  #   namespace: argocd
                  #   project: default
                  #   source:
                  #     repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
                  #     targetRevision: HEAD
                  #     path: bot-mat
                  #     directory:
                  #       recurse: true
                  #   destination:
                  #     server: https://kubernetes.default.svc
                  #     namespace: bot-mat
                  #   syncPolicy:
                  #     automated:
                  #       prune: true
                  #       selfHeal: true
                  #     syncOptions:
                  #       - CreateNamespace=false
                  #       - Replace=true
                  #   info:
                  #     - name: url
                  #       value: https://argoproj.github.io/
                  mariadb:
                    name: mariadb
                    namespace: argocd
                    project: default
                    source:
                      repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
                      targetRevision: HEAD
                      path: mariadb
                      directory:
                        recurse: true
                    destination:
                      server: https://kubernetes.default.svc
                      namespace: mariadb
                    syncPolicy:
                      automated:
                        prune: true
                        selfHeal: true
                      syncOptions:
                        - CreateNamespace=false
                    info:
                      - name: url
                        value: https://argoproj.github.io/
            EOT,
        ]
        # (26 unchanged attributes hidden)
    }

  # module.bot_mod_prod.kubernetes_secret.bot_secret will be destroyed
  # (because kubernetes_secret.bot_secret is not in configuration)
  - resource "kubernetes_secret" "bot_secret" {
      - data                           = (sensitive value) -> null
      - id                             = "bot-prod/bot-config-secret" -> null
      - immutable                      = false -> null
      - type                           = "Opaque" -> null
      - wait_for_service_account_token = true -> null

      - metadata {
          - annotations      = {} -> null
          - generation       = 0 -> null
          - labels           = {} -> null
          - name             = "bot-config-secret" -> null
          - namespace        = "bot-prod" -> null
          - resource_version = "86095786" -> null
          - uid              = "2ee8e1d1-354d-44ab-b5ff-163beee53eee" -> null
            # (1 unchanged attribute hidden)
        }
    }

  # module.bot_mod_prod.kubernetes_secret.git_config[0] will be destroyed
  # (because index [0] is out of range for count)
  - resource "kubernetes_secret" "git_config" {
      - data                           = (sensitive value) -> null
      - id                             = "bot-prod/git-config" -> null
      - immutable                      = false -> null
      - type                           = "Opaque" -> null
      - wait_for_service_account_token = true -> null

      - metadata {
          - annotations      = {} -> null
          - generation       = 0 -> null
          - labels           = {} -> null
          - name             = "git-config" -> null
          - namespace        = "bot-prod" -> null
          - resource_version = "65974340" -> null
          - uid              = "bfc75899-6fe8-4def-b085-b6acfd650283" -> null
            # (1 unchanged attribute hidden)
        }
    }

  # module.bot_mod_prod.kubernetes_secret.git_ssh_config[0] will be destroyed
  # (because index [0] is out of range for count)
  - resource "kubernetes_secret" "git_ssh_config" {
      - data                           = (sensitive value) -> null
      - id                             = "bot-prod/ssh-config" -> null
      - immutable                      = false -> null
      - type                           = "Opaque" -> null
      - wait_for_service_account_token = true -> null

      - metadata {
          - annotations      = {} -> null
          - generation       = 0 -> null
          - labels           = {} -> null
          - name             = "ssh-config" -> null
          - namespace        = "bot-prod" -> null
          - resource_version = "65974339" -> null
          - uid              = "82bb6da3-2f48-43b8-a8b7-13f7f7ba06ea" -> null
            # (1 unchanged attribute hidden)
        }
    }

Plan: 0 to add, 1 to change, 3 to destroy.

@lorenzocorallo lorenzocorallo merged commit fe5b550 into stable Mar 24, 2025
6 checks passed
@lorenzocorallo lorenzocorallo deleted the bot-prod branch March 24, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants