Skip to content

Permit /go/src to be writeable by mere users#274

Merged
istio-testing merged 1 commit intoistio:masterfrom
sdake:buildtools/enable_istioio
Aug 16, 2019
Merged

Permit /go/src to be writeable by mere users#274
istio-testing merged 1 commit intoistio:masterfrom
sdake:buildtools/enable_istioio

Conversation

@sdake
Copy link
Copy Markdown
Member

@sdake sdake commented Aug 16, 2019

For the operator repository, it is necessary to enable a CONTAINER_OPTION of:

--mount type=volume,source=istio-installer-cache,destination="${GOPATH}/src/istio.io" \

This permits putting stuff in ${GOPATH}/src/istio.io. I'm not
convinced the operator repository is doing things correctly
here. This repo checks out a copy of istio.io/installer to
$GOPATH/src/istio.io/installer. This seems problematic as
it may overwrite the existing installer repository. In a
container based build, this simply creates a new docker volume
cache to store this information.

This pattern might be generalizable to other repositories,
in which case we can remove it as a COTAINER_OPTION. Time will tell
if other repositories (ab)use the ${GOPATH}/src directory.

For the operator repository, it is necessary to enable a CONTAINER_OPTION of:

```
--mount type=volume,source=istio-installer-cache,destination="${GOPATH}/src/istio.io" \
```

This permits putting stuff in ${GOPATH}/src/istio.io.  I'm not
convinced the operator repository is doing things correctly
here.  This repo checks out a copy of istio.io/installer to
$GOPATH/src/istio.io/installer.  This seems problematic as
it may overwrite the existing installer repository.  In a
container based build, this simply creates a new docker volume
cache to store this information.

This pattern might be generalizable to other repositories,
in which case we can remove it as a COTAINER_OPTION. Time will tell
if other repositories (ab)use the ${GOPATH}/src directory.
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Aug 16, 2019
@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 16, 2019
sdake pushed a commit to sdake/common-files that referenced this pull request Aug 16, 2019
We need to use the latest container image in the operator
repository to enable container based builds (finally).

Depends-On: istio/tools#274
sdake pushed a commit to sdake/operator that referenced this pull request Aug 16, 2019
Enable MacOS based container builds.

Depends-On: istio/common-files#30
Depends-On: istio/tools#274
@istio-testing istio-testing merged commit 77da3ec into istio:master Aug 16, 2019
istio-testing pushed a commit to istio/common-files that referenced this pull request Aug 16, 2019
We need to use the latest container image in the operator
repository to enable container based builds (finally).

Depends-On: istio/tools#274
istio-testing pushed a commit to istio/operator that referenced this pull request Aug 16, 2019
Enable MacOS based container builds.

Depends-On: istio/common-files#30
Depends-On: istio/tools#274
ostromart pushed a commit to ostromart/operator that referenced this pull request Aug 20, 2019
Enable MacOS based container builds.

Depends-On: istio/common-files#30
Depends-On: istio/tools#274
istio-testing pushed a commit to istio/operator that referenced this pull request Aug 21, 2019
* Eliminate vfsgen again. (#200)

* Fix build commmand for installing go-bindata (#202)

* Update makefile for proto related rules (#169)

* Update makefile for proto related rules to work for new system

* Address comments

* Add doc gen

* Upload updated pb.go files

* Update common

* Address comment

* Merge two install sections into one (#203)

* Merge two install sections into one

* Change section title

* Update to 2019-08-16 commonfiles (#207)

Enable MacOS based container builds.

Depends-On: istio/common-files#30
Depends-On: istio/tools#274

* support resource type for k8s mapping. (#206)

* support resource type for k8s mapping.

* apply comments.

* Fix reverse translation issue (#205)

* Fix reverse translation issue

* Address hpa spec issues

* Refactor

* Second version of refactor

* Address comment

* lint

* Changes to API for mesh config integration (#210)

* Changes to API for mesh config integration

* Review comments, add strategy

* Add strategy to k8s settings

* Fix unit tests

* update doc. (#212)

* update doc.

* apply comments.

* update link with recent source.

* Clean up values (#214)

* remove invalid and duplicated fields. (#217)
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jun 30, 2022
For the operator repository, it is necessary to enable a CONTAINER_OPTION of:

```
--mount type=volume,source=istio-installer-cache,destination="${GOPATH}/src/istio.io" \
```

This permits putting stuff in ${GOPATH}/src/istio.io.  I'm not
convinced the operator repository is doing things correctly
here.  This repo checks out a copy of istio.io/installer to
$GOPATH/src/istio.io/installer.  This seems problematic as
it may overwrite the existing installer repository.  In a
container based build, this simply creates a new docker volume
cache to store this information.

This pattern might be generalizable to other repositories,
in which case we can remove it as a COTAINER_OPTION. Time will tell
if other repositories (ab)use the ${GOPATH}/src directory.
Shuanglu pushed a commit to Shuanglu/istio-tools that referenced this pull request Jul 6, 2022
For the operator repository, it is necessary to enable a CONTAINER_OPTION of:

```
--mount type=volume,source=istio-installer-cache,destination="${GOPATH}/src/istio.io" \
```

This permits putting stuff in ${GOPATH}/src/istio.io.  I'm not
convinced the operator repository is doing things correctly
here.  This repo checks out a copy of istio.io/installer to
$GOPATH/src/istio.io/installer.  This seems problematic as
it may overwrite the existing installer repository.  In a
container based build, this simply creates a new docker volume
cache to store this information.

This pattern might be generalizable to other repositories,
in which case we can remove it as a COTAINER_OPTION. Time will tell
if other repositories (ab)use the ${GOPATH}/src directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants