Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord.py Upgrade #152

Merged
merged 10 commits into from
Nov 23, 2022
Merged

Discord.py Upgrade #152

merged 10 commits into from
Nov 23, 2022

Conversation

GrantBirki
Copy link
Owner

Discord.py Upgrade

This pull request upgrades the Discord backend in Errbot to Discord.py v2.

@GrantBirki GrantBirki added enhancement New feature or request dependencies Pull requests that update a dependency file labels Nov 13, 2022
Repository owner deleted a comment from github-actions bot Nov 13, 2022
@github-actions
Copy link

Terraform Plan - aws - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.dynamodb_table_play.aws_dynamodb_table.this[0]: Refreshing state... [id=play]
module.dynamodb_table_sparkle.aws_dynamodb_table.this[0]: Refreshing state... [id=sparkle]
module.dynamodb_table.aws_dynamodb_table.this[0]: Refreshing state... [id=remember]
module.dynamodb_table_tts.aws_dynamodb_table.this[0]: Refreshing state... [id=tts]
module.dynamodb_table_loud.aws_dynamodb_table.this[0]: Refreshing state... [id=loud]
module.dynamodb_eft_tracker.aws_dynamodb_table.this[0]: Refreshing state... [id=eftitemtracker]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/aws, Workflow: ci

Terraform Plan - k8s-cluster - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
azurerm_resource_group.default: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot]
azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet]
azurerm_network_security_group.nsg: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/networkSecurityGroups/errbot_nsg]
azurerm_container_registry.acr: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr]
azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_subnet_network_security_group_association.nsg_association: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_kubernetes_cluster.aks: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourcegroups/errbot/providers/Microsoft.ContainerService/managedClusters/errbot-k8s]
azurerm_role_assignment.role_acrpull: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr/providers/Microsoft.Authorization/roleAssignments/98ebabba-07cf-a90e-33da-d7cc741a3adc]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s-cluster, Workflow: ci

Terraform Plan - k8s - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.errbot.kubectl_manifest.errbot_namespace[1]: Refreshing state... [id=/apis/networking.k8s.io/v1/namespaces/errbot/networkpolicys/default-deny]
module.promtail.kubectl_manifest.promtail_configmap[0]: Refreshing state... [id=/api/v1/namespaces/default/configmaps/promtail-config]
module.errbot.kubectl_manifest.errbot_secret[0]: Refreshing state... [id=/api/v1/namespaces/errbot/secrets/errbot-secret]
module.errbot.kubectl_manifest.errbot_network_policy[0]: Refreshing state... [id=/apis/networking.k8s.io/v1/namespaces/errbot/networkpolicys/errbot-network-policy]
module.promtail.kubectl_manifest.promtail_deployment[2]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterroles/promtail]
module.promtail.kubectl_manifest.promtail_deployment[3]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/promtail]
module.promtail.kubectl_manifest.promtail_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/default/daemonsets/promtail]
module.promtail.kubectl_manifest.promtail_deployment[1]: Refreshing state... [id=/api/v1/namespaces/default/serviceaccounts/promtail]
module.errbot.kubectl_manifest.errbot_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/errbot/deployments/errbot]

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

Terraform will perform the following actions:

  # module.errbot.kubectl_manifest.errbot_deployment[0] will be updated in-place
  ~ resource "kubectl_manifest" "errbot_deployment" {
        id                      = "/apis/apps/v1/namespaces/errbot/deployments/errbot"
        name                    = "errbot"
      ~ yaml_body               = (sensitive value)
      ~ yaml_body_parsed        = <<-EOT
            apiVersion: apps/v1
            kind: Deployment
            metadata:
              labels:
                name: errbot
              name: errbot
              namespace: errbot
            spec:
              replicas: 1
              selector:
                matchLabels:
                  name: errbot
              strategy: {}
              template:
                metadata:
                  annotations:
                    seccompProfile.security.alpha.kubernetes.io/pod: runtime/default
                  labels:
                    name: errbot
                spec:
                  automountServiceAccountToken: false
                  containers:
                  - env:
                    - name: BOT_NAME
                      value: errbot
                    - name: BACKEND
                      value: Discord
                    - name: BOT_STATUS_MESSAGE
                      value: errbot.birki.io | .help
                    - name: BOT_PREFIX
                      value: .
                    - name: BOT_HOME_CHANNEL
                      value: errbot
                    - name: DOCS_URL
                      value: https://errbot.birki.io
                    - name: BOT_ADMINS
                      value: Birki#0001
                    - name: BOT_EXTRA_BACKEND_DIR
                      value: /app/backend/err-backend-discord
                    - name: DISABLE_EFT_CRON
                      value: "False"
                    - name: DISABLE_LEAGUE_CRON
                      value: "False"
                    - name: RIOT_REGION
                      value: na1
                    - name: RIOT_REGION_V5
                      value: AMERICAS
                    - name: IMAGE_TAG
          -           value: c3e4d719750de127920e0a95b1508e0a9b0382a7
          +           value: cb1c4119607b1d29c7e7f48aa3a40067a0dfe693
                    - name: SERVER_LOCK_ALLOW_LIST
                      value: "66199319505543168"
                    - name: CHAT_SERVICE_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: CHAT_SERVICE_TOKEN
                          name: errbot-secret
                    - name: RIOT_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: RIOT_TOKEN
                          name: errbot-secret
                    - name: AWS_ACCESS_KEY_ID
                      valueFrom:
                        secretKeyRef:
                          key: AWS_ACCESS_KEY_ID
                          name: errbot-secret
                    - name: AWS_SECRET_ACCESS_KEY
                      valueFrom:
                        secretKeyRef:
                          key: AWS_SECRET_ACCESS_KEY
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_ID
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_ID
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_SECRET
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_SECRET
                          name: errbot-secret
                    - name: SENTRY
                      valueFrom:
                        secretKeyRef:
                          key: SENTRY
                          name: errbot-secret
                    - name: GEOLOCATION_KEY
                      valueFrom:
                        secretKeyRef:
                          key: GEOLOCATION_KEY
                          name: errbot-secret
          -         image: errbotacr.azurecr.io/errbot:c3e4d719750de127920e0a95b1508e0a9b0382a7
          +         image: errbotacr.azurecr.io/errbot:cb1c4119607b1d29c7e7f48aa3a40067a0dfe693
                    imagePullPolicy: Always
                    name: errbot
                    resources:
                      limits:
                        cpu: "1.4"
                        memory: 1.5Gi
                      requests:
                        cpu: "0.40"
                        memory: 200Mi
                    securityContext:
                      allowPrivilegeEscalation: false
                      capabilities:
                        drop:
                        - ALL
                      privileged: false
                      runAsNonRoot: true
                      runAsUser: 10001
        EOT
        # (11 unchanged attributes hidden)
    }

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

Changes to Outputs:
  ~ errbot_image_tag = "c3e4d719750de127920e0a95b1508e0a9b0382a7" -> "cb1c4119607b1d29c7e7f48aa3a40067a0dfe693"

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s, Workflow: ci

@github-actions
Copy link

Terraform Plan - aws - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.dynamodb_table_sparkle.aws_dynamodb_table.this[0]: Refreshing state... [id=sparkle]
module.dynamodb_table.aws_dynamodb_table.this[0]: Refreshing state... [id=remember]
module.dynamodb_table_tts.aws_dynamodb_table.this[0]: Refreshing state... [id=tts]
module.dynamodb_table_play.aws_dynamodb_table.this[0]: Refreshing state... [id=play]
module.dynamodb_table_loud.aws_dynamodb_table.this[0]: Refreshing state... [id=loud]
module.dynamodb_botdata.aws_dynamodb_table.this[0]: Refreshing state... [id=botdata]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/aws, Workflow: ci

Terraform Plan - k8s-cluster - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
azurerm_network_security_group.nsg: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/networkSecurityGroups/errbot_nsg]
azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet]
azurerm_container_registry.acr: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr]
azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_subnet_network_security_group_association.nsg_association: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_kubernetes_cluster.aks: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourcegroups/errbot/providers/Microsoft.ContainerService/managedClusters/errbot-k8s]
azurerm_role_assignment.role_acrpull: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr/providers/Microsoft.Authorization/roleAssignments/98ebabba-07cf-a90e-33da-d7cc741a3adc]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s-cluster, Workflow: ci

Terraform Plan - k8s - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.errbot.kubectl_manifest.errbot_namespace[0]: Refreshing state... [id=/api/v1/namespaces/errbot]
module.promtail.kubectl_manifest.promtail_configmap[0]: Refreshing state... [id=/api/v1/namespaces/default/configmaps/promtail-config]
module.errbot.kubectl_manifest.errbot_network_policy[0]: Refreshing state... [id=/apis/networking.k8s.io/v1/namespaces/errbot/networkpolicys/errbot-network-policy]
module.promtail.kubectl_manifest.promtail_deployment[3]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/promtail]
module.errbot.kubectl_manifest.errbot_secret[0]: Refreshing state... [id=/api/v1/namespaces/errbot/secrets/errbot-secret]
module.promtail.kubectl_manifest.promtail_deployment[1]: Refreshing state... [id=/api/v1/namespaces/default/serviceaccounts/promtail]
module.promtail.kubectl_manifest.promtail_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/default/daemonsets/promtail]
module.promtail.kubectl_manifest.promtail_deployment[2]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterroles/promtail]
module.errbot.kubectl_manifest.errbot_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/errbot/deployments/errbot]

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

Terraform will perform the following actions:

  # module.errbot.kubectl_manifest.errbot_deployment[0] will be updated in-place
  ~ resource "kubectl_manifest" "errbot_deployment" {
        id                      = "/apis/apps/v1/namespaces/errbot/deployments/errbot"
        name                    = "errbot"
      ~ yaml_body               = (sensitive value)
      ~ yaml_body_parsed        = <<-EOT
            apiVersion: apps/v1
            kind: Deployment
            metadata:
              labels:
                name: errbot
              name: errbot
              namespace: errbot
            spec:
              replicas: 1
              selector:
                matchLabels:
                  name: errbot
              strategy: {}
              template:
                metadata:
                  annotations:
                    seccompProfile.security.alpha.kubernetes.io/pod: runtime/default
                  labels:
                    name: errbot
                spec:
                  automountServiceAccountToken: false
                  containers:
                  - env:
                    - name: BOT_NAME
                      value: errbot
                    - name: BACKEND
                      value: Discord
                    - name: BOT_STATUS_MESSAGE
                      value: errbot.birki.io | .help
                    - name: BOT_PREFIX
                      value: .
                    - name: BOT_HOME_CHANNEL
                      value: errbot
                    - name: DOCS_URL
                      value: https://errbot.birki.io
                    - name: BOT_ADMINS
                      value: Birki#0001
                    - name: BOT_EXTRA_BACKEND_DIR
                      value: /app/backend/err-backend-discord
                    - name: DISABLE_EFT_CRON
                      value: "False"
                    - name: DISABLE_LEAGUE_CRON
                      value: "False"
                    - name: RIOT_REGION
                      value: na1
                    - name: RIOT_REGION_V5
                      value: AMERICAS
                    - name: IMAGE_TAG
          -           value: c3e4d719750de127920e0a95b1508e0a9b0382a7
          +           value: 359fc9b8b76d4822f42139e3b836763cba501255
                    - name: SERVER_LOCK_ALLOW_LIST
                      value: "66199319505543168"
                    - name: CHAT_SERVICE_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: CHAT_SERVICE_TOKEN
                          name: errbot-secret
                    - name: RIOT_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: RIOT_TOKEN
                          name: errbot-secret
                    - name: AWS_ACCESS_KEY_ID
                      valueFrom:
                        secretKeyRef:
                          key: AWS_ACCESS_KEY_ID
                          name: errbot-secret
                    - name: AWS_SECRET_ACCESS_KEY
                      valueFrom:
                        secretKeyRef:
                          key: AWS_SECRET_ACCESS_KEY
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_ID
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_ID
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_SECRET
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_SECRET
                          name: errbot-secret
                    - name: SENTRY
                      valueFrom:
                        secretKeyRef:
                          key: SENTRY
                          name: errbot-secret
                    - name: GEOLOCATION_KEY
                      valueFrom:
                        secretKeyRef:
                          key: GEOLOCATION_KEY
                          name: errbot-secret
          -         image: errbotacr.azurecr.io/errbot:c3e4d719750de127920e0a95b1508e0a9b0382a7
          +         image: errbotacr.azurecr.io/errbot:359fc9b8b76d4822f42139e3b836763cba501255
                    imagePullPolicy: Always
                    name: errbot
                    resources:
                      limits:
                        cpu: "1.4"
                        memory: 1.5Gi
                      requests:
                        cpu: "0.40"
                        memory: 200Mi
                    securityContext:
                      allowPrivilegeEscalation: false
                      capabilities:
                        drop:
                        - ALL
                      privileged: false
                      runAsNonRoot: true
                      runAsUser: 10001
        EOT
        # (11 unchanged attributes hidden)
    }

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

Changes to Outputs:
  ~ errbot_image_tag = "c3e4d719750de127920e0a95b1508e0a9b0382a7" -> "359fc9b8b76d4822f42139e3b836763cba501255"

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s, Workflow: ci

@github-actions
Copy link

❌ Linting Failed ❌

You will need to properly lint your code before CI can pass

Run the following script to lint your code:

script/lint

Or manually lint the repo from the command line:

$ pip install black && black .
...
All done! ✨ 🍰 ✨

If you are running manually, ensure you run the command from the root of the repo

Commit your changes and try again!

@github-actions
Copy link

❌ Linting Failed ❌

You will need to properly lint your code before CI can pass

Run the following script to lint your code:

script/lint

Or manually lint the repo from the command line:

$ pip install black && black .
...
All done! ✨ 🍰 ✨

If you are running manually, ensure you run the command from the root of the repo

Commit your changes and try again!

@github-actions
Copy link

❌ Linting Failed ❌

You will need to properly lint your code before CI can pass

Run the following script to lint your code:

script/lint

Or manually lint the repo from the command line:

$ pip install black && black .
...
All done! ✨ 🍰 ✨

If you are running manually, ensure you run the command from the root of the repo

Commit your changes and try again!

@github-actions
Copy link

❌ Linting Failed ❌

You will need to properly lint your code before CI can pass

Run the following script to lint your code:

script/lint

Or manually lint the repo from the command line:

$ pip install black && black .
...
All done! ✨ 🍰 ✨

If you are running manually, ensure you run the command from the root of the repo

Commit your changes and try again!

@github-actions
Copy link

Terraform Plan - aws - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.dynamodb_table_tts.aws_dynamodb_table.this[0]: Refreshing state... [id=tts]
module.dynamodb_botdata.aws_dynamodb_table.this[0]: Refreshing state... [id=botdata]
module.dynamodb_table_sparkle.aws_dynamodb_table.this[0]: Refreshing state... [id=sparkle]
module.dynamodb_eft_tracker.aws_dynamodb_table.this[0]: Refreshing state... [id=eftitemtracker]
module.dynamodb_table_play.aws_dynamodb_table.this[0]: Refreshing state... [id=play]
module.dynamodb_table_loud.aws_dynamodb_table.this[0]: Refreshing state... [id=loud]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/aws, Workflow: ci

Terraform Plan - k8s-cluster - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
azurerm_container_registry.acr: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr]
azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet]
azurerm_network_security_group.nsg: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/networkSecurityGroups/errbot_nsg]
azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_subnet_network_security_group_association.nsg_association: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.Network/virtualNetworks/errbot_vnet/subnets/errbot_default_subnet]
azurerm_kubernetes_cluster.aks: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourcegroups/errbot/providers/Microsoft.ContainerService/managedClusters/errbot-k8s]
azurerm_role_assignment.role_acrpull: Refreshing state... [id=/subscriptions/4321e9c7-b790-4d6b-a13c-2fac24800deb/resourceGroups/errbot/providers/Microsoft.ContainerRegistry/registries/errbotacr/providers/Microsoft.Authorization/roleAssignments/98ebabba-07cf-a90e-33da-d7cc741a3adc]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s-cluster, Workflow: ci

Terraform Plan - k8s - Production 🪐

  • Terraform Format and Style 🖌: success
  • Terraform Initialization ⚙️: success
  • Terraform Validation 🤖: success
  • Terraform Plan 📖: success
Show Plan
module.errbot.kubectl_manifest.errbot_namespace[1]: Refreshing state... [id=/apis/networking.k8s.io/v1/namespaces/errbot/networkpolicys/default-deny]
module.errbot.kubectl_manifest.errbot_namespace[0]: Refreshing state... [id=/api/v1/namespaces/errbot]
module.promtail.kubectl_manifest.promtail_deployment[1]: Refreshing state... [id=/api/v1/namespaces/default/serviceaccounts/promtail]
module.promtail.kubectl_manifest.promtail_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/default/daemonsets/promtail]
module.errbot.kubectl_manifest.errbot_network_policy[0]: Refreshing state... [id=/apis/networking.k8s.io/v1/namespaces/errbot/networkpolicys/errbot-network-policy]
module.promtail.kubectl_manifest.promtail_deployment[2]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterroles/promtail]
module.errbot.kubectl_manifest.errbot_secret[0]: Refreshing state... [id=/api/v1/namespaces/errbot/secrets/errbot-secret]
module.promtail.kubectl_manifest.promtail_deployment[3]: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/promtail]
module.errbot.kubectl_manifest.errbot_deployment[0]: Refreshing state... [id=/apis/apps/v1/namespaces/errbot/deployments/errbot]

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

Terraform will perform the following actions:

  # module.errbot.kubectl_manifest.errbot_deployment[0] will be updated in-place
  ~ resource "kubectl_manifest" "errbot_deployment" {
        id                      = "/apis/apps/v1/namespaces/errbot/deployments/errbot"
        name                    = "errbot"
      ~ yaml_body               = (sensitive value)
      ~ yaml_body_parsed        = <<-EOT
            apiVersion: apps/v1
            kind: Deployment
            metadata:
              labels:
                name: errbot
              name: errbot
              namespace: errbot
            spec:
              replicas: 1
              selector:
                matchLabels:
                  name: errbot
              strategy: {}
              template:
                metadata:
                  annotations:
                    seccompProfile.security.alpha.kubernetes.io/pod: runtime/default
                  labels:
                    name: errbot
                spec:
                  automountServiceAccountToken: false
                  containers:
                  - env:
                    - name: BOT_NAME
                      value: errbot
                    - name: BACKEND
                      value: Discord
                    - name: BOT_STATUS_MESSAGE
                      value: errbot.birki.io | .help
                    - name: BOT_PREFIX
                      value: .
                    - name: BOT_HOME_CHANNEL
                      value: errbot
                    - name: DOCS_URL
                      value: https://errbot.birki.io
                    - name: BOT_ADMINS
                      value: Birki#0001
                    - name: BOT_EXTRA_BACKEND_DIR
                      value: /app/backend/err-backend-discord
                    - name: DISABLE_EFT_CRON
                      value: "False"
                    - name: DISABLE_LEAGUE_CRON
                      value: "False"
                    - name: RIOT_REGION
                      value: na1
                    - name: RIOT_REGION_V5
                      value: AMERICAS
                    - name: IMAGE_TAG
          -           value: c3e4d719750de127920e0a95b1508e0a9b0382a7
          +           value: f337a0376c3488854713cd12230d5fcb1ea4b6c6
                    - name: SERVER_LOCK_ALLOW_LIST
                      value: "66199319505543168"
                    - name: CHAT_SERVICE_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: CHAT_SERVICE_TOKEN
                          name: errbot-secret
                    - name: RIOT_TOKEN
                      valueFrom:
                        secretKeyRef:
                          key: RIOT_TOKEN
                          name: errbot-secret
                    - name: AWS_ACCESS_KEY_ID
                      valueFrom:
                        secretKeyRef:
                          key: AWS_ACCESS_KEY_ID
                          name: errbot-secret
                    - name: AWS_SECRET_ACCESS_KEY
                      valueFrom:
                        secretKeyRef:
                          key: AWS_SECRET_ACCESS_KEY
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_ID
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_ID
                          name: errbot-secret
                    - name: SPOTIFY_CLIENT_SECRET
                      valueFrom:
                        secretKeyRef:
                          key: SPOTIFY_CLIENT_SECRET
                          name: errbot-secret
                    - name: SENTRY
                      valueFrom:
                        secretKeyRef:
                          key: SENTRY
                          name: errbot-secret
                    - name: GEOLOCATION_KEY
                      valueFrom:
                        secretKeyRef:
                          key: GEOLOCATION_KEY
                          name: errbot-secret
          -         image: errbotacr.azurecr.io/errbot:c3e4d719750de127920e0a95b1508e0a9b0382a7
          +         image: errbotacr.azurecr.io/errbot:f337a0376c3488854713cd12230d5fcb1ea4b6c6
                    imagePullPolicy: Always
                    name: errbot
                    resources:
                      limits:
                        cpu: "1.4"
                        memory: 1.5Gi
                      requests:
                        cpu: "0.40"
                        memory: 200Mi
                    securityContext:
                      allowPrivilegeEscalation: false
                      capabilities:
                        drop:
                        - ALL
                      privileged: false
                      runAsNonRoot: true
                      runAsUser: 10001
        EOT
        # (11 unchanged attributes hidden)
    }

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

Changes to Outputs:
  ~ errbot_image_tag = "c3e4d719750de127920e0a95b1508e0a9b0382a7" -> "f337a0376c3488854713cd12230d5fcb1ea4b6c6"

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pusher: @GrantBirki, Action: pull_request, Working Directory: terraform/k8s, Workflow: ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant