Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename API group to ipam.metal.ironcore.dev #292

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/ipam/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// +k8s:deepcopy-gen=package
// +k8s:openapi-gen=true
// +groupName=ipam.ironcore.dev
// +groupName=ipam.metal.ironcore.dev

// Package v1alpha1 is the v1alpha1 version of the API.
package v1alpha1 // import "github.com/ironcore-dev/ipam/api/ipam/v1alpha1"
4 changes: 2 additions & 2 deletions api/ipam/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

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

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

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
Expand Down
2 changes: 1 addition & 1 deletion api/ipam/v1alpha1/ip_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (in *IP) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:path=/validate-ipam-ironcore-dev-v1alpha1-ip,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.ironcore.dev,resources=ips,verbs=create;update;delete,versions=v1alpha1,name=vip.kb.io,admissionReviewVersions={v1,v1beta1}
// +kubebuilder:webhook:path=/validate-ipam-metal-ironcore-dev-v1alpha1-ip,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.metal.ironcore.dev,resources=ips,verbs=create;update;delete,versions=v1alpha1,name=vip.kb.io,admissionReviewVersions={v1,v1beta1}

var _ webhook.Validator = &IP{}

Expand Down
2 changes: 1 addition & 1 deletion api/ipam/v1alpha1/network_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (in *Network) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:path=/validate-ipam-ironcore-dev-v1alpha1-network,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.ironcore.dev,resources=networks,verbs=create;update;delete,versions=v1alpha1,name=vnetwork.kb.io,admissionReviewVersions={v1,v1beta1}
// +kubebuilder:webhook:path=/validate-ipam-metal-ironcore-dev-v1alpha1-network,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.metal.ironcore.dev,resources=networks,verbs=create;update;delete,versions=v1alpha1,name=vnetwork.kb.io,admissionReviewVersions={v1,v1beta1}

var _ webhook.Validator = &Network{}

Expand Down
2 changes: 1 addition & 1 deletion api/ipam/v1alpha1/networkcounter_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (in *NetworkCounter) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:path=/validate-ipam-ironcore-dev-v1alpha1-networkcounter,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.ironcore.dev,resources=networkcounters,verbs=create;update;delete,versions=v1alpha1,name=vnetworkcounter.kb.io,admissionReviewVersions={v1,v1beta1}
// +kubebuilder:webhook:path=/validate-ipam-metal-ironcore-dev-v1alpha1-networkcounter,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.metal.ironcore.dev,resources=networkcounters,verbs=create;update;delete,versions=v1alpha1,name=vnetworkcounter.kb.io,admissionReviewVersions={v1,v1beta1}

var _ webhook.Validator = &NetworkCounter{}

Expand Down
2 changes: 1 addition & 1 deletion api/ipam/v1alpha1/subnet_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (in *Subnet) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:path=/validate-ipam-ironcore-dev-v1alpha1-subnet,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.ironcore.dev,resources=subnets,verbs=create;update;delete,versions=v1alpha1,name=vsubnet.kb.io,admissionReviewVersions={v1,v1beta1}
// +kubebuilder:webhook:path=/validate-ipam-metal-ironcore-dev-v1alpha1-subnet,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.metal.ironcore.dev,resources=subnets,verbs=create;update;delete,versions=v1alpha1,name=vsubnet.kb.io,admissionReviewVersions={v1,v1beta1}

var _ webhook.Validator = &Subnet{}

Expand Down
10 changes: 5 additions & 5 deletions charts/ipam/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ cluster:

crd:
ip:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: ips
singular: ip
kind: IP
listKind: IPList
scope: Namespaced
subnet:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: subnets
singular: subnet
kind: Subnet
listKind: SubnetList
scope: Namespaced
network:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: networks
singular: network
kind: Network
listKind: NetworkList
scope: Namespaced
networkcounter:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: networkcounters
singular: networkcounter
kind: NetworkCounter
Expand All @@ -77,4 +77,4 @@ crd:

leaderElection:
leaderElect: true
resourceName: f42c18d5.ironcore.dev
resourceName: f42c18d5.ironcore.dev
10 changes: 5 additions & 5 deletions charts/ipam/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ cluster:

crd:
ip:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: ips
singular: ip
kind: IP
listKind: IPList
scope: Namespaced
subnet:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: subnets
singular: subnet
kind: Subnet
listKind: SubnetList
scope: Namespaced
network:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: networks
singular: network
kind: Network
listKind: NetworkList
scope: Namespaced
networkcounter:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
plural: networkcounters
singular: networkcounter
kind: NetworkCounter
Expand All @@ -77,4 +77,4 @@ crd:

leaderElection:
leaderElect: true
resourceName: f42c18d5.ironcore.dev
resourceName: f42c18d5.ironcore.dev
4 changes: 2 additions & 2 deletions clientgo/applyconfiguration/ipam/v1alpha1/ip.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clientgo/applyconfiguration/ipam/v1alpha1/network.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clientgo/applyconfiguration/ipam/v1alpha1/networkcounter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clientgo/applyconfiguration/ipam/v1alpha1/subnet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clientgo/applyconfiguration/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clientgo/informers/generic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clientgo/ipam/typed/ipam/v1alpha1/ipam_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clientgo/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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: ips.ipam.ironcore.dev
name: ips.ipam.metal.ironcore.dev
spec:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
names:
kind: IP
listKind: IPList
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: networkcounters.ipam.ironcore.dev
name: networkcounters.ipam.metal.ironcore.dev
spec:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
names:
kind: NetworkCounter
listKind: NetworkCounterList
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: networks.ipam.ironcore.dev
name: networks.ipam.metal.ironcore.dev
spec:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
names:
kind: Network
listKind: NetworkList
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: subnets.ipam.ironcore.dev
name: subnets.ipam.metal.ironcore.dev
spec:
group: ipam.ironcore.dev
group: ipam.metal.ironcore.dev
names:
kind: Subnet
listKind: SubnetList
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/ipam.ironcore.dev_ips.yaml
- bases/ipam.ironcore.dev_subnets.yaml
- bases/ipam.ironcore.dev_networks.yaml
- bases/ipam.ironcore.dev_networkcounters.yaml
- bases/ipam.metal.ironcore.dev_ips.yaml
- bases/ipam.metal.ironcore.dev_subnets.yaml
- bases/ipam.metal.ironcore.dev_networks.yaml
- bases/ipam.metal.ironcore.dev_networkcounters.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_ips.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: ips.ipam.ironcore.dev
name: ips.ipam.metal.ironcore.dev
2 changes: 1 addition & 1 deletion config/crd/patches/webhook_in_ips.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: ips.ipam.ironcore.dev
name: ips.ipam.metal.ironcore.dev
spec:
conversion:
strategy: Webhook
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ip_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: ip-editor-role
rules:
- apiGroups:
- ipam.ironcore.dev
- ipam.metal.ironcore.dev
resources:
- ips
verbs:
Expand All @@ -17,7 +17,7 @@ rules:
- update
- watch
- apiGroups:
- ipam.ironcore.dev
- ipam.metal.ironcore.dev
resources:
- ips/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/ip_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ metadata:
name: ip-viewer-role
rules:
- apiGroups:
- ipam.ironcore.dev
- ipam.metal.ironcore.dev
resources:
- ips
verbs:
- get
- list
- watch
- apiGroups:
- ipam.ironcore.dev
- ipam.metal.ironcore.dev
resources:
- ips/status
verbs:
Expand Down
Loading
Loading