github.com/crossplane/upjet@v1.3.0/pkg/migration/testdata/plan/generated/sp_migration_plan.yaml (about)

     1  # SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  # Expected Parameters:
     6  #   Monolith provider name
     7  #   Configuration name
     8  #   Configuration registry/org
     9  #   Configuration package path
    10  #   Configuration example path
    11  #   Configuration version
    12  #   New configuration version
    13  
    14  spec:
    15    steps:
    16      - exec:
    17          command: sh
    18          args: -c 'kubectl get managed -o yaml > backup/managed-resources.yaml'
    19        name: backup-managed-resources
    20        type: Exec
    21  
    22      - exec:
    23          command: sh
    24          args: -c 'kubectl get composite -o yaml > backup/composite-resources.yaml'
    25        name: backup-composite-resources
    26        type: Exec
    27  
    28      - exec:
    29          command: sh
    30          args: -c 'kubectl get claim --all-namespaces -o yaml > backup/claim-resources.yaml'
    31        name: backup-claim-resources
    32        type: Exec
    33  
    34      - patch:
    35          type: merge
    36          files:
    37            - deletion-policy-orphan/sample-vpc.vpcs.fakesourceapi.yaml
    38        name: deletion-policy-orphan
    39        type: Patch
    40  
    41      # 'spec.revisionActivationPolicy= "Manual"'
    42      - apply:
    43          files:
    44            - create-new-sp/sample-smaller-provider.provider-family-aws.yaml
    45        name: create-new-sp
    46        type: Apply
    47  
    48      - exec:
    49          command: sh
    50          args: -c 'kubectl wait provider.pkg provider-family-aws --for condition=Healthy'
    51        name: wait-for-healthy
    52        type: Exec
    53  
    54      # 'spec.revisionActivationPolicy= "Manual"'
    55      - apply:
    56          files:
    57            - create-new-sp/sample-smaller-provider.provider-aws-ec2.yaml
    58        name: create-new-sp
    59        type: Apply
    60  
    61      - exec:
    62          command: sh
    63          args: -c 'kubectl wait provider.pkg provider-aws-ec2 --for condition=Healthy'
    64        name: wait-for-healthy
    65        type: Exec
    66  
    67      # 'spec.skipDependencyResolution= true'
    68      - patch:
    69          type: merge
    70          files:
    71            - skip-dependency-true/configuration.yaml
    72        name: skip-dependency-true
    73        type: Patch
    74  
    75      - apply:
    76          files:
    77            - remove-monolith-provider-dependency/lock.yaml
    78        name: remove-monolith-provider-dependency
    79        type: Apply
    80  
    81      - delete:
    82          options:
    83            finalizerPolicy: Remove
    84          resources:
    85            - group: pkg.crossplane.io
    86              kind: Provider
    87              name: upbound-provider-aws
    88              version: v1
    89        name: delete-monolith-provider
    90        type: Delete
    91  
    92      - patch:
    93          type: merge
    94          files:
    95            - revision-activation-automatic/sample-smaller-provider.provider-family-aws.yaml
    96        name: revision-activation-automatic
    97        type: Patch
    98  
    99      - exec:
   100          command: sh
   101          args: -c 'kubectl wait provider.pkg provider-family-aws --for condition=Installed'
   102        name: wait-for-installed
   103        type: Exec
   104  
   105      - patch:
   106          type: merge
   107          files:
   108            - revision-activation-automatic/sample-smaller-provider.provider-aws-ec2.yaml
   109        name: revision-activation-automatic
   110        type: Patch
   111  
   112      - exec:
   113          command: sh
   114          args: -c 'kubectl wait provider.pkg provider-aws-ec2 --for condition=Installed'
   115        name: wait-for-installed
   116        type: Exec
   117  
   118      - patch:
   119          type: merge
   120          files:
   121            - edit-configurations/platform-ref-aws.configurations.meta.pkg.crossplane.io_v1.yaml
   122        name: edit-configurations
   123        type: Patch
   124  
   125      - exec:
   126          command: sh
   127          args:
   128            - -c 'up xpkg build --name test-smaller-provider-migration.xpkg --package-root=package --examples-root=examples'
   129        name: build-configuration
   130        type: Exec
   131  
   132      - exec:
   133          command: sh
   134          args:
   135            - -c 'up xpkg push ${ORG}/${PLATFORM}:${TAG} -f package/test-smaller-provider-migration.xpkg'
   136        name: push-configuration
   137        type: Exec
   138  
   139      # 'spec.package="docker.io/myorg/test-smaller-provider-migration:v0.1.1"'
   140      - patch:
   141          type: merge
   142          files:
   143            - update-configuration/configuration.yaml
   144        name: update-configuration
   145        type: Patch
   146  
   147      # 'spec.skipDependencyResolution= false'
   148      - patch:
   149          type: merge
   150          files:
   151            - skip-dependency-false/configuration.yaml
   152        name: skip-dependency-false
   153        type: Patch
   154  
   155      - patch:
   156          type: merge
   157          files:
   158            - deletion-policy-delete/sample-vpc.vpcs.fakesourceapi.yaml
   159        name: deletion-policy-delete
   160        type: Patch
   161  
   162  version: 0.1.0