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

Demonstration of PlanPreview feature #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nghialv
Copy link
Member

@nghialv nghialv commented Apr 7, 2022

This pull request is just to demonstrate the PlanPreview feature.

https://pipecd.dev/docs/user-guide/plan-preview/

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is NOT APPROVED. It will be approved when one of the following conditions is met:

  • Received a comment that contains /approve from an approver.
  • Received approval at review changes UI from at least 1 approvers.

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

PLAN_PREVIEW ACTIONS

Ran plan-preview against head commit 49862b4 of this pull request. PipeCD detected 2 updated applications and here are their plan results. Once this pull request got merged their deployments will be triggered to run as these estimations.

app: helm-remote-chart, env: example, kind: kubernetes

Sync strategy: QUICK_SYNC
Summary: 0 added manifests, 2 changed manifests, 0 deleted manifests

Details (Click me)

--- Last Deploy
+++ Head Commit

# 1. name="helm-remote-chart-helloworld", kind="Deployment", namespace="default", apiVersion="apps/v1"

@@ -5,8 +5,8 @@
     app.kubernetes.io/instance: helm-remote-chart
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/name: helloworld
-    app.kubernetes.io/version: v0.11.0
-    helm.sh/chart: helloworld-v0.11.0
+    app.kubernetes.io/version: v0.27.1
+    helm.sh/chart: helloworld-v0.27.1
   name: helm-remote-chart-helloworld
 spec:
   replicas: 1
@@ -23,11 +23,11 @@
       containers:
       - args:
         - server
-        image: gcr.io/pipecd/helloworld:v0.11.0
+        image: gcr.io/pipecd/helloworld:v0.27.1
         imagePullPolicy: IfNotPresent
         livenessProbe:
           httpGet:
-            path: /
+            path: /healthz
             port: admin
         name: helloworld
         ports:
@@ -36,7 +36,7 @@
           protocol: TCP
         readinessProbe:
           httpGet:
-            path: /
+            path: /healthz
             port: admin
         resources: {}
         securityContext: {}
# 2. name="helm-remote-chart-helloworld", kind="Service", namespace="default", apiVersion="v1"

@@ -5,8 +5,8 @@
     app.kubernetes.io/instance: helm-remote-chart
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/name: helloworld
-    app.kubernetes.io/version: v0.11.0
-    helm.sh/chart: helloworld-v0.11.0
+    app.kubernetes.io/version: v0.27.1
+    helm.sh/chart: helloworld-v0.27.1
   name: helm-remote-chart-helloworld
 spec:
   ports:

app: simple, env: example, kind: terraform

Sync strategy: QUICK_SYNC
Summary: 1 to add, 0 to change, 1 to destroy

Details (Click me)

Terraform will perform the following actions:

  # google_storage_bucket_object.object must be replaced
-/+ resource "google_storage_bucket_object" "object" {
      ~ content          = (sensitive value) # forces replacement
      ~ content_type     = "text/plain; charset=utf-8" -> (known after apply)
      ~ crc32c           = "q/GYqQ==" -> (known after apply)
      ~ detect_md5hash   = "ydxEf1G60kRGWDL3ezAglg==" -> "different hash" # forces replacement
      - event_based_hold = false -> null
      ~ id               = "pipecd-play-terraform-examples-simple/default.txt" -> (known after apply)
      + kms_key_name     = (known after apply)
      ~ md5hash          = "ydxEf1G60kRGWDL3ezAglg==" -> (known after apply)
      ~ media_link       = "https://storage.googleapis.com/download/storage/v1/b/pipecd-play-terraform-examples/o/simple%2Fdefault.txt?generation=1648021023536090&alt=media" -> (known after apply)
      - metadata         = {} -> null
        name             = "simple/default.txt"
      ~ output_name      = "simple/default.txt" -> (known after apply)
      ~ self_link        = "https://www.googleapis.com/storage/v1/b/pipecd-play-terraform-examples/o/simple%2Fdefault.txt" -> (known after apply)
      ~ storage_class    = "STANDARD" -> (known after apply)
      - temporary_hold   = false -> null
        # (1 unchanged attribute hidden)
    }

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

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

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.
1 to add, 0 to change, 1 to destroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants