Skip to content

Add link to GOPATH doc and fixup typo - #1

Merged
smarterclayton merged 1 commit into
openshift:masterfrom
jwforres:readme_updates
Aug 11, 2014
Merged

smarterclayton merged 1 commit into
openshift:masterfrom
jwforres:readme_updates

Conversation

@jwforres

Copy link
Copy Markdown
Member

No description provided.

smarterclayton added a commit that referenced this pull request Aug 11, 2014
Add link to GOPATH doc and fixup typo
@smarterclayton
smarterclayton merged commit f11c676 into openshift:master Aug 11, 2014
ironcladlou referenced this pull request in ironcladlou/origin Sep 25, 2014
Remove dead code from trigger controller
openshift-bot pushed a commit that referenced this pull request Dec 17, 2014
Update bindata to match an updated dependency
soltysh referenced this pull request in soltysh/origin Jan 9, 2015
Added startup handling for ImageChangeController
openshift-bot pushed a commit that referenced this pull request Jan 24, 2015
Separate asset bind and asset public addr
markturansky referenced this pull request in markturansky/origin Jan 26, 2015
Cast string to UID to fix rebase type change
openshift-bot pushed a commit that referenced this pull request Jan 28, 2015
Fix bindata.go for the less partials split
This was referenced Mar 4, 2015
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
Add README content and OWNERS file
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
* extract setup into function for reuse by other test cases

* minor style cleanup
openshift-merge-robot added a commit that referenced this pull request Feb 7, 2018
Automatic merge from submit-queue.

CLI: add support for deployments in oc status

@smarterclayton this is a long overdue...

current state:
```
$ oc status
In project My Project (myproject) on server https://127.0.0.1:8443

svc/ruby-deploy - 172.30.174.234:8080
  deployment/ruby-deploy deploys istag/ruby-deploy:latest <-
    bc/ruby-deploy source builds https://github.com/openshift/ruby-ex.git on istag/ruby-22-centos7:latest
      build #1 failed 5 hours ago - bbb6701: Merge pull request #18 from durandom/master (Ben Parees <[email protected]>)
    deployment #2 running for 4 hours - 0/1 pods (warning: 53 restarts)
    deployment #1 deployed 5 hours ago
```

TODO:

- [x] Add rollouts similar to deployment configs
- [x] Fix unit tests / Add unit tests
- [x] Deal with HPA
openshift-merge-robot added a commit that referenced this pull request Mar 19, 2018
…same-selector

Automatic merge from submit-queue (batch tested with PRs 18953, 18992).

group services w same selectors in `oc status`

Fixes #7503

**Before**
```bash
$ oc status
In project My Project (myproject) on server https://127.0.0.1:8443

svc/foo - foo.com
  dc/myapp deploys istag/myapp:latest <-
    bc/myapp source builds https://github.com/juanvallejo/myapp on openshift/nodejs:8
    deployment #1 deployed 7 minutes ago - 1 pod

svc/bar - 172.30.75.107:8080
  dc/myapp deploys istag/myapp:latest <-
    bc/myapp source builds https://github.com/juanvallejo/myapp on openshift/nodejs:8
    deployment #1 deployed 7 minutes ago - 1 pod
...
```

**After**
```bash
$ oc status
In project My Project (myproject) on server https://127.0.0.1:8443

svc/bar - 172.30.75.107:8080
svc/foo - foo.com
  dc/myapp deploys istag/myapp:latest <-
    bc/myapp source builds https://github.com/juanvallejo/myapp on openshift/nodejs:8
    deployment #1 deployed 7 hours ago - 1 pod
...
```

cc @soltysh @deads2k
openshift-merge-robot pushed a commit that referenced this pull request Nov 26, 2019
openshift-merge-bot Bot pushed a commit that referenced this pull request Jun 18, 2024
…717157796269-fbabcock

update upgrade window check and exception messages
amiskin94 added a commit to amiskin94/origin that referenced this pull request Sep 22, 2026
Critical fixes:
1. Copy non-.gz files to temp before chmod (Issue openshift#1 - MAJOR)
   - Previous code modified source file permissions
   - Now ALL files (both .gz and non-.gz) copied to temp
   - chmod only on temp copy, source preserved

2. Capture both Close() and Remove() errors (Issue openshift#3)
   - When Close() fails AND Remove() fails, report both
   - Clear error messages for debugging

3. Add copyFile() helper function
   - Copies file to temp with proper error handling
   - Named return for Close() error capture
   - Consistent with decompressGzipToFile pattern

Issue openshift#2 (TOCTOU race): Not addressed
- Acceptable risk: we're copying files, not modifying
- File changes between Stat and copy will fail safely
- No corruption risk since copy is read-only

All local binaries now have consistent handling:
- Both .gz and non-.gz copied to managed temp files
- Source files never modified
- All temp files tracked for cleanup
- All error paths handle cleanup properly

Addresses CodeRabbit review from 2026-09-22 07:26 AM.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants