Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-8905

DO280-687: ch1s3: "bases" field deprecated. Use "resources" in kustomization.yaml instead

XMLWordPrintable

    • DO280 Sprint 1

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)
      Workaround: Change from
      [student@workstation hello-openshift]$ cat base/kustomization.yaml
      kind: Kustomization
      bases:

      • hello-deployment.yaml

      To:
      [student@workstation hello-openshift]$ cat base/kustomization.yaml
      kind: Kustomization
      resources:

      • hello-deployment.yaml

      Description: The bases: field in a kustomization.yaml has been deprecated and should be replaced with resources:

      https://github.com/kubernetes-sigs/kustomize/blob/master/api/types/kustomization.go#L133

       Also https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/bases/

      The bases field was deprecated in v2.1.0. This field will never be removed from the kustomize.config.k8s.io/v1beta1 Kustomization API, but it will not be included in the kustomize.config.k8s.io/v1 Kustomization API. When Kustomization v1 is available, we will announce the deprecation of the v1beta1 version. There will be at least two releases between deprecation and removal of Kustomization v1beta1 support from the kustomize CLI, and removal itself will happen in a future major version bump

            mkong@redhat.com Manna Kong
            rhn-support-ablum Andrew Blum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: