Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fluxcd/kustomize-controller
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.2
Choose a base ref
...
head repository: fluxcd/kustomize-controller
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.13.0
Choose a head ref

Commits on Jun 8, 2021

  1. Add nightly builds workflow

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    58bba7c View commit details
  2. Merge pull request #361 from fluxcd/nightly-builds

    Add nightly builds workflow
    stefanprodan authored Jun 8, 2021
    Copy the full SHA
    7354b19 View commit details
  3. Upgrade to kustomize v4

    - Upgrade sigs.k8s.io/kustomize/api from v0.7.4 to v0.8.9
    - Upgrade sigs.k8s.io/cli-utils from v0.22.4 to v0.25.0
    - Pin sigs.k8s.io/kustomize/kyaml to v0.10.17 (cli-utils compat)
    - Pin k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd (cli-utils compat)
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    e5ee036 View commit details
  4. Workaround for kustomize build panic

    Serialize kustomize build runs to avoid kyaml OpenAPI concurrent map read/write panic
    kubernetes-sigs/kustomize#3659
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    0711908 View commit details
  5. Update kustomize to v4.1.3

    - make kstatus work with the latest version of kyaml by using a forked version of cli-utils fluxcd/cli-utils#1
    - update Kubernetes packages to v0.21.1
    - update controller-runtime to v0.9.0-beta.5 due to breaking changes in client-go v0.21.1
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    a97a62c View commit details
  6. Use ash2k's cli-utils PR

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    6ce22c9 View commit details
  7. Update source-controller/api to v0.13.0

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    848c6e9 View commit details
  8. Upgrade to kustomize v4

    - Upgrade sigs.k8s.io/kustomize/api from v0.7.4 to v0.8.9
    - Upgrade sigs.k8s.io/cli-utils from v0.22.4 to v0.25.0
    - Pin sigs.k8s.io/kustomize/kyaml to v0.10.17 (cli-utils compat)
    - Pin k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd (cli-utils compat)
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    aeef1e2 View commit details
  9. Update kustomize to v4.1.3

    - make kstatus work with the latest version of kyaml by using a forked version of cli-utils fluxcd/cli-utils#1
    - update Kubernetes packages to v0.21.1
    - update controller-runtime to v0.9.0-beta.5 due to breaking changes in client-go v0.21.1
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    4dd9c23 View commit details
  10. Update cli-utils to v0.25.1-0.20210603052138-670dee18a123

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    89cdab4 View commit details
  11. Update controller-runtime and controller-gen

    - Bump controller-runtime to v0.9.0
    - Bump controller-gen to v0.5.0
    - Use Environment.AddUser to generate the envtest cluster admin kubeconfig
    
    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    dce166f View commit details
  12. Update fluxcd/pkg/runtime to v0.12.0

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 8, 2021
    Copy the full SHA
    ce4445f View commit details

Commits on Jun 9, 2021

  1. Update kustomize/kyaml to v0.10.21

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 9, 2021
    Copy the full SHA
    2ada9f2 View commit details
  2. Use github.repository for nightly builds

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 9, 2021
    Copy the full SHA
    f6e0a23 View commit details
  3. Update source-controller/api to v0.14.0

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 9, 2021
    Copy the full SHA
    1202cc1 View commit details
  4. Merge pull request #343 from fluxcd/kustomize-v4

    Upgrade controller to Kustomize v4
    stefanprodan authored Jun 9, 2021
    Copy the full SHA
    30dd0c3 View commit details

Commits on Jun 11, 2021

  1. Implement generic patches in Kustomization

    Allow patching multiple resources instead of a single existing one as
    StrategicMerge & JSON6902 are forced to target existing named resources.
    
    Signed-off-by: Guillaume Le Biller <glebiller@Traveldoo.com>
    glebiller committed Jun 11, 2021
    Copy the full SHA
    b797eac View commit details
  2. Move the GC checksum from labels to annotations

    Signed-off-by: Jane Liu L <jane.l.liu@ericsson.com>
    JaneLiuL committed Jun 11, 2021
    Copy the full SHA
    6979dba View commit details
  3. Update pkg/apis/kustomize to v0.2.0

    Signed-off-by: Guillaume Le Biller <glebiller@Traveldoo.com>
    glebiller committed Jun 11, 2021
    Copy the full SHA
    14bce3c View commit details

Commits on Jun 14, 2021

  1. Merge pull request #362 from JaneLiuL/main

    Move the GC checksum from labels to annotations
    stefanprodan authored Jun 14, 2021
    Copy the full SHA
    2838997 View commit details
  2. Add missing ConfigMap RBAC

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 14, 2021
    Copy the full SHA
    f8cac4a View commit details
  3. Add test for GC disabling

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 14, 2021
    Copy the full SHA
    2d85398 View commit details
  4. Simplify staleness check

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 14, 2021
    Copy the full SHA
    24f78af View commit details
  5. Document the checksum annotation

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 14, 2021
    Copy the full SHA
    7772a1f View commit details
  6. Merge pull request #365 from fluxcd/gc-tests-docs

    Document GC checksum annotation
    stefanprodan authored Jun 14, 2021
    Copy the full SHA
    cdabadb View commit details
  7. Merge pull request #364 from Kissy/generic-patches

    Add support for in-line generic patches to Flux Kustomization API
    stefanprodan authored Jun 14, 2021
    Copy the full SHA
    6672928 View commit details
  8. Release v0.13.0

    Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
    stefanprodan committed Jun 14, 2021
    Copy the full SHA
    9d323aa View commit details
  9. Merge pull request #366 from fluxcd/release-v0.13.0

    Release v0.13.0
    stefanprodan authored Jun 14, 2021
    Copy the full SHA
    90ab001 View commit details
33 changes: 33 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: nightly
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

env:
REPOSITORY: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
buildkitd-flags: "--debug"
- name: Build multi-arch container image
uses: docker/build-push-action@v2
with:
push: false
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: |
${{ env.REPOSITORY }}:nightly
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,40 @@

All notable changes to this project are documented in this file.

## 0.13.0

**Release date:** 2021-06-14

This prerelease brings the controller on a par with **Kustomize v4**.
The Kubernetes and controller-runtime dependencies have been updated to match the Kubernetes 1.21 release.

The Kustomization API has been extended with support for generic in-line
[patches](https://github.com/fluxcd/kustomize-controller/blob/v0.13.0/docs/spec/v1beta1/kustomization.md##patches).

Starting with this version, the controller uses an annotation instead of a label
to keep track of removed manifests from source.
Please consult the [garbage collection docs](https://github.com/fluxcd/kustomize-controller/blob/v0.13.0/docs/spec/v1beta1/kustomization.md#garbage-collection)
for more details.

**Breaking changes**:
* Due to the removal of `hashicorp/go-getter` from Kustomize v4,
the set of URLs accepted by Kustomize in the `resources` filed
is reduced to only file system paths or values compatible with `git clone`.
This means you can no longer use resources from archives (zip, tgz, etc).
* Due to a [bug](https://github.com/kubernetes-sigs/kustomize/issues/3446)
in Kustomize v4, if you have **non-string keys** in your manifests,
the controller will fail with `json: unsupported type` error.

Features:
* Add support for in-line generic patches to Flux Kustomization API
[#364](https://github.com/fluxcd/kustomize-controller/pull/364)

Improvements:
* Upgrade controller to Kustomize v4
[#343](https://github.com/fluxcd/kustomize-controller/pull/343)
* Move the GC checksum from labels to annotations
[#362](https://github.com/fluxcd/kustomize-controller/pull/362)

## 0.12.2

**Release date:** 2021-06-02
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ Prerequisites:
* go >= 1.13
* kubebuilder >= 2.3
* kustomize >= 3.1
* kubectl >= 1.21

You can run the unit tests by simply doing

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
IMG ?= fluxcd/kustomize-controller:latest
# Produce CRDs that work back to Kubernetes 1.16
CRD_OPTIONS ?= crd:crdVersions=v1
SOURCE_VER ?= v0.13.2
SOURCE_VER ?= v0.14.0

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
@@ -107,7 +107,7 @@ ifeq (, $(shell which controller-gen))
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
cd $$CONTROLLER_GEN_TMP_DIR ;\
go mod init tmp ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0 ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
12 changes: 6 additions & 6 deletions api/go.mod
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@ module github.com/fluxcd/kustomize-controller/api
go 1.16

require (
github.com/fluxcd/pkg/apis/kustomize v0.0.1
github.com/fluxcd/pkg/apis/meta v0.9.0
github.com/fluxcd/pkg/runtime v0.11.0
k8s.io/apiextensions-apiserver v0.20.4
k8s.io/apimachinery v0.20.4
sigs.k8s.io/controller-runtime v0.8.3
github.com/fluxcd/pkg/apis/kustomize v0.2.0
github.com/fluxcd/pkg/apis/meta v0.10.0
github.com/fluxcd/pkg/runtime v0.12.0
k8s.io/apiextensions-apiserver v0.21.1
k8s.io/apimachinery v0.21.1
sigs.k8s.io/controller-runtime v0.9.0
)
Loading