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

feat: lb -> ingress #73

Merged
merged 3 commits into from
Jan 28, 2025
Merged

feat: lb -> ingress #73

merged 3 commits into from
Jan 28, 2025

Conversation

mulmuri
Copy link
Member

@mulmuri mulmuri commented Jan 28, 2025

No description provided.

@goboolean-io
Copy link
Contributor

Ran Plan for dir: projects/dev workspace: default

Show Output
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.harbor.helm_release.harbor will be updated in-place
~ resource "helm_release" "harbor" {
        id                         = "harbor"
      ~ metadata                   = [
          - {
              - app_version    = "2.11.0"
              - chart          = "harbor"
              - first_deployed = 1737982002
              - last_deployed  = 1737982002
              - name           = "harbor"
              - namespace      = "harbor"
              - notes          = <<-EOT
                    Please wait for several minutes for Harbor deployment to complete.
                    Then you should be able to visit the Harbor portal at http://core.harbor.domain
                    For more details, please visit https://github.com/goharbor/harbor
                EOT
              - revision       = 1
              - values         = jsonencode(
                    {
                      - configmap_checksum = "3050fabe2c98e5d93721f18f87a7a6407e46d62730e06869b1b839c6b58c440b"
                      - expose             = {
                          - tls  = {
                              - enabled = false
                            }
                          - type = "loadBalancer"
                        }
                      - externalURL        = "http://core.harbor.domain"
                    }
                )
              - version        = "1.15.0"
            },
        ] -> (known after apply)
        name                       = "harbor"
      ~ values                     = [
          ~ <<-EOT
                expose:
              -   type: loadBalancer
              +   type: ingress
                  tls:
              -     enabled: false
              - externalURL: http://core.harbor.domain
              +     enabled: true
              +   ingress:
              +     hosts:
              +       core: registry.goboolean.io
              + externalURL: http://registry.goboolean.io
            EOT,
        ]
        # (26 unchanged attributes hidden)

      - set {
          - name  = "configmap_checksum" -> null
          - value = "3050fabe2c98e5d93721f18f87a7a6407e46d62730e06869b1b839c6b58c440b" -> null
            # (1 unchanged attribute hidden)
        }
      + set {
          + name  = "configmap_checksum"
          + value = "616e2b2c9d76d1d2c10f281f89ee1b827d144d79e84f76035db9e0db64f33cea"
            # (1 unchanged attribute hidden)
        }
    }

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

  • ▶️ To apply this plan, comment:
    • atlantis apply -d projects/dev
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d projects/dev
Plan: 0 to add, 1 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@goboolean-io
Copy link
Contributor

Ran Plan for dir: projects/dev workspace: default

Show Output
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.harbor.helm_release.harbor will be updated in-place
~ resource "helm_release" "harbor" {
        id                         = "harbor"
      ~ metadata                   = [
          - {
              - app_version    = "2.11.0"
              - chart          = "harbor"
              - first_deployed = 1737982002
              - last_deployed  = 1737982002
              - name           = "harbor"
              - namespace      = "harbor"
              - notes          = <<-EOT
                    Please wait for several minutes for Harbor deployment to complete.
                    Then you should be able to visit the Harbor portal at http://core.harbor.domain
                    For more details, please visit https://github.com/goharbor/harbor
                EOT
              - revision       = 1
              - values         = jsonencode(
                    {
                      - configmap_checksum = "3050fabe2c98e5d93721f18f87a7a6407e46d62730e06869b1b839c6b58c440b"
                      - expose             = {
                          - tls  = {
                              - enabled = false
                            }
                          - type = "loadBalancer"
                        }
                      - externalURL        = "http://core.harbor.domain"
                    }
                )
              - version        = "1.15.0"
            },
        ] -> (known after apply)
        name                       = "harbor"
      ~ values                     = [
          ~ <<-EOT
                expose:
              -   type: loadBalancer
              +   type: ingress
                  tls:
              -     enabled: false
              - externalURL: http://core.harbor.domain
              +     enabled: true
              +   ingress:
              +     hosts:
              +       core: registry.goboolean.io
              + externalURL: https://registry.goboolean.io
            EOT,
        ]
        # (26 unchanged attributes hidden)

      - set {
          - name  = "configmap_checksum" -> null
          - value = "3050fabe2c98e5d93721f18f87a7a6407e46d62730e06869b1b839c6b58c440b" -> null
            # (1 unchanged attribute hidden)
        }
    }

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

  • ▶️ To apply this plan, comment:
    • atlantis apply -d projects/dev
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d projects/dev
Plan: 0 to add, 1 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@mulmuri
Copy link
Member Author

mulmuri commented Jan 28, 2025

atlantis apply

@goboolean-io
Copy link
Contributor

Ran Apply for dir: projects/dev workspace: default

Apply Error

Show Output
running "/usr/bin/terraform apply -input=false \"/root/.atlantis/repos/goboolean/infrastructure/73/default/projects/dev/default.tfplan\"" in "/root/.atlantis/repos/goboolean/infrastructure/73/default/projects/dev": exit status 1
module.harbor.helm_release.harbor: Modifying... [id=harbor]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 1m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 2m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 3m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 4m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 5m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 6m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 7m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 8m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m0s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m10s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m20s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m30s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m40s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 9m50s elapsed]
module.harbor.helm_release.harbor: Still modifying... [id=harbor, 10m0s elapsed]
╷
│ Error: context deadline exceeded
│ 
│   with module.harbor.helm_release.harbor,
│   on ../../modules/infra/harbor/main.tf line 1, in resource "helm_release" "harbor":
│    1: resource "helm_release" "harbor" {
│ 
╵

@goboolean-io
Copy link
Contributor

Ran Plan for dir: projects/dev workspace: default

Show Output
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # module.harbor.helm_release.harbor will be created
+ resource "helm_release" "harbor" {
      + atomic                     = false
      + chart                      = "harbor"
      + cleanup_on_fail            = false
      + create_namespace           = true
      + dependency_update          = false
      + disable_crd_hooks          = false
      + disable_openapi_validation = false
      + disable_webhooks           = false
      + force_update               = false
      + id                         = (known after apply)
      + lint                       = false
      + manifest                   = (known after apply)
      + max_history                = 0
      + metadata                   = (known after apply)
      + name                       = "harbor"
      + namespace                  = "harbor"
      + pass_credentials           = false
      + recreate_pods              = false
      + render_subchart_notes      = true
      + replace                    = false
      + repository                 = "https://helm.goharbor.io"
      + reset_values               = false
      + reuse_values               = false
      + skip_crds                  = false
      + status                     = "deployed"
      + timeout                    = 300
      + values                     = [
          + <<-EOT
                expose:
                  type: ingress
                  tls:
                    enabled: true
                  ingress:
                    hosts:
                      core: registry.goboolean.io
                externalURL: https://registry.goboolean.io
            EOT,
        ]
      + verify                     = false
      + version                    = "1.15.0"
      + wait                       = true
      + wait_for_jobs              = false
    }

  # module.namespace.kubernetes_namespace.harbor will be created
+ resource "kubernetes_namespace" "harbor" {
      + id                               = (known after apply)
      + wait_for_default_service_account = false

      + metadata {
          + generation       = (known after apply)
          + labels           = {
              + "name" = "harbor"
            }
          + name             = "harbor"
          + resource_version = (known after apply)
          + uid              = (known after apply)
        }
    }

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

  • ▶️ To apply this plan, comment:
    • atlantis apply -d projects/dev
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d projects/dev
Plan: 2 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@mulmuri
Copy link
Member Author

mulmuri commented Jan 28, 2025

atlantis apply

@goboolean-io
Copy link
Contributor

Ran Apply for dir: projects/dev workspace: default

Show Output
Acquiring state lock. This may take a few moments...
module.namespace.kubernetes_namespace.harbor: Creating...
module.namespace.kubernetes_namespace.harbor: Creation complete after 0s [id=harbor]
module.harbor.helm_release.harbor: Creating...
module.harbor.helm_release.harbor: Still creating... [10s elapsed]
module.harbor.helm_release.harbor: Still creating... [20s elapsed]
module.harbor.helm_release.harbor: Still creating... [30s elapsed]
module.harbor.helm_release.harbor: Still creating... [40s elapsed]
module.harbor.helm_release.harbor: Still creating... [50s elapsed]
module.harbor.helm_release.harbor: Still creating... [1m0s elapsed]
module.harbor.helm_release.harbor: Still creating... [1m10s elapsed]
module.harbor.helm_release.harbor: Still creating... [1m20s elapsed]
module.harbor.helm_release.harbor: Still creating... [1m30s elapsed]
module.harbor.helm_release.harbor: Still creating... [1m40s elapsed]
module.harbor.helm_release.harbor: Creation complete after 1m41s [id=harbor]

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

@goboolean-io
Copy link
Contributor

Automatically merging because all plans have been successfully applied.

@goboolean-io goboolean-io merged commit 6da8bd4 into main Jan 28, 2025
4 checks passed
@goboolean-io goboolean-io deleted the feat/harbor-ingress branch January 28, 2025 11:30
@goboolean-io
Copy link
Contributor

Locks and plans deleted for the projects and workspaces modified in this pull request:

  • dir: projects/dev workspace: default

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