github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/live-plan/prune/config.yaml (about)

     1  # Copyright 2021 Google LLC
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #      http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  parallel: true
    16  
    17  kptArgs:
    18    - "live"
    19    - "plan"
    20  
    21  stdOut: |
    22    apiVersion: config.kubernetes.io/v1
    23    kind: ResourceList
    24    items:
    25    - apiVersion: config.google.com/v1alpha1
    26      kind: Plan
    27      metadata:
    28        name: plan
    29      spec:
    30        actions:
    31        - action: ApplyChanges
    32          kind: ConfigMap
    33          name: cm
    34          namespace: prune
    35          before:
    36            object:
    37              apiVersion: v1
    38              data:
    39                key: value
    40              kind: ConfigMap
    41              metadata:
    42                annotations:
    43                  config.k8s.io/owning-inventory: prune
    44                  kubectl.kubernetes.io/last-applied-configuration: |
    45                    {"apiVersion":"v1","data":{"key":"value"},"kind":"ConfigMap","metadata":{"annotations":{"config.k8s.io/owning-inventory":"prune"},"name":"cm","namespace":"prune"}}
    46                creationTimestamp: "<TIMESTAMP>"
    47                managedFields:
    48                - apiVersion: v1
    49                  fieldsType: FieldsV1
    50                  fieldsV1:
    51                    f:data:
    52                      .: {}
    53                      f:key: {}
    54                    f:metadata:
    55                      f:annotations:
    56                        .: {}
    57                        f:config.k8s.io/owning-inventory: {}
    58                        f:kubectl.kubernetes.io/last-applied-configuration: {}
    59                  manager: kubectl-client-side-apply
    60                  operation: Update
    61                  time: "<TIMESTAMP>"
    62                name: cm
    63                namespace: prune
    64                resourceVersion: "<RV>"
    65                uid: <UID>
    66          after:
    67            object:
    68              apiVersion: v1
    69              data:
    70                key: value
    71              kind: ConfigMap
    72              metadata:
    73                annotations:
    74                  config.k8s.io/owning-inventory: prune
    75                  kubectl.kubernetes.io/last-applied-configuration: |
    76                    {"apiVersion":"v1","data":{"key":"value"},"kind":"ConfigMap","metadata":{"annotations":{"config.k8s.io/owning-inventory":"prune"},"name":"cm","namespace":"prune"}}
    77                creationTimestamp: "<TIMESTAMP>"
    78                managedFields:
    79                - apiVersion: v1
    80                  fieldsType: FieldsV1
    81                  fieldsV1:
    82                    f:data:
    83                      f:key: {}
    84                    f:metadata:
    85                      f:annotations:
    86                        f:config.k8s.io/owning-inventory: {}
    87                  manager: kubectl
    88                  operation: Apply
    89                  time: "<TIMESTAMP>"
    90                - apiVersion: v1
    91                  fieldsType: FieldsV1
    92                  fieldsV1:
    93                    f:data:
    94                      .: {}
    95                      f:key: {}
    96                    f:metadata:
    97                      f:annotations:
    98                        .: {}
    99                        f:config.k8s.io/owning-inventory: {}
   100                        f:kubectl.kubernetes.io/last-applied-configuration: {}
   101                  manager: kubectl-client-side-apply
   102                  operation: Update
   103                  time: "<TIMESTAMP>"
   104                name: cm
   105                namespace: prune
   106                resourceVersion: "<RV>"
   107                uid: <UID>
   108        - action: PrunePruned
   109          apiVersion: apps
   110          kind: Deployment
   111          name: dep
   112          namespace: prune
   113          before:
   114            object:
   115              apiVersion: apps/v1
   116              kind: Deployment
   117              metadata:
   118                annotations:
   119                  config.k8s.io/owning-inventory: prune
   120                  kubectl.kubernetes.io/last-applied-configuration: |
   121                    {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{"config.k8s.io/owning-inventory":"prune"},"name":"dep","namespace":"prune"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"dep"}},"template":{"metadata":{"labels":{"app":"dep"}},"spec":{"containers":[{"image":"nginx:1.14.2","name":"nginx","ports":[{"containerPort":80}]}]}}}}
   122                creationTimestamp: "<TIMESTAMP>"
   123                generation: 1
   124                managedFields:
   125                - apiVersion: apps/v1
   126                  fieldsType: FieldsV1
   127                  fieldsV1:
   128                    f:metadata:
   129                      f:annotations:
   130                        .: {}
   131                        f:config.k8s.io/owning-inventory: {}
   132                        f:kubectl.kubernetes.io/last-applied-configuration: {}
   133                    f:spec:
   134                      f:progressDeadlineSeconds: {}
   135                      f:replicas: {}
   136                      f:revisionHistoryLimit: {}
   137                      f:selector: {}
   138                      f:strategy:
   139                        f:rollingUpdate:
   140                          .: {}
   141                          f:maxSurge: {}
   142                          f:maxUnavailable: {}
   143                        f:type: {}
   144                      f:template:
   145                        f:metadata:
   146                          f:labels:
   147                            .: {}
   148                            f:app: {}
   149                        f:spec:
   150                          f:containers:
   151                            k:{"name":"nginx"}:
   152                              .: {}
   153                              f:image: {}
   154                              f:imagePullPolicy: {}
   155                              f:name: {}
   156                              f:ports:
   157                                .: {}
   158                                k:{"containerPort":80,"protocol":"TCP"}:
   159                                  .: {}
   160                                  f:containerPort: {}
   161                                  f:protocol: {}
   162                              f:resources: {}
   163                              f:terminationMessagePath: {}
   164                              f:terminationMessagePolicy: {}
   165                          f:dnsPolicy: {}
   166                          f:restartPolicy: {}
   167                          f:schedulerName: {}
   168                          f:securityContext: {}
   169                          f:terminationGracePeriodSeconds: {}
   170                  manager: kubectl-client-side-apply
   171                  operation: Update
   172                  time: "<TIMESTAMP>"
   173                name: dep
   174                namespace: prune
   175                resourceVersion: "<RV>"
   176                uid: <UID>
   177              spec:
   178                progressDeadlineSeconds: 600
   179                replicas: 1
   180                revisionHistoryLimit: 10
   181                selector:
   182                  matchLabels:
   183                    app: dep
   184                strategy:
   185                  rollingUpdate:
   186                    maxSurge: 25%
   187                    maxUnavailable: 25%
   188                  type: RollingUpdate
   189                template:
   190                  metadata:
   191                    creationTimestamp: null
   192                    labels:
   193                      app: dep
   194                  spec:
   195                    containers:
   196                    - image: nginx:1.14.2
   197                      imagePullPolicy: IfNotPresent
   198                      name: nginx
   199                      ports:
   200                      - containerPort: 80
   201                        protocol: TCP
   202                      resources: {}
   203                      terminationMessagePath: /dev/termination-log
   204                      terminationMessagePolicy: File
   205                    dnsPolicy: ClusterFirst
   206                    restartPolicy: Always
   207                    schedulerName: default-scheduler
   208                    securityContext: {}
   209                    terminationGracePeriodSeconds: 30
   210              status: {}