diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 68479d2ffbcda84314faef6617a95bad864c7d6c..1292b8aa3ca3834f14d1ac93914e3bb9462f80ca 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -13,27 +13,32 @@ jobs: - name: Checkout master uses: actions/checkout@v1 - name: Copy assets + env: + SOURCE_VER: ${{ 'v0.0.7' }} + KUSTOMIZE_VER: ${{ 'v0.0.7' }} + HELM_VER: ${{ 'v0.0.1' }} + NOTIFICATION_VER: ${{ 'v0.0.6' }} run: | # source-controller CRDs - curl https://raw.githubusercontent.com/fluxcd/source-controller/master/docs/api/source.md > docs/components/source/api.md - curl https://raw.githubusercontent.com/fluxcd/source-controller/master/docs/spec/v1alpha1/gitrepositories.md > docs/components/source/gitrepositories.md - curl https://raw.githubusercontent.com/fluxcd/source-controller/master/docs/spec/v1alpha1/helmrepositories.md > docs/components/source/helmrepositories.md - curl https://raw.githubusercontent.com/fluxcd/source-controller/master/docs/spec/v1alpha1/helmcharts.md > docs/components/source/helmcharts.md + curl "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/api/source.md" > docs/components/source/api.md + curl "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/spec/v1alpha1/gitrepositories.md" > docs/components/source/gitrepositories.md + curl "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/spec/v1alpha1/helmrepositories.md" > docs/components/source/helmrepositories.md + curl "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/spec/v1alpha1/helmcharts.md" > docs/components/source/helmcharts.md # kustomize-controller CRDs - curl https://raw.githubusercontent.com/fluxcd/kustomize-controller/master/docs/api/kustomize.md > docs/components/kustomize/api.md - curl https://raw.githubusercontent.com/fluxcd/kustomize-controller/master/docs/spec/v1alpha1/kustomization.md > docs/components/kustomize/kustomization.md + curl "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/api/kustomize.md" > docs/components/kustomize/api.md + curl "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/spec/v1alpha1/kustomization.md" > docs/components/kustomize/kustomization.md # helm-controller CRDs - curl https://raw.githubusercontent.com/fluxcd/helm-controller/master/docs/api/helmrelease.md > docs/components/helm/api.md - curl https://raw.githubusercontent.com/fluxcd/helm-controller/master/docs/spec/v2alpha1/helmreleases.md > docs/components/helm/helmreleases.md + curl "https://raw.githubusercontent.com/fluxcd/helm-controller/$HELM_VER/docs/api/helmrelease.md" > docs/components/helm/api.md + curl "https://raw.githubusercontent.com/fluxcd/helm-controller/$HELM_VER/docs/spec/v2alpha1/helmreleases.md" > docs/components/helm/helmreleases.md # notification-controller CRDs - curl https://raw.githubusercontent.com/fluxcd/notification-controller/master/docs/api/notification.md > docs/components/notification/api.md - curl https://raw.githubusercontent.com/fluxcd/notification-controller/master/docs/spec/v1alpha1/event.md > docs/components/notification/event.md - curl https://raw.githubusercontent.com/fluxcd/notification-controller/master/docs/spec/v1alpha1/alert.md > docs/components/notification/alert.md - curl https://raw.githubusercontent.com/fluxcd/notification-controller/master/docs/spec/v1alpha1/provider.md > docs/components/notification/provider.md - curl https://raw.githubusercontent.com/fluxcd/notification-controller/master/docs/spec/v1alpha1/receiver.md > docs/components/notification/receiver.md + curl "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/api/notification.md" > docs/components/notification/api.md + curl "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1alpha1/event.md" > docs/components/notification/event.md + curl "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1alpha1/alert.md" > docs/components/notification/alert.md + curl "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1alpha1/provider.md" > docs/components/notification/provider.md + curl "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1alpha1/receiver.md" > docs/components/notification/receiver.md # install script cp install/tk.sh docs/install.sh diff --git a/docs/dev-guides/source-watcher.md b/docs/dev-guides/source-watcher.md index 7788646f831b0b9d078dceefb0b6de85433b4369..4200a0c1c4b04f3805eca5c79aa782015c7a461c 100644 --- a/docs/dev-guides/source-watcher.md +++ b/docs/dev-guides/source-watcher.md @@ -131,8 +131,8 @@ type GitRepositoryWatcher struct { Scheme *runtime.Scheme } -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories,verbs=get;list;watch -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories/status,verbs=get +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories,verbs=get;list;watch +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories/status,verbs=get func (r *GitRepositoryWatcher) Reconcile(req ctrl.Request) (ctrl.Result, error) { // set timeout for the reconciliation diff --git a/docs/guides/helmreleases.md b/docs/guides/helmreleases.md index f035fa5058f0e7ea5f9bcc4bc54ff8fcb62f4ef0..e2dbbebfcb9a231e949d3b85ad6e3da2cd1503d9 100644 --- a/docs/guides/helmreleases.md +++ b/docs/guides/helmreleases.md @@ -27,7 +27,7 @@ By default, the source-controller watches for sources only in the untrusted sources from being registered by users. ```yaml -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: HelmRepository metadata: name: podinfo @@ -55,7 +55,7 @@ With the `HelmRepository` created, define a new `HelmRelease` to deploy the Helm chart from the repository: ```yaml -apiVersion: helm.fluxcd.io/v2alpha1 +apiVersion: helm.toolkit.fluxcd.io/v2alpha1 kind: HelmRelease metadata: name: podinfo @@ -105,7 +105,7 @@ the `gitops-system` to start receiving notifications about the Helm release: ```yaml -apiVersion: notification.fluxcd.io/v1alpha1 +apiVersion: notification.toolkit.fluxcd.io/v1alpha1 kind: Alert metadata: generation: 2 @@ -147,7 +147,7 @@ kubectl -n gitops-system create secret generic webhook-token \ When using [Harbor](https://goharbor.io/) as your Helm repository, you can define a receiver with: ```yaml -apiVersion: notification.fluxcd.io/v1alpha1 +apiVersion: notification.toolkit.fluxcd.io/v1alpha1 kind: Receiver metadata: name: helm-podinfo diff --git a/docs/guides/notifications.md b/docs/guides/notifications.md index 0030cd9dc54e9597e660aef5ef842c021ff10c69..c0ea8821f5abae9c068d8a670356e0d81dfc8959 100644 --- a/docs/guides/notifications.md +++ b/docs/guides/notifications.md @@ -30,7 +30,7 @@ it can be a Slack, Microsoft Teams, Discord or Rocket webhook URL. Create a notification provider for Slack by referencing the above secret: ```yaml -apiVersion: notification.fluxcd.io/v1alpha1 +apiVersion: notification.toolkit.fluxcd.io/v1alpha1 kind: Provider metadata: name: slack @@ -54,7 +54,7 @@ Elasticsearch, CloudWatch, Stackdriver, etc. Create an alert definition for all repositories and kustomizations: ```yaml -apiVersion: notification.fluxcd.io/v1alpha1 +apiVersion: notification.toolkit.fluxcd.io/v1alpha1 kind: Alert metadata: name: on-call-webapp diff --git a/docs/guides/sealed-secrets.md b/docs/guides/sealed-secrets.md index 9c312afccc4a963f0e39225267c40c4c971d8bfc..06b53fcbc7a0a43bc925dd2e5a769bfb4217caed 100644 --- a/docs/guides/sealed-secrets.md +++ b/docs/guides/sealed-secrets.md @@ -116,7 +116,7 @@ to the fleet repository. Helm repository manifest: ```yaml -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: HelmRepository metadata: name: stable @@ -129,7 +129,7 @@ spec: Helm release manifest: ```yaml -apiVersion: helm.fluxcd.io/v2alpha1 +apiVersion: helm.toolkit.fluxcd.io/v2alpha1 kind: HelmRelease metadata: name: sealed-secrets diff --git a/docs/guides/webhook-receivers.md b/docs/guides/webhook-receivers.md index 1eb60718ca40cf75a6fec76238544848d1a5971f..dd8df197b2c51cc5e1292b329e4ad81724f43105 100644 --- a/docs/guides/webhook-receivers.md +++ b/docs/guides/webhook-receivers.md @@ -58,7 +58,7 @@ watch kubectl -n gitops-system get svc/receiver Create a Git source pointing to a GitHub repository that you have control over: ```yaml -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: GitRepository metadata: name: webapp @@ -89,7 +89,7 @@ kubectl -n gitops-system create secret generic webhook-token \ Create a receiver for GitHub and specify the `GitRepository` object: ```yaml -apiVersion: notification.fluxcd.io/v1alpha1 +apiVersion: notification.toolkit.fluxcd.io/v1alpha1 kind: Receiver metadata: name: webapp diff --git a/go.mod b/go.mod index ce531461d6a44e8093c671c63823ea521826fc07..384b26e87cbf1bef1e6241e461fcf6a9b1581c64 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,10 @@ go 1.14 require ( github.com/blang/semver v3.5.1+incompatible - github.com/fluxcd/helm-controller v0.0.1-beta.4 - github.com/fluxcd/kustomize-controller v0.0.5 + github.com/fluxcd/helm-controller v0.0.1 + github.com/fluxcd/kustomize-controller v0.0.7 github.com/fluxcd/pkg v0.0.3 - github.com/fluxcd/source-controller v0.0.6 + github.com/fluxcd/source-controller v0.0.7 github.com/manifoldco/promptui v0.7.0 github.com/spf13/cobra v1.0.0 golang.org/x/net v0.0.0-20200602114024-627f9648deb9 // indirect diff --git a/go.sum b/go.sum index 2226952a38fe46955ef83639d9dc51f2d02684eb..ecd4d4885973b44a62b45e0ca5ccb204e95d6c2a 100644 --- a/go.sum +++ b/go.sum @@ -172,14 +172,14 @@ github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d h1:105gxyaGwC github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4= github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fluxcd/helm-controller v0.0.1-beta.4 h1:Go7ZGI91BY6A69Qp9TdJg3nufaahQCYhpj7Lum9oyKA= -github.com/fluxcd/helm-controller v0.0.1-beta.4/go.mod h1:asoN9pG8J0oQ9iXpkxNwvch1EKspus6RxH818ZYVo+4= -github.com/fluxcd/kustomize-controller v0.0.5 h1:jjBJT/UbblMaeQpYn5TjH/oXXnORO6C3Cka77bs9K3Q= -github.com/fluxcd/kustomize-controller v0.0.5/go.mod h1:1O78f9Qigs74BMxO/ThzLt5XGGQnwQPgzi+47ntie5M= +github.com/fluxcd/helm-controller v0.0.1 h1:vTAbVJbn6MX8YAMPQ+zeiGV2CwX75YjF1Yxd8veng7c= +github.com/fluxcd/helm-controller v0.0.1/go.mod h1:TLmobkvkb44l/R3J9MZsO0ht4nUX7plO5hWj4qTrhgI= +github.com/fluxcd/kustomize-controller v0.0.7 h1:bIBT5s6jnRjUEOp+AdgQNGpQBZHMBJV/Ak1bK1qtRSM= +github.com/fluxcd/kustomize-controller v0.0.7/go.mod h1:GVZs7l+0iI/N6ly0ftNzD5cZqJTmd+BPbsy445hklpU= github.com/fluxcd/pkg v0.0.3 h1:yhjtpGtD9LxFo8JtwTuUxJyFcX2wSSb0TPptIEpGSmA= github.com/fluxcd/pkg v0.0.3/go.mod h1:rtlppQU+9DNikyDZptLdOeTf+wBvQQiQQ/J113FPoeU= -github.com/fluxcd/source-controller v0.0.6 h1:8yBdy5ZQmM4jZWHDBDgysftZnC1mybyfkV7NRzCo5Kc= -github.com/fluxcd/source-controller v0.0.6/go.mod h1:XZR988ahVLjbqfe0EUq2Zl7bYH2NBly3u0n7DY5XtyU= +github.com/fluxcd/source-controller v0.0.7 h1:D17Le7bc+53deRA3EMJc9eB/uU2HqvkMCwILE5HRhPk= +github.com/fluxcd/source-controller v0.0.7/go.mod h1:XZR988ahVLjbqfe0EUq2Zl7bYH2NBly3u0n7DY5XtyU= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= diff --git a/manifests/bases/helm-controller/kustomization.yaml b/manifests/bases/helm-controller/kustomization.yaml index 526aa67e94565628515b4666d11e2fb0bf40c396..6d19cc94c3561a9b328849ea34e56810ea424bf9 100644 --- a/manifests/bases/helm-controller/kustomization.yaml +++ b/manifests/bases/helm-controller/kustomization.yaml @@ -1,8 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/fluxcd/helm-controller/config//crd?ref=v0.0.1-beta.4 -- github.com/fluxcd/helm-controller/config//manager?ref=v0.0.1-beta.4 +- github.com/fluxcd/helm-controller/config//crd?ref=v0.0.1 +- github.com/fluxcd/helm-controller/config//manager?ref=v0.0.1 patchesJson6902: - target: group: apps diff --git a/manifests/bases/kustomize-controller/kustomization.yaml b/manifests/bases/kustomize-controller/kustomization.yaml index bf3a721cbd6de911be16cdcc4e44ebf7dd6ef65f..8f1eaaeb2ae4c5cf11f786c11fab812440d620c4 100644 --- a/manifests/bases/kustomize-controller/kustomization.yaml +++ b/manifests/bases/kustomize-controller/kustomization.yaml @@ -1,8 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.6 -- github.com/fluxcd/kustomize-controller/config//manager?ref=v0.0.6 +- github.com/fluxcd/kustomize-controller/config//crd?ref=v0.0.7 +- github.com/fluxcd/kustomize-controller/config//manager?ref=v0.0.7 patchesJson6902: - target: group: apps diff --git a/manifests/bases/notification-controller/kustomization.yaml b/manifests/bases/notification-controller/kustomization.yaml index 59cb4e2a7b5598675d351e878f4b281953ff254b..432cbce02b832ba658a4751d733819e84c1a981d 100644 --- a/manifests/bases/notification-controller/kustomization.yaml +++ b/manifests/bases/notification-controller/kustomization.yaml @@ -1,5 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/fluxcd/notification-controller/config//crd?ref=v0.0.5 -- github.com/fluxcd/notification-controller/config//manager?ref=v0.0.5 +- github.com/fluxcd/notification-controller/config//crd?ref=v0.0.6 +- github.com/fluxcd/notification-controller/config//manager?ref=v0.0.6 diff --git a/manifests/bases/source-controller/kustomization.yaml b/manifests/bases/source-controller/kustomization.yaml index 20d1872520ba40946b633d69bb04b08b52021881..10c252092b3c656c5d481c42c18f06f62b5db90c 100644 --- a/manifests/bases/source-controller/kustomization.yaml +++ b/manifests/bases/source-controller/kustomization.yaml @@ -1,8 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/fluxcd/source-controller/config//crd?ref=v0.0.6 -- github.com/fluxcd/source-controller/config//manager?ref=v0.0.6 +- github.com/fluxcd/source-controller/config//crd?ref=v0.0.7 +- github.com/fluxcd/source-controller/config//manager?ref=v0.0.7 patchesJson6902: - target: group: apps diff --git a/manifests/rbac/role.yaml b/manifests/rbac/role.yaml index 83452c6062dbf9acd616d7bce1bfb3feb1a62873..dcd63727eee66ddfd39d179cb4a556a1f61b1fa5 100644 --- a/manifests/rbac/role.yaml +++ b/manifests/rbac/role.yaml @@ -3,16 +3,16 @@ kind: Role metadata: name: crd-controller rules: -- apiGroups: ['source.fluxcd.io'] +- apiGroups: ['source.toolkit.fluxcd.io'] resources: ['*'] verbs: ['*'] -- apiGroups: ['kustomize.fluxcd.io'] +- apiGroups: ['kustomize.toolkit.fluxcd.io'] resources: ['*'] verbs: ['*'] -- apiGroups: ['helm.fluxcd.io'] +- apiGroups: ['helm.toolkit.fluxcd.io'] resources: ['*'] verbs: ['*'] -- apiGroups: ['notification.fluxcd.io'] +- apiGroups: ['notification.toolkit.fluxcd.io'] resources: ['*'] verbs: ['*'] - apiGroups: