Giter Site home page Giter Site logo

Comments (6)

 avatar commented on September 26, 2024

We tried a workaround to changing the api version from extensions to apps/v1 in templates/deployment.yaml and templates/ingress.yaml file and created the chart and tried installation but still getting failed with below error :

(lmctl-env) [root@puneteam-ocp44-ha5-inf vimdriver]# helm install os-vim-driver-2.1.0a2.issue51.tgz --name os-vim-driver --namespace lifecycle-manager -f custom-values.yml --tls --tiller-namespace $CS_NAMESPACE
Error: validation failed: unable to recognize "": no matches for kind "Ingress" in version "apps/v1"

from openstack-vim-driver.

 avatar commented on September 26, 2024

now i am getting this error
(lmctl-env) [root@puneteam-ocp44-ha5-inf vimdriver]# helm install os-vim-driver-2.1.0a2.issue51.tgz --name os-vim-driver --namespace lifecycle-manager -f custom-values.yml --tls --tiller-namespace $CS_NAMESPACE
Error: release os-vim-driver failed: Deployment.apps "os-vim-driver" is invalid: [spec.selector: Required value, spec.template.metadata.labels: Invalid value: map[string]string{"app":"os-vim-driver", "part-of":"lm"}: selector does not match template labels]

from openstack-vim-driver.

dvaccarosenna avatar dvaccarosenna commented on September 26, 2024

In later versions of Kubernetes deployments I think you need to explicitly add the labels as selectors (so they match):
So the deployment.yaml file needs:

spec:
  selector: # This is the new bit
    matchLabels:
      app: os-vim-driver
  template: # Template remains as it is
    metadata:
      labels:
        app: os-vim-driver
        part-of: lm
    spec:

from openstack-vim-driver.

dasuresh avatar dasuresh commented on September 26, 2024

Thanks @dvaccarosenna , we have installed as per above suggested instruction and its getting deployed now.

from openstack-vim-driver.

sglover avatar sglover commented on September 26, 2024

We need support for Kubernetes 1.13 onwards (to allow it to run in e.g. AIO as well as OCP) so some kind of switch could be used here e.g. by using
Capabilities.KubeVersion.Major and Capabilities.KubeVersion.Minor (see https://helm.sh/docs/chart_template_guide/builtin_objects/) to switch between the different apiVersions.

from openstack-vim-driver.

owen-lynch-ibm avatar owen-lynch-ibm commented on September 26, 2024

We need support for Kubernetes 1.13 onwards (to allow it to run in e.g. AIO as well as OCP) so some kind of switch could be used here e.g. by using
Capabilities.KubeVersion.Major and Capabilities.KubeVersion.Minor (see https://helm.sh/docs/chart_template_guide/builtin_objects/) to switch between the different apiVersions.

I made changes and tested on my AIO system (K8s 1.13) and it works as changed via PR 64
Also installs on OCP 4.5

from openstack-vim-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.