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

Kubectl command renaming (run-container to run and resize to scale) #8596

Merged
merged 2 commits into from May 27, 2015
Merged

Kubectl command renaming (run-container to run and resize to scale) #8596

merged 2 commits into from May 27, 2015

Conversation

andronat
Copy link
Contributor

For #8319

I am not sure about this line: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/kubectl/cmd/util/factory.go#L96

I also took the liberty to rename RunContainer in kubelet, if it is not needed I can discard it.

/cc @smarterclayton, @ghodss

@yujuhong
Copy link
Contributor

I think keeping the term "container" in some names is more clear to me. It makes it easier to tell whether the function is for a pod or for a container. Others may disagree though. /cc @vmarmol @yifan-gu

@yifan-gu
Copy link
Contributor

I think keeping the term "container" in some names is more clear to me. It makes it easier to tell whether the function is for a pod or for a container. Others may disagree though. /cc @vmarmol @yifan-gu

+1

@@ -104,11 +104,11 @@ Objects that contain both spec and status should not contain additional top-leve
##### Typical status properties

* **phase**: The phase is a simple, high-level summary of the phase of the lifecycle of an object. The phase should progress monotonically. Typical phase values are `Pending` (not yet fully physically realized), `Running` or `Active` (fully realized and active, but not necessarily operating correctly), and `Terminated` (no longer active), but may vary slightly for different types of objects. New phase values should not be added to existing objects in the future. Like other status fields, it must be possible to ascertain the lifecycle phase by observation. Additional details regarding the current phase may be contained in other fields.
* **conditions**: Conditions represent orthogonal observations of an object's current state. Objects may report multiple conditions, and new types of conditions may be added in the future. Condition status values may be `True`, `False`, or `Unknown`. Unlike the phase, conditions are not expected to be monotonic -- their values may change back and forth. A typical condition type is `Ready`, which indicates the object was believed to be fully operational at the time it was last probed. Conditions may carry additional information, such as the last probe time or last transition time.
* **conditions**: Conditions represent orthogonal observations of an object's current state. Objects may report multiple conditions, and new types of conditions may be added in the future. Condition status values may be `True`, `False`, or `Unknown`. Unlike the phase, conditions are not expected to be monotonic -- their values may change back and forth. A typical condition type is `Ready`, which indicates the object was believed to be fully operational at the time it was last probed. Conditions may carry additional information, such as the last probe time or last transition time.
Copy link
Member

Choose a reason for hiding this comment

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

Did anything significant change in this file? If not, please revert it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just empty spaces in the end of the line. should I discard them?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, please don't make insubstantial changes.

@bgrant0607
Copy link
Member

Please don't change kubelet. #8319 is only about kubectl.

@andronat
Copy link
Contributor Author

Dropping kubelet changes.

@dchen1107
Copy link
Member

Please update your pr title with more meaningful information. Thanks!

@andronat andronat changed the title Fixing #8319 Kubectl command renaming (run-container to run and resize to scale) May 21, 2015
@andronat
Copy link
Contributor Author

Put trailing spaces back and rebased to resolve conflicts

@k8s-bot
Copy link

k8s-bot commented May 21, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain @ixdy.

//0 means that the application is allowed to idle
MinAutoScaleCount int

//TargetSelector provides the scaleable target(s). Right now this is a ReplicationController
Copy link
Member

Choose a reason for hiding this comment

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

scalable

@bgrant0607
Copy link
Member

Great, thanks. LGTM. We need to wait for the e2e test to be fixed before we can merge, unfortunately.

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 22, 2015
@bgrant0607
Copy link
Member

ok to test

@andronat
Copy link
Contributor Author

any news on that? It is ready to merge, I rebased it to latest master

@thockin
Copy link
Member

thockin commented May 27, 2015

needs rebase

@andronat
Copy link
Contributor Author

done

thockin added a commit that referenced this pull request May 27, 2015
Kubectl command renaming (run-container to run and resize to scale)
@thockin thockin merged commit 0721377 into kubernetes:master May 27, 2015
@andronat andronat deleted the fix_8319 branch May 28, 2015 12:43
@bgrant0607 bgrant0607 added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 28, 2015
k8s-github-robot pushed a commit that referenced this pull request Aug 23, 2017
Automatic merge from submit-queue (batch tested with PRs 50806, 48789, 49922, 49935, 50438)

Remove deprecated kubectl command aliases

**What this PR does / why we need it**:
These command aliases have been deprecated for more than two years. It's time to remove them.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
ref: #8319 #6118 #8596

**Special notes for your reviewer**:
/sig cli

**Release note**:

```release-note
Remove deprecated kubectl command aliases `apiversions, clusterinfo, resize, rollingupdate, run-container, update`
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants