Skip to content

Conversation

@cynepco3hahue
Copy link

@cynepco3hahue cynepco3hahue commented Apr 11, 2019

Machine-api-operator controller will watch FeatureGate resources and update the deployment accordingly.
Currently, the only feature that can be enabled via the FeatureGate object is machine-health-check. To enable it you will need to create FeatureGate object with the content:

apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
  name: machine-api-operator
spec:
  featureSet: "TechPreviewNoUpgrade"

TODO:

  • add unittests
  • adjust MachineHealthCheck e2e tests to create feature gate before the test and wait for controllers
  • codify creation of the MHC CRD, can be done under another PR that will follow this one

Artyom Lukianov added 3 commits April 11, 2019 12:45
Needed to watch and list FeaturesGate objects
- remove the owned-manifests from the Dockerfiles
- remove owned-manifests directory
- create the machine-api-operator controller via code
Machine-api-operator controller will watch FeatureGate resources and
update the deployment accordingly.

Currently the only one feature that can be enabled via the
FeatureGate object is machine-health-check. To enable it you will
need to create FeatureGate object with the content:
```yaml
apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
  name: machine-api-operator
spec:
  featureSet: "TechPreviewNoUpgrade"
```
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: ingvagabund

If they are not already assigned, you can assign the PR to them by writing /assign @ingvagabund in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 11, 2019
@ingvagabund
Copy link
Member

@cynepco3hahue thanks for the PR.
Can you break it into two? First one generating the deployment in the code and removing the yaml manifest. And second introducing the feature gate? Those two changes can be done separately and are easier to review.

@openshift-ci-robot
Copy link
Contributor

@cynepco3hahue: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/jenkins/integration 54642fa link /test integration
ci/prow/e2e-aws-operator 54642fa link /test e2e-aws-operator
ci/prow/e2e-aws 54642fa link /test e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

}
glog.V(4).Infof("Deployment %q is not ready. status: (replicas: %d, updated: %d, ready: %d, unavailable: %d)", d.Name, d.Status.Replicas, d.Status.UpdatedReplicas, d.Status.ReadyReplicas, d.Status.UnavailableReplicas)
return false, nil
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is nice, thanks! can we get it to a different PR?

@ingvagabund
Copy link
Member

Depends on #280

@cynepco3hahue
Copy link
Author

Not relevant anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants