diff --git a/CHANGELOG.md b/CHANGELOG.md index 7551f1c1..496c7222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,6 +94,6 @@ and `HelmRepositoryReconciler`. This is the first alpha release of source controller. The controller is an implementation of the -[source.fluxcd.io/v1alpha1](https://github.com/fluxcd/source-controller/tree/master/docs/spec/v1alpha1) API +[source.fluxcd.io/v1alpha1](https://github.com/fluxcd/source-controller/tree/v0.0.1-alpha.1/docs/spec/v1alpha1) API based on the specifications described in the -[Source Controller Proposal](https://github.com/fluxcd/source-controller/tree/master/docs/spec). +[Source Controller Proposal](https://github.com/fluxcd/source-controller/tree/v0.0.1-alpha.1/docs/spec). diff --git a/PROJECT b/PROJECT index d910f5b6..0b8f5bd1 100644 --- a/PROJECT +++ b/PROJECT @@ -1,4 +1,4 @@ -domain: fluxcd.io +domain: toolkit.fluxcd.io repo: github.com/fluxcd/source-controller resources: - group: source diff --git a/README.md b/README.md index a3840486..df15d86b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The source-controller is a Kubernetes operator, specialised in artifacts acquisition from external sources such as Git and Helm repositories. The source-controller implements the -[source.fluxcd.io](https://github.com/fluxcd/source-controller/tree/master/docs/spec/v1alpha1) API +[source.toolkit.fluxcd.io](https://github.com/fluxcd/source-controller/tree/master/docs/spec/v1alpha1) API and is a core component of the [GitOps toolkit](https://toolkit.fluxcd.io).  diff --git a/api/v1alpha1/doc.go b/api/v1alpha1/doc.go index f043e59d..2f0db689 100644 --- a/api/v1alpha1/doc.go +++ b/api/v1alpha1/doc.go @@ -16,5 +16,5 @@ limitations under the License. // Package v1alpha1 contains API Schema definitions for the source v1alpha1 API group // +kubebuilder:object:generate=true -// +groupName=source.fluxcd.io +// +groupName=source.toolkit.fluxcd.io package v1alpha1 diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index e11f8ed1..76eb67c4 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -23,7 +23,7 @@ import ( var ( // GroupVersion is group version used to register these objects. - GroupVersion = schema.GroupVersion{Group: "source.fluxcd.io", Version: "v1alpha1"} + GroupVersion = schema.GroupVersion{Group: "source.toolkit.fluxcd.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} diff --git a/config/crd/bases/source.fluxcd.io_gitrepositories.yaml b/config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml similarity index 98% rename from config/crd/bases/source.fluxcd.io_gitrepositories.yaml rename to config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml index 0f43ee2b..2a339ee9 100644 --- a/config/crd/bases/source.fluxcd.io_gitrepositories.yaml +++ b/config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.3.0 creationTimestamp: null - name: gitrepositories.source.fluxcd.io + name: gitrepositories.source.toolkit.fluxcd.io spec: - group: source.fluxcd.io + group: source.toolkit.fluxcd.io names: kind: GitRepository listKind: GitRepositoryList diff --git a/config/crd/bases/source.fluxcd.io_helmcharts.yaml b/config/crd/bases/source.toolkit.fluxcd.io_helmcharts.yaml similarity index 98% rename from config/crd/bases/source.fluxcd.io_helmcharts.yaml rename to config/crd/bases/source.toolkit.fluxcd.io_helmcharts.yaml index 87fc2b28..23c2156a 100644 --- a/config/crd/bases/source.fluxcd.io_helmcharts.yaml +++ b/config/crd/bases/source.toolkit.fluxcd.io_helmcharts.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.3.0 creationTimestamp: null - name: helmcharts.source.fluxcd.io + name: helmcharts.source.toolkit.fluxcd.io spec: - group: source.fluxcd.io + group: source.toolkit.fluxcd.io names: kind: HelmChart listKind: HelmChartList diff --git a/config/crd/bases/source.fluxcd.io_helmrepositories.yaml b/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml similarity index 98% rename from config/crd/bases/source.fluxcd.io_helmrepositories.yaml rename to config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml index 6855594b..a1f157ba 100644 --- a/config/crd/bases/source.fluxcd.io_helmrepositories.yaml +++ b/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.3.0 creationTimestamp: null - name: helmrepositories.source.fluxcd.io + name: helmrepositories.source.toolkit.fluxcd.io spec: - group: source.fluxcd.io + group: source.toolkit.fluxcd.io names: kind: HelmRepository listKind: HelmRepositoryList diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index a724858e..b108deaf 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -1,8 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- bases/source.fluxcd.io_gitrepositories.yaml -- bases/source.fluxcd.io_helmrepositories.yaml -- bases/source.fluxcd.io_helmcharts.yaml +- bases/source.toolkit.fluxcd.io_gitrepositories.yaml +- bases/source.toolkit.fluxcd.io_helmrepositories.yaml +- bases/source.toolkit.fluxcd.io_helmcharts.yaml # +kubebuilder:scaffold:crdkustomizeresource - diff --git a/config/rbac/gitrepository_editor_role.yaml b/config/rbac/gitrepository_editor_role.yaml index a736627a..221a323e 100644 --- a/config/rbac/gitrepository_editor_role.yaml +++ b/config/rbac/gitrepository_editor_role.yaml @@ -5,7 +5,7 @@ metadata: name: gitrepository-editor-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories verbs: @@ -17,7 +17,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories/status verbs: diff --git a/config/rbac/gitrepository_viewer_role.yaml b/config/rbac/gitrepository_viewer_role.yaml index 46fa3efc..6d480316 100644 --- a/config/rbac/gitrepository_viewer_role.yaml +++ b/config/rbac/gitrepository_viewer_role.yaml @@ -5,7 +5,7 @@ metadata: name: gitrepository-viewer-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories verbs: @@ -13,7 +13,7 @@ rules: - list - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories/status verbs: diff --git a/config/rbac/helmchart_editor_role.yaml b/config/rbac/helmchart_editor_role.yaml index ef57f522..0ce40ee5 100644 --- a/config/rbac/helmchart_editor_role.yaml +++ b/config/rbac/helmchart_editor_role.yaml @@ -5,7 +5,7 @@ metadata: name: helmchart-editor-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts verbs: @@ -17,7 +17,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts/status verbs: diff --git a/config/rbac/helmchart_viewer_role.yaml b/config/rbac/helmchart_viewer_role.yaml index 469662d4..c39243f6 100644 --- a/config/rbac/helmchart_viewer_role.yaml +++ b/config/rbac/helmchart_viewer_role.yaml @@ -5,7 +5,7 @@ metadata: name: helmchart-viewer-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts verbs: @@ -13,7 +13,7 @@ rules: - list - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts/status verbs: diff --git a/config/rbac/helmrepository_editor_role.yaml b/config/rbac/helmrepository_editor_role.yaml index 45448649..2afb92b4 100644 --- a/config/rbac/helmrepository_editor_role.yaml +++ b/config/rbac/helmrepository_editor_role.yaml @@ -5,7 +5,7 @@ metadata: name: helmrepository-editor-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories verbs: @@ -17,7 +17,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories/status verbs: diff --git a/config/rbac/helmrepository_viewer_role.yaml b/config/rbac/helmrepository_viewer_role.yaml index 2a869465..68a3ae49 100644 --- a/config/rbac/helmrepository_viewer_role.yaml +++ b/config/rbac/helmrepository_viewer_role.yaml @@ -5,7 +5,7 @@ metadata: name: helmrepository-viewer-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories verbs: @@ -13,7 +13,7 @@ rules: - list - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories/status verbs: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 5e775f03..fc48ed79 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -7,7 +7,7 @@ metadata: name: manager-role rules: - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories verbs: @@ -19,7 +19,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - gitrepositories/status verbs: @@ -27,7 +27,7 @@ rules: - patch - update - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts verbs: @@ -39,7 +39,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts/finalizers verbs: @@ -47,7 +47,7 @@ rules: - patch - update - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmcharts/status verbs: @@ -55,7 +55,7 @@ rules: - patch - update - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories verbs: @@ -67,7 +67,7 @@ rules: - update - watch - apiGroups: - - source.fluxcd.io + - source.toolkit.fluxcd.io resources: - helmrepositories/status verbs: diff --git a/config/samples/source_v1alpha1_gitrepository.yaml b/config/samples/source_v1alpha1_gitrepository.yaml index 77011092..51e4222a 100644 --- a/config/samples/source_v1alpha1_gitrepository.yaml +++ b/config/samples/source_v1alpha1_gitrepository.yaml @@ -1,4 +1,4 @@ -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: GitRepository metadata: name: gitrepository-sample diff --git a/config/samples/source_v1alpha1_helmchart.yaml b/config/samples/source_v1alpha1_helmchart.yaml index 01daf960..14ff6880 100644 --- a/config/samples/source_v1alpha1_helmchart.yaml +++ b/config/samples/source_v1alpha1_helmchart.yaml @@ -1,4 +1,4 @@ -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: HelmChart metadata: name: helmchart-sample diff --git a/config/samples/source_v1alpha1_helmrepository.yaml b/config/samples/source_v1alpha1_helmrepository.yaml index 1549dae0..6a6be4f6 100644 --- a/config/samples/source_v1alpha1_helmrepository.yaml +++ b/config/samples/source_v1alpha1_helmrepository.yaml @@ -1,4 +1,4 @@ -apiVersion: source.fluxcd.io/v1alpha1 +apiVersion: source.toolkit.fluxcd.io/v1alpha1 kind: HelmRepository metadata: name: helmrepository-sample diff --git a/controllers/gitrepository_controller.go b/controllers/gitrepository_controller.go index 6b94d9d7..b1aa96fc 100644 --- a/controllers/gitrepository_controller.go +++ b/controllers/gitrepository_controller.go @@ -53,8 +53,8 @@ type GitRepositoryReconciler struct { ExternalEventRecorder *recorder.EventRecorder } -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories/status,verbs=get;update;patch func (r *GitRepositoryReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { ctx := context.Background() diff --git a/controllers/helmchart_controller.go b/controllers/helmchart_controller.go index ba0e8946..20c387b9 100644 --- a/controllers/helmchart_controller.go +++ b/controllers/helmchart_controller.go @@ -54,8 +54,8 @@ type HelmChartReconciler struct { ExternalEventRecorder *recorder.EventRecorder } -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmcharts,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmcharts/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=helmcharts,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=helmcharts/status,verbs=get;update;patch func (r *HelmChartReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { ctx := context.Background() diff --git a/controllers/helmrepository_controller.go b/controllers/helmrepository_controller.go index 507622b0..f7e3e719 100644 --- a/controllers/helmrepository_controller.go +++ b/controllers/helmrepository_controller.go @@ -55,9 +55,9 @@ type HelmRepositoryReconciler struct { ExternalEventRecorder *recorder.EventRecorder } -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmcharts/finalizers,verbs=get;update;patch +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=helmrepositories,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=helmrepositories/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=helmcharts/finalizers,verbs=get;update;patch func (r *HelmRepositoryReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { ctx := context.Background() diff --git a/docs/api/source.md b/docs/api/source.md index 80d3acdc..1c8b2867 100644 --- a/docs/api/source.md +++ b/docs/api/source.md @@ -2,20 +2,20 @@
Packages:
-Package v1alpha1 contains API Schema definitions for the source v1alpha1 API group
Resource Types: -GitRepository is the Schema for the gitrepositories API
apiVersionsource.fluxcd.io/v1alpha1
+source.toolkit.fluxcd.io/v1alpha1
specrefverifystatusHelmChart is the Schema for the helmcharts API
apiVersionsource.fluxcd.io/v1alpha1
+source.toolkit.fluxcd.io/v1alpha1
specstatusHelmRepository is the Schema for the helmrepositories API
apiVersionsource.fluxcd.io/v1alpha1
+source.toolkit.fluxcd.io/v1alpha1
specstatus(Appears on: -GitRepositoryStatus, -HelmChartStatus, -HelmRepositoryStatus) +GitRepositoryStatus, +HelmChartStatus, +HelmRepositoryStatus)
Artifact represents the output of a source synchronisation
(Appears on: -GitRepositorySpec) +GitRepositorySpec)
GitRepositoryRef defines the git ref used for pull and checkout operations.
(Appears on: -GitRepository) +GitRepository)
GitRepositorySpec defines the desired state of a Git repository.
refverify(Appears on: -GitRepository) +GitRepository)
GitRepositoryStatus defines the observed state of a Git repository.
conditionsartifact(Appears on: -GitRepositorySpec) +GitRepositorySpec)
GitRepositoryVerification defines the OpenPGP signature verification process.
(Appears on: -HelmChart) +HelmChart)
HelmChartSpec defines the desired state of a Helm chart.
(Appears on: -HelmChart) +HelmChart)
HelmChartStatus defines the observed state of the HelmChart.
conditionsartifact(Appears on: -HelmRepository) +HelmRepository)
HelmRepositorySpec defines the reference to a Helm repository.
(Appears on: -HelmRepository) +HelmRepository)
HelmRepositoryStatus defines the observed state of the HelmRepository.
conditionsartifactSource interface must be supported by all API types.
-(Appears on: -GitRepositoryStatus, -HelmChartStatus, -HelmRepositoryStatus) +GitRepositoryStatus, +HelmChartStatus, +HelmRepositoryStatus)
SourceCondition contains condition information for a source.