Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Update build scripts (v0.2) #2692

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ BASE_PATH = $(ROOT:/src/github.com/kubernetes-sigs/service-catalog/=)
ORIG_GOPATH ?= $(shell go env GOPATH)
export GOPATH = $(BASE_PATH):$(ROOT)/vendor

MUTABLE_TAG ?= canary
MUTABLE_TAG ?= canary-v0.2
SERVICE_CATALOG_IMAGE = $(REGISTRY)service-catalog-$(ARCH):$(VERSION)
SERVICE_CATALOG_MUTABLE_IMAGE = $(REGISTRY)service-catalog-$(ARCH):$(MUTABLE_TAG)
USER_BROKER_IMAGE = $(REGISTRY)user-broker-$(ARCH):$(VERSION)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: catalog
name: catalog-v0.2
description: service-catalog API server and controller-manager helm chart
version: 0.2.1
2 changes: 1 addition & 1 deletion charts/catalog/README.md → charts/catalog-v0.2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For more information,
## Prerequisites

- Kubernetes 1.7+ with Beta APIs enabled
- `charts/catalog` already exists in your local machine
- `charts/catalog-v0.2` already exists in your local machine

## Installing the Chart

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}}
{{- printf "%s-catalog-v0.2" .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
2 changes: 1 addition & 1 deletion contrib/examples/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Prometheus. [This YAML](prometheus.yml) creates a Prometheus instance
preconfigured to gather Kubernetes platform and node metrics. If you deploy the
Service Catalog Controller Manager via Helm with the optional
`enablePrometheusScrape` parameter set to true (either edit the parameter in
[charts/catalog/values.yaml](../../../charts/catalog/values.yaml) or specify
[charts/catalog-v0.2/values.yaml](../../../charts/catalog-v0.2/values.yaml) or specify
"--set enablePrometheusScrape=true" when installing Catalog with helm), this configuration will direct Prometheus
to automatically scrape custom metrics exposed from Service Catalog as well.
Most any Prometheus configuration for Kubernetes (ie [Prometheus
Expand Down
Binary file modified contrib/hack/ci/assets/gcloud-key-file.json.enc
Binary file not shown.
6 changes: 2 additions & 4 deletions contrib/hack/ci/publish-helm-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ mkdir -p ${SVC_CATALOG_REPO_DIR}
pushd ${SVC_CATALOG_REPO_DIR}

gsutil cp gs://${SVC_CATALOG_BUCKET}/index.yaml .
for dir in `ls ../charts`;do
helm dep build ../charts/${dir}
helm package ../charts/${dir}
done
helm dep build ../charts/catalog-v0.2
helm package ../charts/catalog-v0.2
helm repo index --url ${SVC_CATALOG_REPO_URL} --merge ./index.yaml .
gsutil -m rsync ./ gs://${SVC_CATALOG_BUCKET}/

Expand Down
8 changes: 4 additions & 4 deletions contrib/hack/ci/publish-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ docker login -u "${QUAY_USERNAME}" -p "${QUAY_PASSWORD}" quay.io
pushd ${REPO_ROOT_DIR}

if [[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+[a-z]*(-(r|R)(c|C)[0-9]+)*$ ]]; then
shout "Pushing images with tags '${TRAVIS_TAG}' and 'latest'."
TAG_VERSION="${TRAVIS_TAG}" VERSION="${TRAVIS_TAG}" MUTABLE_TAG="latest" make release-push svcat-publish
elif [[ "${TRAVIS_BRANCH}" == "master" ]]; then
shout "Pushing images with default tags (git sha and 'canary')."
shout "Pushing images with tags '${TRAVIS_TAG}' and 'latest-v0.2'."
TAG_VERSION="${TRAVIS_TAG}" VERSION="${TRAVIS_TAG}" MUTABLE_TAG="latest-v0.2" make release-push svcat-publish
elif [[ "${TRAVIS_BRANCH}" == "v0.2" ]]; then
shout "Pushing images with default tags (git sha and 'canary-v0.2')."
make push svcat-publish
else
shout "Nothing to deploy"
Expand Down
2 changes: 1 addition & 1 deletion contrib/hack/ci/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install::cluster::service_catalog_latest() {
kind::load_image service-catalog:canary

shout "- Installing Service Catalog via helm chart from sources..."
helm install charts/catalog \
helm install charts/catalog-v0.2 \
--set imagePullPolicy=IfNotPresent \
--set image=service-catalog:canary \
--namespace=${SC_NAMESPACE} \
Expand Down
2 changes: 1 addition & 1 deletion contrib/hack/deploy-local-canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit

export REGISTRY=${REGISTRY:=$USER/}
make service-catalog-image service-catalog-push
helm upgrade --install catalog --namespace catalog charts/catalog \
helm upgrade --install catalog --namespace catalog charts/catalog-v0.2 \
--recreate-pods --force \
--set image=${REGISTRY}service-catalog:canary \
--set imagePullPolicy=Always \
Expand Down
6 changes: 3 additions & 3 deletions docs/devguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ functionality or introduce instability. See [FeatureGates](feature-gates.md)
for more details.

When adding a FeatureGate to Helm charts, define the variable
`fooEnabled` with a value of `false` in [values.yaml](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog/values.yaml). In the [API Server](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog/templates/apiserver-deployment.yaml) and [Controller](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog/templates/controller-manager-deployment.yaml)
`fooEnabled` with a value of `false` in [values.yaml](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog-v0.2/values.yaml). In the [API Server](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog-v0.2/templates/apiserver-deployment.yaml) and [Controller](https://github.com/kubernetes-sigs/service-catalog/blob/master/charts/catalog-v0.2/templates/controller-manager-deployment.yaml)
templates, add the new FeatureGate:
{% raw %}
```yaml
Expand Down Expand Up @@ -456,7 +456,7 @@ If someone wants to install a unreleased version, they must build it locally.

## Deploying to Kubernetes

Use the [`catalog` chart](../charts/catalog) to deploy the service
Use the [`catalog` chart](../charts/catalog-v0.2) to deploy the service
catalog into your cluster. The easiest way to get started is to deploy into a
cluster you regularly use and are familiar with. One of the choices you can
make when deploying the catalog is whether to make the API server store its
Expand All @@ -474,7 +474,7 @@ installed with the other standard installation options.
From the root of this repository:

```
helm install charts/catalog \
helm install charts/catalog-v0.2 \
--name catalog --namespace catalog \
--set image=quay.io/kubernetes-service-catalog/service-catalog:canary
```
Expand Down