Giter Club home page Giter Club logo

Comments (5)

eytan-avisror avatar eytan-avisror commented on June 16, 2024

@darrendao
I think you need to update your CRD since we changed some types to pointers - there were CRD changes with this release.

Our nightly functional tests are passing here:
https://travis-ci.org/github/keikoproj/instance-manager/builds/667478575

Some of these types were made into pointers so that we can take advantage of omitempty
Otherwise for example you can end up with a spec that looks like this:

apiVersion: instancemgr.keikoproj.io/v1alpha1
kind: InstanceGroup
metadata:
  annotations:
  name: hello-managed
  namespace: instance-manager
spec:
  provisioner: eks-managed
  strategy:
    type: managed
  eks-cf: {}   <-- not omitted
  eks-managed:
    configuration:
      < .. >
    maxSize: 6
    minSize: 3

from instance-manager.

darrendao avatar darrendao commented on June 16, 2024

@eytan-avisror I got the error on a fresh K8S setup using the latest CRD provided in https://github.com/keikoproj/instance-manager/blob/master/docs/04_instance-manager.yaml (per instructions in the docs).

from instance-manager.

eytan-avisror avatar eytan-avisror commented on June 16, 2024

I see, our tests are running with this struct populated:

rollingUpdate:
      maxBatchSize: 1
      minInstancesInService: 1
      minSuccessfulInstancesPercent: 100
      pauseTime: PT2M

so it's possible that this is why we're not seeing it.
I guess what we should do here is set default values in the controller if this struct is unset - this is a required struct and we should probably also add it to the examples as it defines the configuration of the rollingUpdate, we should not be omitting it.

from instance-manager.

eytan-avisror avatar eytan-avisror commented on June 16, 2024

@darrendao let me know if you want to work on it, otherwise will prioritize this for next release

from instance-manager.

eytan-avisror avatar eytan-avisror commented on June 16, 2024

closing this since we will be deprecating eks-cf provisioner in favor of new one.
we will make sure this is addressed in the new provisioner via spec validation / setting defaults / validating webhooks.
This will be part of #50

from instance-manager.

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.