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

Switch all internal references from onmetal to ironcore #285

Merged
merged 1 commit into from
Mar 1, 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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ add-license: addlicense ## Add license headers to all go files.

.PHONY: check-license
check-license: addlicense ## Check that every file has a license header present.
find . -name '*.go' -exec $(ADDLICENSE) -check -c 'OnMetal authors' {} +
find . -name '*.go' -exec $(ADDLICENSE) -check -c 'IronCore authors' {} +

.PHONY: lint
lint: golangci-lint ## Run golangci-lint against code.
Expand Down
4 changes: 2 additions & 2 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
domain: onmetal.de
domain: ironcore.dev
layout: go.kubebuilder.io/v3
plugins:
manifests.sdk.operatorframework.io/v2: {}
Expand All @@ -10,7 +10,7 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: onmetal.de
domain: ironcore.dev
group: ipam
kind: Ip
path: github.com/ironcore-dev/ipam/api/ipam/v1alpha1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IPAM
[![REUSE status](https://api.reuse.software/badge/github.com/ironcore-dev/ipam)](https://api.reuse.software/info/github.com/ironcore-dev/ipam)
[![Go Reference](https://pkg.go.dev/badge/github.com/onmetal/controller-utils.svg)](https://pkg.go.dev/github.com/onmetal/controller-utils)
[![Go Reference](https://pkg.go.dev/badge/github.com/ironcore-dev/controller-utils.svg)](https://pkg.go.dev/github.com/ironcore-dev/controller-utils)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![GitHub License](https://img.shields.io/static/v1?label=License&message=Apache-2.0&color=blue&style=flat-square)](LICENSE)

Expand Down
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.onmetal.de
// +groupName=ipam.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.onmetal.de
// +groupName=ipam.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.onmetal.de", Version: "v1alpha1"}
SchemeGroupVersion = schema.GroupVersion{Group: "ipam.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-onmetal-de-v1alpha1-ip,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.onmetal.de,resources=ips,verbs=create;update;delete,versions=v1alpha1,name=vip.kb.io,admissionReviewVersions={v1,v1beta1}
// +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}

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-onmetal-de-v1alpha1-network,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.onmetal.de,resources=networks,verbs=create;update;delete,versions=v1alpha1,name=vnetwork.kb.io,admissionReviewVersions={v1,v1beta1}
// +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}

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-onmetal-de-v1alpha1-networkcounter,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.onmetal.de,resources=networkcounters,verbs=create;update;delete,versions=v1alpha1,name=vnetworkcounter.kb.io,admissionReviewVersions={v1,v1beta1}
// +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}

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-onmetal-de-v1alpha1-subnet,mutating=false,failurePolicy=fail,sideEffects=None,groups=ipam.onmetal.de,resources=subnets,verbs=create;update;delete,versions=v1alpha1,name=vsubnet.kb.io,admissionReviewVersions={v1,v1beta1}
// +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}

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.onmetal.de
group: ipam.ironcore.dev
plural: ips
singular: ip
kind: IP
listKind: IPList
scope: Namespaced
subnet:
group: ipam.onmetal.de
group: ipam.ironcore.dev
plural: subnets
singular: subnet
kind: Subnet
listKind: SubnetList
scope: Namespaced
network:
group: ipam.onmetal.de
group: ipam.ironcore.dev
plural: networks
singular: network
kind: Network
listKind: NetworkList
scope: Namespaced
networkcounter:
group: ipam.onmetal.de
group: ipam.ironcore.dev
plural: networkcounters
singular: networkcounter
kind: NetworkCounter
Expand All @@ -77,4 +77,4 @@ crd:

leaderElection:
leaderElect: true
resourceName: f42c18d5.onmetal.de
resourceName: f42c18d5.ironcore.dev
12 changes: 6 additions & 6 deletions charts/ipam/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ proxy:
tag: "v0.5.0"
manager:
image:
repository: core.harbor.onmetal.de/ironcore-dev/ipam
repository: ghcr.io/ironcore-dev/ipam
pullPolicy: IfNotPresent
tag: "latest"
resources:
Expand Down Expand Up @@ -47,28 +47,28 @@ cluster:

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

leaderElection:
leaderElect: true
resourceName: f42c18d5.onmetal.de
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.

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.onmetal.de
name: ips.ipam.ironcore.dev
spec:
group: ipam.onmetal.de
group: ipam.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.onmetal.de
name: networkcounters.ipam.ironcore.dev
spec:
group: ipam.onmetal.de
group: ipam.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.onmetal.de
name: networks.ipam.ironcore.dev
spec:
group: ipam.onmetal.de
group: ipam.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.onmetal.de
name: subnets.ipam.ironcore.dev
spec:
group: ipam.onmetal.de
group: ipam.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.onmetal.de_ips.yaml
- bases/ipam.onmetal.de_subnets.yaml
- bases/ipam.onmetal.de_networks.yaml
- bases/ipam.onmetal.de_networkcounters.yaml
- bases/ipam.ironcore.dev_ips.yaml
- bases/ipam.ironcore.dev_subnets.yaml
- bases/ipam.ironcore.dev_networks.yaml
- bases/ipam.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.onmetal.de
name: ips.ipam.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.onmetal.de
name: ips.ipam.ironcore.dev
spec:
conversion:
strategy: Webhook
Expand Down
2 changes: 1 addition & 1 deletion config/manager/controller_manager_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: f42c18d5.onmetal.de
resourceName: f42c18d5.ironcore.dev
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.onmetal.de
- ipam.ironcore.dev
resources:
- ips
verbs:
Expand All @@ -17,7 +17,7 @@ rules:
- update
- watch
- apiGroups:
- ipam.onmetal.de
- ipam.ironcore.dev
resources:
- ips/status
verbs:
Expand Down
Loading
Loading