Skip to content

Commit

Permalink
Move feed resource to putio.skynewz.dev group
Browse files Browse the repository at this point in the history
  • Loading branch information
SkYNewZ committed Sep 14, 2022
1 parent 47ffaa1 commit 469fd33
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resources:
namespaced: true
controller: true
domain: skynewz.dev
group: putio
kind: Feed
path: github.com/SkYNewZ/putio-operator/api/v1alpha1
version: v1alpha1
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v1alpha1 contains API Schema definitions for the v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=skynewz.dev
// +groupName=putio.skynewz.dev
package v1alpha1

import (
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects.
GroupVersion = schema.GroupVersion{Group: "skynewz.dev", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "putio.skynewz.dev", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: feeds.skynewz.dev
name: feeds.putio.skynewz.dev
spec:
group: skynewz.dev
group: putio.skynewz.dev
names:
kind: Feed
listKind: FeedList
Expand Down
2 changes: 1 addition & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/skynewz.dev_feeds.yaml
- bases/putio.skynewz.dev_feeds.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_feeds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: CERTIFICATE_NAMESPACE/CERTIFICATE_NAME
name: feeds.skynewz.dev
name: feeds.putio.skynewz.dev
2 changes: 1 addition & 1 deletion config/crd/patches/webhook_in_feeds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: feeds.skynewz.dev
name: feeds.putio.skynewz.dev
spec:
conversion:
strategy: Webhook
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/feed_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: feed-editor-role
rules:
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds
verbs:
Expand All @@ -17,7 +17,7 @@ rules:
- update
- watch
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/feed_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ metadata:
name: feed-viewer-role
rules:
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds
verbs:
- get
- list
- watch
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds/status
verbs:
Expand Down
6 changes: 3 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rules:
- list
- watch
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds
verbs:
Expand All @@ -33,13 +33,13 @@ rules:
- update
- watch
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds/finalizers
verbs:
- update
- apiGroups:
- skynewz.dev
- putio.skynewz.dev
resources:
- feeds/status
verbs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skynewz.dev/v1alpha1
apiVersion: putio.skynewz.dev/v1alpha1
kind: Feed
metadata:
name: for-all-mankind
Expand All @@ -16,7 +16,7 @@ spec:
name: putio-token

---
apiVersion: skynewz.dev/v1alpha1
apiVersion: putio.skynewz.dev/v1alpha1
kind: Feed
metadata:
name: house-of-the-dragons
Expand All @@ -34,7 +34,7 @@ spec:
name: putio-token

---
apiVersion: skynewz.dev/v1alpha1
apiVersion: putio.skynewz.dev/v1alpha1
kind: Feed
metadata:
name: star-trek-strange-new-worlds
Expand Down
6 changes: 3 additions & 3 deletions controllers/feed_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ type FeedReconciler struct {
Recorder record.EventRecorder
}

//+kubebuilder:rbac:groups=skynewz.dev,resources=feeds,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=skynewz.dev,resources=feeds/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=skynewz.dev,resources=feeds/finalizers,verbs=update
//+kubebuilder:rbac:groups=putio.skynewz.dev,resources=feeds,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=putio.skynewz.dev,resources=feeds/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=putio.skynewz.dev,resources=feeds/finalizers,verbs=update
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch

Expand Down

0 comments on commit 469fd33

Please sign in to comment.