Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
394bf188
Commit
394bf188
authored
9 years ago
by
jackgr
Browse files
Options
Download
Patches
Plain Diff
Update push and get-install.sh
parent
668948f6
main
Release
add-codeql
dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible
dependabot/go_modules/github.com/lib/pq-1.10.9
dependabot/go_modules/github.com/rubenv/sql-migrate-1.4.0
dependabot/go_modules/golang.org/x/crypto-0.9.0
dependabot/go_modules/golang.org/x/term-0.8.0
dependabot/go_modules/k8s.io/klog/v2-2.100.1
dev-v2
feat-v3/event-emitter-lua
kube-update-test
release-2.0
release-2.1
release-2.10
release-2.11
release-2.12
release-2.13
release-2.14
release-2.15
release-2.16
release-2.17
release-2.2
release-2.3
release-2.4
release-2.5
release-2.6
release-2.7
release-2.8
release-2.9
release-3.0
release-3.1
release-3.10
release-3.11
release-3.12
release-3.2
release-3.3
release-3.4
release-3.5
release-3.6
release-3.6.1
release-3.6.2
release-3.7
release-3.8
release-3.9
release-v3.0.0-beta.4
1.999.0
v3.12.0
v3.12.0-rc.1
v3.12.0-dev.1
v3.11.3
v3.11.2
v3.11.1
v3.11.0
v3.11.0-rc.2
v3.11.0-rc.1
v3.10.3
v3.10.2
v3.10.1
v3.10.0
v3.10.0-rc.1
v3.9.4
v3.9.3
v3.9.2
v3.9.1
v3.9.0
v3.9.0-rc.1
v3.8.2
v3.8.1
v3.8.0
v3.8.0-rc.2
v3.8.0-rc.1
v3.7.2
v3.7.1
v3.7.0
v3.7.0-rc.3
v3.7.0-rc.2
v3.7.0-rc.1
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.6.0-rc.1
v3.5.4
v3.5.3
v3.5.2
v3.5.1
v3.5.0
v3.5.0-rc.2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v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.2
v2.0.1
v2.0.0
v2.0.0-rc.2
v2.0.0-rc.1
v2.0.0-beta.2
v2.0.0-beta.1
v2.0.0-alpha.5
v2.0.0-alpha.4
v2.0.0-alpha.3
v2.0.0-alpha.2
v2.0.0-alpha.1
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
Makefile
+16
-7
Makefile
cmd/helm/Makefile
+39
-0
cmd/helm/Makefile
docs/pushing.md
+7
-14
docs/pushing.md
get-install.sh
+20
-8
get-install.sh
rootfs/include.mk
+4
-3
rootfs/include.mk
scripts/common.sh
+2
-2
scripts/common.sh
with
88 additions
and
34 deletions
+88
-34
Makefile
+
16
−
7
View file @
394bf188
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
GO_DIRS
?=
$(
shell glide nv
-x
)
GO_PKGS
?=
$(
shell glide nv
)
ROOTFS
:=
rootfs
CLIENT
:=
cmd/helm
.PHONY
:
info
.PHONY
:
info
info
:
info
:
$(
MAKE
)
-C
$(
ROOTFS
)
$@
$(
MAKE
)
-C
$(
ROOTFS
)
$@
...
@@ -21,11 +27,6 @@ ifndef GOPATH
...
@@ -21,11 +27,6 @@ ifndef GOPATH
$(
error No GOPATH
set
)
$(
error No GOPATH
set
)
endif
endif
GO_DIRS
?=
$(
shell glide nv
-x
)
GO_PKGS
?=
$(
shell glide nv
)
ROOTFS
:=
rootfs
.PHONY
:
build
.PHONY
:
build
build
:
gocheck
build
:
gocheck
@
scripts/build-go.sh
@
scripts/build-go.sh
...
@@ -55,8 +56,16 @@ quicktest: test-style
...
@@ -55,8 +56,16 @@ quicktest: test-style
go
test
$(
GO_PKGS
)
go
test
$(
GO_PKGS
)
.PHONY
:
push
.PHONY
:
push
push
:
build-static
push
:
push-server push-client
$(
MAKE
)
-C
$(
ROOTFS
)
$@
.PHONY
:
push-server
push-server
:
build-static
$(
MAKE
)
-C
$(
ROOTFS
)
push
.PHONY
:
push-client
push-client
:
gocheck
@
BUILD_TYPE
=
CROSS scripts/build-go.sh
$(
CLIENT
)
$(
MAKE
)
-C
$(
CLIENT
)
push
.PHONY
:
container
.PHONY
:
container
container
:
build-static
container
:
build-static
...
...
This diff is collapsed.
Click to expand it.
hack/dm-push.sh
→
cmd/helm/Makefile
100755 → 100644
+
39
−
0
View file @
394bf188
#!/usr/bin/env bash
#
# Copyright 2015 The Kubernetes Authors All rights reserved.
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
...
@@ -14,30 +12,28 @@
...
@@ -14,30 +12,28 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Run this from helm root to build and push the dm client plus
SHELL
:=
/bin/bash
# kubernetes install config into the publicly readable GCS bucket gs://get-dm.
#
# Must have EDIT permissions on the kubernetes-helm GCP project.
set
-euo
pipefail
DEFAULT_TAG
=
v1.2
DEFAULT_BINARY
=
${
GOPATH
}
/bin/dm
DEFAULT_PLATFORM
=
$(
uname
|
tr
'[:upper:]'
'[:lower:]'
)
DEFAULT_ARCH
=
$(
uname
-m
)
STORAGE_BUCKET
=
gs://get-dm
GOLANG_CROSSPLATFORMS
:=
darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64
ZIP
=
dm-
${
TAG
:-
DEFAULT_TAG
}
-
${
PLATFORM
:-
DEFAULT_PLATFORM
}
-
${
ARCH
:-
DEFAULT_ARCH
}
.zip
echo
"Building.
..
"
ROOT_DIR
:=
$(
abspath ./../
..
)
make
BIN_DIR
:=
$(
ROOT_DIR
)
/bin
echo
"Zipping
${
ZIP
}
..."
DEFAULT_BUCKET
:=
gs://get-helm
zip
-j
${
ZIP
}
${
BINARY
:-
DEFAULT_BINARY
}
install.yaml
STORAGE_BUCKET
?=
$(
DEFAULT_BUCKET
)
echo
"Uploading
${
ZIP
}
to
${
STORAGE_BUCKET
}
..."
DEFAULT_TAG
:=
git-
$(
shell git rev-parse
--short
HEAD
)
gsutil
cp
${
ZIP
}
${
STORAGE_BUCKET
}
TAG
?=
$(
DEFAULT_TAG
)
rm
${
ZIP
}
echo
"Done."
all
:
push
push
:
for
platform
in
${
GOLANG_CROSSPLATFORMS
};
do
\
echo
$$
platform
;
\
PLATFORM
=
$${
platform%/
*
}
&&
ARCH
=
$${
platform##
*
/
}
&&
\
BINARY
=
$${
PLATFORM
}
-
$${
ARCH
}
&&
\
ZIP
=
${
TAG
}
-helm-
$${
BINARY
}
.zip
&&
\
zip
-j
$${
ZIP
}
${
BIN_DIR
}
/
$${
BINARY
}
/helm
*
&&
\
gsutil
cp
$${
ZIP
}
${
STORAGE_BUCKET
}
&&
\
rm
$${
ZIP
}
;
\
done
This diff is collapsed.
Click to expand it.
docs/pushing.md
+
7
−
14
View file @
394bf188
# Pushing
DM
# Pushing
Helm
This details the requirements and steps for doing a
DM
push.
This details the requirements and steps for doing a
`helm`
push.
## Prerequisites
## Prerequisites
In order to build and push
DM
, you must:
In order to build and push
`helm`
, you must:
*
be an editor or owner on the GCP project
`kubernetes-helm`
*
be an editor or owner on the GCP project
`kubernetes-helm`
*
have
`docker`
installed and runnable in your current environment
*
have
`docker`
installed and runnable in your current environment
...
@@ -13,17 +13,10 @@ In order to build and push DM, you must:
...
@@ -13,17 +13,10 @@ In order to build and push DM, you must:
## Pushing
## Pushing
To build and push the service containers:
To build and push the service containers and the client binaries for all
supported platforms and architectures, checkout the branch and tag you intend to release,
and then run the following:
```
```
$ cd ${GOPATH}/src/github.com/kubernetes/helm
$ PROJECT=kubernetes-helm make push
$ make push
```
```
To push the client binaries, run the following for both Mac OS X and Linux
environments:
```
$ hack/dm-push.sh
```
This diff is collapsed.
Click to expand it.
get-install.sh
+
20
−
8
View file @
394bf188
...
@@ -13,15 +13,28 @@
...
@@ -13,15 +13,28 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Run this from the root of your clone of the kubernetes/helm repository.
# Be sure to checkout the release you want to install before running it,
# since it will attempt to pull the version from HEAD on the current branch.
set
-euo
pipefail
set
-euo
pipefail
DEFAULT_TAG
=
v1.2
DEFAULT_TAG
=
git-
$(
git rev-parse
--short
HEAD
)
DEFAULT_BINARY
=
${
GOPATH
}
/bin/helm
DEFAULT_PLATFORM
=
$(
uname
|
tr
'[:upper:]'
'[:lower:]'
)
DEFAULT_PLATFORM
=
$(
uname
|
tr
'[:upper:]'
'[:lower:]'
)
DEFAULT_ARCH
=
$(
uname
-m
)
DEFAULT_ARCH
=
$(
uname
-m
)
STORAGE_URL
=
http://get-dm.storage.googleapis.com
if
[[
"
${
DEFAULT_ARCH
}
"
==
x86_64
]]
;
then
ZIP
=
helm-
${
TAG
:-${
DEFAULT_TAG
}}
-
${
PLATFORM
:-${
DEFAULT_PLATFORM
}}
-
${
ARCH
:-${
DEFAULT_ARCH
}}
.zip
DEFAULT_ARCH
=
amd64
fi
PLATFORM
=
${
PLATFORM
:-${
DEFAULT_PLATFORM
}}
ARCH
=
${
ARCH
:-${
DEFAULT_ARCH
}}
TAG
=
${
TAG
:-${
DEFAULT_TAG
}}
BINARY
=
helm-
${
PLATFORM
}
-
${
ARCH
}
ZIP
=
${
TAG
}
-
${
BINARY
}
.zip
STORAGE_URL
=
http://get-helm.storage.googleapis.com
echo
"Downloading
${
ZIP
}
..."
echo
"Downloading
${
ZIP
}
..."
curl
-Ls
"
${
STORAGE_URL
}
/
${
ZIP
}
"
-O
curl
-Ls
"
${
STORAGE_URL
}
/
${
ZIP
}
"
-O
...
@@ -35,14 +48,13 @@ cat <<EOF
...
@@ -35,14 +48,13 @@ cat <<EOF
helm is now available in your current directory.
helm is now available in your current directory.
Before using it, please install the
Helm
service in your
Before using it, please install the
Deployment Manager
service in your
kubernetes cluster by running
kubernetes cluster by running
$
helm server install
$
./
helm server install
To get started, run:
To get started, run:
$
helm help
$
./
helm help
EOF
EOF
This diff is collapsed.
Click to expand it.
rootfs/include.mk
+
4
−
3
View file @
394bf188
...
@@ -14,10 +14,11 @@
...
@@ -14,10 +14,11 @@
# If you update this image please check the tag value before pushing.
# If you update this image please check the tag value before pushing.
DOCKER_REGISTRY
?=
gcr.io
DEFAULT_REGISTRY
:=
gcr.io
DOCKER_REGISTRY
?=
$(
DEFAULT_REGISTRY
)
# Legacy support for $PROJECT
DEFAULT_PROJECT
:=
kubernetes-helm
DOCKER_PROJECT
?=
$(
PROJECT
)
DOCKER_PROJECT
?=
$(
DEFAULT_
PROJECT
)
# Support both local and remote repos, and support no project.
# Support both local and remote repos, and support no project.
ifeq
($(DOCKER_PROJECT),)
ifeq
($(DOCKER_PROJECT),)
...
...
This diff is collapsed.
Click to expand it.
scripts/common.sh
+
2
−
2
View file @
394bf188
...
@@ -71,8 +71,8 @@ build_binary_cross() {
...
@@ -71,8 +71,8 @@ build_binary_cross() {
echo
"Building
${
target
}
"
echo
"Building
${
target
}
"
gox
-verbose
\
gox
-verbose
\
-ldflags
=
"
${
LDFLAGS
}
"
\
-ldflags
=
"
${
LDFLAGS
}
"
\
-os
=
"linux darwin"
\
-os
=
"linux darwin
freebsd windows
"
\
-arch
=
"amd64 386"
\
-arch
=
"amd64 386
arm
"
\
-output
=
"bin/{{.OS}}-{{.Arch}}/{{.Dir}}"
\
-output
=
"bin/{{.OS}}-{{.Arch}}/{{.Dir}}"
\
"
${
REPO
}
/
${
target
}
"
"
${
REPO
}
/
${
target
}
"
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets