Skip to content

Commit

Permalink
ref: Rename domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Callisto13 committed Dec 1, 2022
1 parent 1c885c4 commit c0e4a20
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 44 deletions.
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 infrastructure v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=infrastructure.flintlock.x-k8s.io
// +groupName=infrastructure.liquid-metal.io
package v1alpha1

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

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "infrastructure.flintlock.x-k8s.io", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "infrastructure.liquid-metal.io", 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: microvmreplicasets.infrastructure.flintlock.x-k8s.io
name: microvmreplicasets.infrastructure.liquid-metal.io
spec:
group: infrastructure.flintlock.x-k8s.io
group: infrastructure.liquid-metal.io
names:
kind: MicrovmReplicaSet
listKind: MicrovmReplicaSetList
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: microvms.infrastructure.flintlock.x-k8s.io
name: microvms.infrastructure.liquid-metal.io
spec:
group: infrastructure.flintlock.x-k8s.io
group: infrastructure.liquid-metal.io
names:
kind: Microvm
listKind: MicrovmList
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: microvmtemplates.infrastructure.flintlock.x-k8s.io
name: microvmtemplates.infrastructure.liquid-metal.io
spec:
group: infrastructure.flintlock.x-k8s.io
group: infrastructure.liquid-metal.io
names:
kind: MicrovmTemplate
listKind: MicrovmTemplateList
Expand Down
6 changes: 3 additions & 3 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/infrastructure.flintlock.x-k8s.io_microvms.yaml
- bases/infrastructure.flintlock.x-k8s.io_microvmreplicasets.yaml
- bases/infrastructure.flintlock.x-k8s.io_microvmtemplates.yaml
- bases/infrastructure.liquid-metal.io_microvms.yaml
- bases/infrastructure.liquid-metal.io_microvmreplicasets.yaml
- bases/infrastructure.liquid-metal.io_microvmtemplates.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_microvmreplicasets.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: microvmreplicasets.infrastructure.flintlock.x-k8s.io
name: microvmreplicasets.infrastructure.liquid-metal.io
2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_microvms.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: microvms.infrastructure.flintlock.x-k8s.io
name: microvms.infrastructure.liquid-metal.io
2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_microvmtemplates.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: microvmtemplates.infrastructure.flintlock.x-k8s.io
name: microvmtemplates.infrastructure.liquid-metal.io
2 changes: 1 addition & 1 deletion config/crd/patches/webhook_in_microvmreplicasets.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: microvmreplicasets.infrastructure.flintlock.x-k8s.io
name: microvmreplicasets.infrastructure.liquid-metal.io
spec:
conversion:
strategy: Webhook
Expand Down
2 changes: 1 addition & 1 deletion config/crd/patches/webhook_in_microvms.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: microvms.infrastructure.flintlock.x-k8s.io
name: microvms.infrastructure.liquid-metal.io
spec:
conversion:
strategy: Webhook
Expand Down
2 changes: 1 addition & 1 deletion config/crd/patches/webhook_in_microvmtemplates.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: microvmtemplates.infrastructure.flintlock.x-k8s.io
name: microvmtemplates.infrastructure.liquid-metal.io
spec:
conversion:
strategy: Webhook
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvm_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: microvm-editor-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvm_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: microvm-viewer-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms
verbs:
- get
- list
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvmreplicaset_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: microvmreplicaset-editor-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvmreplicaset_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: microvmreplicaset-viewer-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets
verbs:
- get
- list
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvmtemplate_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: microvmtemplate-editor-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmtemplates
verbs:
Expand All @@ -24,7 +24,7 @@ rules:
- update
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmtemplates/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/microvmtemplate_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ metadata:
name: microvmtemplate-viewer-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmtemplates
verbs:
- get
- list
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmtemplates/status
verbs:
Expand Down
12 changes: 6 additions & 6 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: manager-role
rules:
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets
verbs:
Expand All @@ -18,21 +18,21 @@ rules:
- update
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets/finalizers
verbs:
- update
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvmreplicasets/status
verbs:
- get
- patch
- update
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms
verbs:
Expand All @@ -44,13 +44,13 @@ rules:
- update
- watch
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms/finalizers
verbs:
- update
- apiGroups:
- infrastructure.flintlock.x-k8s.io
- infrastructure.liquid-metal.io
resources:
- microvms/status
verbs:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/infrastructure_v1alpha1_microvm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.flintlock.x-k8s.io/v1alpha1
apiVersion: infrastructure.liquid-metal.io/v1alpha1
kind: Microvm
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.flintlock.x-k8s.io/v1alpha1
apiVersion: infrastructure.liquid-metal.io/v1alpha1
kind: MicrovmReplicaSet
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.flintlock.x-k8s.io/v1alpha1
apiVersion: infrastructure.liquid-metal.io/v1alpha1
kind: MicrovmTemplate
metadata:
labels:
Expand Down
6 changes: 3 additions & 3 deletions controllers/microvm_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ type MicrovmReconciler struct {
MvmClientFunc flclient.FactoryFunc
}

//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvms,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvms/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvms/finalizers,verbs=update
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvms,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvms/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvms/finalizers,verbs=update

func (r *MicrovmReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := log.FromContext(ctx)
Expand Down
6 changes: 3 additions & 3 deletions controllers/microvmreplicaset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type MicrovmReplicaSetReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvmreplicasets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvmreplicasets/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructure.flintlock.x-k8s.io,resources=microvmreplicasets/finalizers,verbs=update
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvmreplicasets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvmreplicasets/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructure.liquid-metal.io,resources=microvmreplicasets/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit c0e4a20

Please sign in to comment.