Skip to content

Commit

Permalink
changed domain to netboxlabs.com and group to ipam. Adapted all group…
Browse files Browse the repository at this point in the history
…/domain occurences to be consistent with a fesh kubebuilder project
  • Loading branch information
faebr committed Sep 20, 2024
1 parent 0508ece commit 5d84484
Show file tree
Hide file tree
Showing 33 changed files with 161 additions and 161 deletions.
18 changes: 9 additions & 9 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: netbox.dev
domain: netboxlabs.com
layout:
- go.kubebuilder.io/v4
projectName: netbox-operator
Expand All @@ -12,35 +12,35 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: netbox.dev
group: netbox
domain: netboxlabs.com
group: ipam
kind: IpAddress
path: github.com/netbox-community/netbox-operator/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: netbox.dev
group: netbox
domain: netboxlabs.com
group: ipam
kind: IpAddressClaim
path: github.com/netbox-community/netbox-operator/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: netbox.dev
group: netbox
domain: netboxlabs.com
group: ipam
kind: Prefix
path: github.com/netbox-community/netbox-operator/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: netbox.dev
group: netbox
domain: netboxlabs.com
group: ipam
kind: PrefixClaim
path: github.com/netbox-community/netbox-operator/api/v1
version: v1
Expand Down
4 changes: 2 additions & 2 deletions api/v1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v1 contains API Schema definitions for the netbox v1 API group
// +kubebuilder:object:generate=true
// +groupName=netbox.dev
// +groupName=ipam.netboxlabs.com
package v1

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

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "netbox.dev", Version: "v1"}
GroupVersion = schema.GroupVersion{Group: "ipam.netboxlabs.com", Version: "v1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
"sigs.k8s.io/controller-runtime/pkg/webhook"

netboxv1 "github.com/netbox-community/netbox-operator/api/v1"
ipamv1 "github.com/netbox-community/netbox-operator/api/v1"
"github.com/netbox-community/netbox-operator/internal/controller"
//+kubebuilder:scaffold:imports
)
Expand All @@ -53,7 +53,7 @@ var (
func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(netboxv1.AddToScheme(scheme))
utilruntime.Must(ipamv1.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme
}

Expand Down Expand Up @@ -110,7 +110,7 @@ func main() {
WebhookServer: webhookServer,
HealthProbeBindAddress: probeAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "9a39d07a.netbox.dev",
LeaderElectionID: "9a39d07a.netboxlabs.com",
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
// when the Manager ends. This requires the binary to immediately end when the
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: ipaddressclaims.netbox.dev
name: ipaddressclaims.ipam.netboxlabs.com
spec:
group: netbox.dev
group: ipam.netboxlabs.com
names:
kind: IpAddressClaim
listKind: IpAddressClaimList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: ipaddresses.netbox.dev
name: ipaddresses.ipam.netboxlabs.com
spec:
group: netbox.dev
group: ipam.netboxlabs.com
names:
kind: IpAddress
listKind: IpAddressList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: prefixclaims.netbox.dev
name: prefixclaims.ipam.netboxlabs.com
spec:
group: netbox.dev
group: ipam.netboxlabs.com
names:
kind: PrefixClaim
listKind: PrefixClaimList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: prefixes.netbox.dev
name: prefixes.ipam.netboxlabs.com
spec:
group: netbox.dev
group: ipam.netboxlabs.com
names:
kind: Prefix
listKind: PrefixList
Expand Down
8 changes: 4 additions & 4 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/netbox.dev_ipaddresses.yaml
- bases/netbox.dev_ipaddressclaims.yaml
- bases/netbox.dev_prefixes.yaml
- bases/netbox.dev_prefixclaims.yaml
- bases/ipam.netboxlabs.com_ipaddresses.yaml
- bases/ipam.netboxlabs.com_ipaddressclaims.yaml
- bases/ipam.netboxlabs.com_prefixes.yaml
- bases/ipam.netboxlabs.com_prefixclaims.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patches:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ipaddress_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: ipaddress-editor-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddresses
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddresses/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ipaddress_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: ipaddress-viewer-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddresses
verbs:
- get
- list
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddresses/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ipaddressclaim_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: ipaddressclaim-editor-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddressclaims
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddressclaims/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ipaddressclaim_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: ipaddressclaim-viewer-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddressclaims
verbs:
- get
- list
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- ipaddressclaims/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/prefix_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
name: prefix-editor-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixes
verbs:
Expand All @@ -20,7 +20,7 @@ rules:
- update
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixes/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/prefix_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ metadata:
name: prefix-viewer-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixes
verbs:
- get
- list
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixes/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/prefixclaim_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
name: prefixclaim-editor-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixclaims
verbs:
Expand All @@ -20,7 +20,7 @@ rules:
- update
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixclaims/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/prefixclaim_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ metadata:
name: prefixclaim-viewer-role
rules:
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixclaims
verbs:
- get
- list
- watch
- apiGroups:
- netbox.dev
- ipam.netboxlabs.com
resources:
- prefixclaims/status
verbs:
Expand Down
Loading

0 comments on commit 5d84484

Please sign in to comment.