Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for kubemark #220

Merged

Conversation

ingvagabund
Copy link
Member

Still hacky since there is nothing rending the kubemark RBAC rules right know and we still don't have our own kubemark version of cloud controller manager that would remove NotReady nodes.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 21, 2019
@ingvagabund
Copy link
Member Author

/retest

2 similar comments
@ingvagabund
Copy link
Member Author

/retest

@ingvagabund
Copy link
Member Author

/retest

@ingvagabund
Copy link
Member Author

/retest


.PHONY: build-integration
build-integration: ## Build integration test binary
@echo -e "\033[32mBuilding integration test binary...\033[0m"
mkdir -p bin
$(DOCKER_CMD) go build $(GOGCFLAGS) -o bin/integration github.com/openshift/machine-api-operator/test/integration

.PHONY: deploy-kubemark
deploy-kubemark:
kustomize build config | kubectl apply -f -
Copy link
Contributor

Choose a reason for hiding this comment

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

Is kustomize necessary here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Suggesting to run it without the Makefile?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I'm suggesting to not use kustomize. Not sure what it's doing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just taking all manifests and pumping them into a single stream. Running just one command to deploy all manifests at once.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe kubectl can do that too; just do kubectl create -f ./

Copy link
Member Author

@ingvagabund ingvagabund Feb 27, 2019

Choose a reason for hiding this comment

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

The kustomize is (among other things) changing default namespace and patching manifests. Something simple kubectl can not do.

Copy link
Member

Choose a reason for hiding this comment

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

cluster-api, along with kubebuilder and so operator-sdk use kustomize. I'm in favour of using it here for manifest generation and customization

kustomization.yaml Outdated Show resolved Hide resolved
@enxebre
Copy link
Member

enxebre commented Feb 26, 2019

just a few nits, overall lgtm

@enxebre
Copy link
Member

enxebre commented Feb 26, 2019

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre

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

The pull request process is described here

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 26, 2019
@ingvagabund
Copy link
Member Author

/test integration

fi

status=$(kubectl get node $node -o json | jq '.status.conditions[] | select(.type=="Ready") | .status' --raw-output)
if [ $status != "Unknown" ]; then
Copy link
Contributor

@paulfantom paulfantom Feb 27, 2019

Choose a reason for hiding this comment

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

Could you invert it to increase readability?

if [ $status == "Unknown" ]; then
        echo "Deleting node $node"
        kubectl delete node $node
fi

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see any improvement in readibility compared to the current implementation. Can you more elaborate on that?

@ingvagabund
Copy link
Member Author

Just rebasing

@paulfantom
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2019
@ingvagabund
Copy link
Member Author

/retest

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2019
@openshift-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@ingvagabund ingvagabund added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@@ -29,6 +29,8 @@ const (
LibvirtProvider = Provider("libvirt")
Copy link
Member

Choose a reason for hiding this comment

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

we should add this case into config_test

@ingvagabund
Copy link
Member Author

/retest

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2019
@openshift-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 1, 2019
@ingvagabund
Copy link
Member Author

Pulling openshift/cluster-api-actuator-pkg#36 to see more from the failing autoscaler scales out test.

@ingvagabund ingvagabund added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2019
@ingvagabund
Copy link
Member Author

/test e2e-aws

@openshift-merge-robot openshift-merge-robot merged commit 050a65a into openshift:master Mar 1, 2019
@ingvagabund ingvagabund deleted the add-support-for-kubemark branch March 1, 2019 12:51
ingvagabund pushed a commit to ingvagabund/machine-api-operator that referenced this pull request Jul 11, 2019
…when-placement-is-nil

Check if placement is not nil before accessing AvailabilityZone field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. 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.

8 participants