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

Verify deployment config after component create with flags #2499

Merged
merged 4 commits into from
Jan 13, 2020

Conversation

prietyc123
Copy link
Contributor

What type of PR is this?
/kind test

What does does this PR do / why we need it:

Verifies deployment config with flags.

Which issue(s) this PR fixes:

Fixes #2483

How to test changes / Special notes to the reviewer:
$ make test-cmd-cmp && make test-cmd-cmp-sub

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. kind/test labels Jan 8, 2020
@prietyc123
Copy link
Contributor Author

/retest

@prietyc123 prietyc123 changed the title [WIP]Verify deployment config after component create with flags Verify deployment config after component create with flags Jan 9, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Jan 9, 2020
@prietyc123
Copy link
Contributor Author

#2483 (comment)

@@ -181,6 +181,13 @@ func (oc *OcRunner) DescribeDc(dcName string, namespace string) string {
return strings.TrimSpace(describeInfo)
}

// GetDcPorts returns the ports of the component
func (oc *OcRunner) GetDcPorts(componentName string, appName string, project string) string {
session := CmdShouldPass(oc.path, "get", "dc", componentName+"-"+appName, "--namespace", project,
Copy link
Contributor

Choose a reason for hiding this comment

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

session -> ports

@@ -202,7 +209,7 @@ func (oc *OcRunner) MaxCPU(componentName string, appName string, project string)
return maxMemory
}

// MinCPU reuturns maximum cpu
// MinCPU reuturns minimum cpu
Copy link
Contributor

Choose a reason for hiding this comment

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

you resolved the maximum to minimum correctly but missed the reuturns 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@amitkrout
Copy link
Contributor

#2483 (comment)

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jan 9, 2020
@girishramnani
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: girishramnani

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. Required by Prow. label Jan 13, 2020
@openshift-merge-robot openshift-merge-robot merged commit 9b14330 into redhat-developer:master Jan 13, 2020
@rm3l rm3l added the estimated-size/S (5-10) Rough sizing for Epics. Less then one sprint of work for one person label Jun 18, 2023
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. Required by Prow. estimated-size/S (5-10) Rough sizing for Epics. Less then one sprint of work for one person lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If flags are used other than default then verify the local config along with the changes done in dc
6 participants