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

Commit

Permalink
Merge pull request #1610 from weaveworks/release/helm-0.5.2
Browse files Browse the repository at this point in the history
Release Helm operator 0.5.2
  • Loading branch information
hiddeco committed Dec 20, 2018
2 parents e1800f1 + 05c0c44 commit cefced8
Show file tree
Hide file tree
Showing 48 changed files with 1,065 additions and 342 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG-helmop.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## 0.5.2 (2018-12-20)

### Bug fixes

- Respect proxy env entries for git operations
[weaveworks/flux#1556](https://github.com/weaveworks/flux/pull/1556)
- Reimplement git timeout after accidentally removing it in `0.5.0`
[weaveworks/flux#1565](https://github.com/weaveworks/flux/pull/1565)
- Mark `--git-poll-interval` flag as deprecated
[weaveworks/flux#1565](https://github.com/weaveworks/flux/pull/1565)
- Only update chart dependencies if a `requirements.yaml` exists
weaveworks/flux{[#1561](https://github.com/weaveworks/flux/pull/1561), [#1606](https://github.com/weaveworks/flux/pull/1606)}

### Improvements

- `HelmRelease` now has a `timeout` field (defaults to `300s`),
giving you control over the amount of time it may take for Helm to
install or upgrade your chart
[weaveworks/flux#1566](https://github.com/weaveworks/flux/pull/1566)
- The Helm operator [flag docs](./site/helm-operator.md#setup-and-configuration)
have been updated
[weaveworks/flux#1594](https://github.com/weaveworks/flux/pull/1594)
- Added tests to ensure Helm dependencies update behaviour is always as
expected
[weaveworks/flux#1562](https://github.com/weaveworks/flux/pull/1562)

### Thanks

Thanks to @stephenmoloney, @sfrique, @mgazza, @stefanprodan, @squaremo,
@rade and @hiddeco for their contributions.

## 0.5.1 (2018-11-21)

### Bug fixes
Expand Down
158 changes: 155 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,167 @@
This is the changelog for the Flux daemon; the changelog for the Helm
operator is in [./CHANGELOG-helmop.md](./CHANGELOG-helmop.md).

## 1.x.x (unreleased)
## 1.8.2 (2018-12-19)

This holiday season release fixes a handful of annoyances, and adds an
experimental `--watch` flag for following the progress of `fluxctl
release`.

### Fixes

- Respect proxy env entries for git operations
[weaveworks/flux#1556][#1556]
- Only push the "sync tag" when the synced revision has changed,
avoiding spurious notifications [weaveworks/flux#1605][#1605]
- Return any sync errors for workloads in the ListControllers API
[weaveworks/flux#1521][#1521]

### Improvements

- The experimental flag `fluxctl release --watch` shows the rollout
progress of workloads in the release [weaveworks/flux#1525][#1525]
- The example manifests now include resource requests, to help
Kubernetes with scheduling [weaveworks/flux#1541][#1541]
- We have a more comprehensive [example git
repo](https://github.com/weaveworks/flux-get-started), which is
mentioned consistently throughout the docs
[weaveworks/flux#1527][#1527] and [weaveworks/flux#1540][#1540].
- Many clarifications and better structure in the docs
weaveworks/flux{[#1597], [#1595], [#1563], [#1555], [#1548],
[#1550], [#1549], [#1547], [#1508], [#1557]}
- Registry scanning produces far less log spam, and abandons scans as
soon as possible on being throttled [weaveworks/flux#1538][#1538]

### Thanks

Thanks to @Alien2150, @batpok, @bboreham, @brantb, @camilb,
@davidkarlsen, @dbluxo, @demikl, @dholbach, @dpgeekzero, @etos,
@hiddeco, @iandotmartin, @jakubbujny, @JeremyParker, @JimPruitt,
@johnraz, @kopachevsky, @kozejonaz, @leoblanc, @marccarre,
@marcincuber, @mgazza, @michalschott, @montyz, @ncabatoff, @nmaupu,
@Nogbit, @pdeveltere, @rampreethethiraj, @rndstr, @samisq, @scjudd,
@sfrique, @Smirl, @songsak2299, @squaremo, @stefanprodan,
@stephenmoloney, @Timer, @whereismyjetpack, @willnewby for
contributions in the period up to this release.

[#1508]: https://github.com/weaveworks/flux/pull/1508
[#1521]: https://github.com/weaveworks/flux/pull/1521
[#1525]: https://github.com/weaveworks/flux/pull/1525
[#1527]: https://github.com/weaveworks/flux/pull/1527
[#1538]: https://github.com/weaveworks/flux/pull/1538
[#1540]: https://github.com/weaveworks/flux/pull/1540
[#1541]: https://github.com/weaveworks/flux/pull/1541
[#1547]: https://github.com/weaveworks/flux/pull/1547
[#1548]: https://github.com/weaveworks/flux/pull/1548
[#1549]: https://github.com/weaveworks/flux/pull/1549
[#1550]: https://github.com/weaveworks/flux/pull/1550
[#1555]: https://github.com/weaveworks/flux/pull/1555
[#1556]: https://github.com/weaveworks/flux/pull/1556
[#1557]: https://github.com/weaveworks/flux/pull/1557
[#1563]: https://github.com/weaveworks/flux/pull/1563
[#1595]: https://github.com/weaveworks/flux/pull/1595
[#1597]: https://github.com/weaveworks/flux/pull/1597
[#1605]: https://github.com/weaveworks/flux/pull/1605

## 1.8.1 (2018-10-15)

This release completes the support for `HelmRelease` resources as used
by the Helm operator from v0.5 onwards.

**Note** This release bakes in `kubectl` v.1.11.3, while previous
releases used v1.9.0. Officially, `kubectl` is compatible with one
minor version before and one minor version after its own, i.e., now
v1.10-1.12. In practice, it may work fine for most purposes in a wider
range. If you run into difficulties relating to the `kubectl` version,
[contact us](README.md#help).

### Fixes

- Deal correctly with port numbers in images, when updating
(Flux)HelmRelease resources
[weaveworks/flux#1507](https://github.com/weaveworks/flux/pull/1507)
- Many corrections and updates to the documentation
[weaveworks/flux#1506](https://github.com/weaveworks/flux/pull/1506),
[weaveworks/flux#1502](https://github.com/weaveworks/flux/pull/1502),
[weaveworks/flux#1501](https://github.com/weaveworks/flux/pull/1501),
[weaveworks/flux#1498](https://github.com/weaveworks/flux/pull/1498),
[weaveworks/flux#1492](https://github.com/weaveworks/flux/pull/1492),
[weaveworks/flux#1490](https://github.com/weaveworks/flux/pull/1490),
[weaveworks/flux#1488](https://github.com/weaveworks/flux/pull/1488),
[weaveworks/flux#1489](https://github.com/weaveworks/flux/pull/1489)
- The metrics exported by the Flux daemon are now listed
[weaveworks/flux#1483](https://github.com/weaveworks/flux/pull/1483)

### Improvements

- `HelmRelease` resources are treated as workloads, so they can be
automated, and updated with `fluxctl release ...`
[weaveworks/flux#1382](https://github.com/weaveworks/flux/pull/1382)
- Container-by-container releases, as used by `fluxctl --interactive`,
now post detailed notifications to Weave Cloud
[weaveworks/flux#1472](https://github.com/weaveworks/flux/pull/1472)
and have better commit messages
[weaveworks/flux#1479](https://github.com/weaveworks/flux/pull/1479)
- Errors encountered when applying manifests are reported in the
ListControllers API (and may appear, in the future, in the `fluxctl
release` output)
[weaveworks/flux#1410](https://github.com/weaveworks/flux/pull/1410)

### Thanks

Thanks go to @Ashiroq, @JimPruitt, @MansM, @Morriz, @Smirl, @Timer,
@aytekk, @bzon, @camilb, @claude-leveille, @demikl, @dholbach,
@endrec, @foot, @hiddeco, @jrcole2884, @lelenanam, @marcusolsson,
@mellena1, @montyz, @olib963, @rade, @rndstr, @sfitts, @squaremo,
@stefanprodan, @whereismyjetpack for their contributions.

## 1.8.0 (2018-10-25)

This release includes a change to how image registries are scanned for
metadata, which should reduce the amount of polling, while being
sensitive to image metadata that changes frequently, as well as
respecting throttling.

### Fixes

- ..
- Better chance of a graceful shutdown on signals
[weaveworks/flux#1438](https://github.com/weaveworks/flux/pull/1438)
- Take more notice of possible errors
[weaveworks/flux#1432](https://github.com/weaveworks/flux/pull/1432)
and
[weaveworks/flux#1433](https://github.com/weaveworks/flux/pull/1433)
- Report the problematic string when failing to parse an image ref
[weaveworks/flux#1407](https://github.com/weaveworks/flux/pull/1433)

### Improvements

- ..
- Apply CustomResourceDefinition manifests ahead of (most) other kinds
of resource, since there will likely be other things that depend on
the definition (e.g., the custom resources themselves)
[weaveworks/flux#1429](https://github.com/weaveworks/flux/pull/1429)
- Add `--git-timeout` flag for setting the default timeout for git
operations (useful e.g., if you know `git clone` will take a long
time)
[weaveworks/flux#1416](https://github.com/weaveworks/flux/pull/1416)
- `fluxctl list-controllers` now has an alias `fluxctl
list-workloads` [weaveworks/flux#1425](https://github.com/weaveworks/flux/pull/1425)
- Adapt the sampling rate for image metadata, and back off when
throttled
[weaveworks/flux#1354](https://github.com/weaveworks/flux/pull/1354)
- The detailed rollout status of workloads is now reported in the API
(NB this is not yet used in the command-line tool)
[weaveworks/flux#1380](https://github.com/weaveworks/flux/pull/1380)

### Thanks

A warm thank-you to @AugustasV, @MansM, @Morriz, @MrYadro, @Timer,
@aaron-trout, @bhavin192, @brandon-bethke-neudesic, @brantb, @bzon,
@dbluxo, @dholbach, @dlespiau, @endrec, @hiddeco, @justdavid,
@justinbarrick, @kozejonaz, @lelenanam, @leoblanc, @marcemq,
@marcusolsson, @mellena1, @mt-inside, @ncabatoff, @pcfens, @rade,
@rndstr, @sc250024, @sfrique, @skurtzemann, @squaremo, @stefanprodan,
@stephenmoloney, @timthelion, @tlvu, @whereismyjetpack, @white-hat,
@wstrange for your contributions.

## 1.7.1 (2018-09-26)

Expand Down
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.PHONY: all release-bins clean realclean test integration-test check-generated

SUDO := $(shell docker info > /dev/null 2> /dev/null || echo "sudo")

TEST_FLAGS?=

include docker/kubectl.version
Expand Down Expand Up @@ -40,8 +41,8 @@ clean:
realclean: clean
rm -rf ./cache

test:
PATH=${PATH}:${PWD}/bin go test ${TEST_FLAGS} $(shell go list ./... | grep -v "^github.com/weaveworks/flux/vendor" | sort -u)
test: build/helm
PATH=${PWD}/bin:${PWD}/build:${PATH} go test ${TEST_FLAGS} $(shell go list ./... | grep -v "^github.com/weaveworks/flux/vendor" | sort -u)

build/.%.done: docker/Dockerfile.%
mkdir -p ./build/docker/$*
Expand All @@ -64,28 +65,30 @@ build/helm-operator: cmd/helm-operator/*.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $@ $(LDFLAGS) -ldflags "-X main.version=$(shell ./docker/image-tag)" ./cmd/helm-operator

build/kubectl: cache/kubectl-$(KUBECTL_VERSION)
mkdir -p build
cp cache/kubectl-$(KUBECTL_VERSION) $@
strip $@
chmod a+x $@

build/helm: cache/helm-$(HELM_VERSION)
mkdir -p build
cp cache/helm-$(HELM_VERSION) $@
strip $@
chmod a+x $@

cache/kubectl-$(KUBECTL_VERSION): docker/kubectl.version
mkdir -p cache
curl -L -o $(KUBECTL_TARGZ) "https://dl.k8s.io/$(KUBECTL_VERSION)/kubernetes-client-linux-amd64.tar.gz"
echo "$(KUBECTL_CHECKSUM) $(KUBECTL_TARGZ)" > "$(KUBECTL_TARGZ).checksum"
sha256sum -c $(KUBECTL_TARGZ).checksum
echo "$(KUBECTL_CHECKSUM) $(KUBECTL_TARGZ)" > "$(KUBECTL_TARGZ).checksum"
shasum -a 256 -c $(KUBECTL_TARGZ).checksum
tar -C ./cache -xzf $(KUBECTL_TARGZ) kubernetes/client/bin/kubectl
cp ./cache/kubernetes/client/bin/kubectl $@

cache/helm-$(HELM_VERSION): docker/helm.version
mkdir -p cache
curl -L -o $(HELM_TARGZ) "https://storage.googleapis.com/kubernetes-helm/helm-v$(HELM_VERSION)-linux-amd64.tar.gz"
echo "$(HELM_CHECKSUM) $(HELM_TARGZ)" > "$(HELM_TARGZ).checksum"
sha256sum -c "$(HELM_TARGZ).checksum"
echo "$(HELM_CHECKSUM) $(HELM_TARGZ)" > "$(HELM_TARGZ).checksum"
shasum -a 256 -c "$(HELM_TARGZ).checksum"
tar -C ./cache -xzf $(HELM_TARGZ) linux-amd64/helm
cp ./cache/linux-amd64/helm $@

Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We believe in GitOps:
- **You push code not containers.** Everything is controlled through
pull requests. There is no learning curve for new devs, they just use
your standard git PR process. The history in git allows you to recover
from any snapshot as you have an sequence of transactions. It is much
from any snapshot as you have a sequence of transactions. It is much
more transparent to make operational changes by pull request, e.g.
fix a production issue via a pull request instead of making changes to
the running system.
Expand Down Expand Up @@ -89,6 +89,16 @@ Get started by browsing through the documentation below:
- [Frequently encountered issues](https://github.com/weaveworks/flux/labels/FAQ)
- [Upgrading to Flux v1](/site/upgrading-to-1.0.md)

### Integrations

As Flux is Open Source, integrations are very straight-forward. Here are
a few popular ones you might want to check out:

- [Managing Helm releases the GitOps way](https://github.com/stefanprodan/gitops-helm)
- [OpenFaaS GitOps workflow with Flux](https://github.com/stefanprodan/openfaas-flux)
- [GitOps for Istio Canary deployments](https://github.com/stefanprodan/gitops-istio)
- [Fluxcloud to receive events from Flux](https://github.com/justinbarrick/fluxcloud)

## Community & Developer information

We welcome all kinds of contributions to Flux, be it code, issues you found,
Expand Down
1 change: 1 addition & 0 deletions api/v6/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type ControllerStatus struct {
ReadOnly ReadOnlyReason
Status string
Rollout cluster.RolloutStatus
SyncError string
Antecedent flux.ResourceID
Labels map[string]string
Automated bool
Expand Down
Loading

0 comments on commit cefced8

Please sign in to comment.