feat: move bot-prod to argocd generator#60
Merged
lorenzocorallo merged 2 commits intostablefrom Mar 24, 2025
Merged
Conversation
💰 Infracost reportMonthly estimate generatedThis comment will be updated when code changes. |
💰 Infracost reportMonthly estimate generatedThis comment will be updated when code changes. |
toto04
approved these changes
Mar 24, 2025
toto04
approved these changes
Mar 24, 2025
Terraform Plan OutputClick to expandTerraform 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. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.