Skip to content

Commit

Permalink
Revert "Feat/add storage download url (#20)"
Browse files Browse the repository at this point in the history
This reverts commit 4b8c6c8.
  • Loading branch information
alperencelik committed Feb 24, 2024
1 parent 4b8c6c8 commit fc54c78
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 609 deletions.
9 changes: 0 additions & 9 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,4 @@ resources:
kind: CustomCertificate
path: github.com/alperencelik/kubemox/api/proxmox/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: alperen.cloud
group: proxmox
kind: StorageDownloadURL
path: github.com/alperencelik/kubemox/api/proxmox/v1alpha1
version: v1alpha1
version: "3"
72 changes: 0 additions & 72 deletions api/proxmox/v1alpha1/storagedownloadurl_types.go

This file was deleted.

88 changes: 0 additions & 88 deletions api/proxmox/v1alpha1/zz_generated.deepcopy.go

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

44 changes: 19 additions & 25 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,33 +133,27 @@ func main() {
setupLog.Error(err, "unable to create controller", "controller", "Container")
os.Exit(1)
}
if err = (&proxmoxcontroller.StorageDownloadURLReconciler{
if err = (&proxmoxcontroller.CustomCertificateReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "StorageDownloadURL")
if err = (&proxmoxcontroller.CustomCertificateReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "CustomCertificate")
os.Exit(1)
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up health check")
os.Exit(1)
}
if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up ready check")
os.Exit(1)
}

setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
setupLog.Error(err, "problem running manager")
os.Exit(1)
}
setupLog.Error(err, "unable to create controller", "controller", "CustomCertificate")
os.Exit(1)
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up health check")
os.Exit(1)
}
if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up ready check")
os.Exit(1)
}

setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
setupLog.Error(err, "problem running manager")
os.Exit(1)
}
}
71 changes: 0 additions & 71 deletions config/crd/bases/proxmox.alperen.cloud_storagedownloadurls.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ resources:
- bases/proxmox.alperen.cloud_virtualmachinesnapshots.yaml
- bases/proxmox.alperen.cloud_virtualmachinesnapshotpolicies.yaml
- bases/proxmox.alperen.cloud_containers.yaml
- bases/proxmox.alperen.cloud_storagedownloadurls.yaml
- bases/proxmox.alperen.cloud_customcertificates.yaml
#+kubebuilder:scaffold:crdkustomizeresource

Expand All @@ -21,7 +20,6 @@ patches:
#- path: patches/webhook_in_virtualmachinesnapshots.yaml
#- path: patches/webhook_in_virtualmachinesnapshotpolicies.yaml
#- path: patches/webhook_in_containers.yaml
#- path: patches/webhook_in_proxmox_storagedownloadurls.yaml
#- path: patches/webhook_in_proxmox_customcertificates.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

Expand All @@ -33,7 +31,6 @@ patches:
#- path: patches/cainjection_in_virtualmachinesnapshots.yaml
#- path: patches/cainjection_in_virtualmachinesnapshotpolicies.yaml
#- path: patches/cainjection_in_containers.yaml
#- path: patches/cainjection_in_proxmox_storagedownloadurls.yaml
#- path: patches/cainjection_in_proxmox_customcertificates.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch

Expand Down
31 changes: 0 additions & 31 deletions config/rbac/proxmox_storagedownloadurl_editor_role.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions config/rbac/proxmox_storagedownloadurl_viewer_role.yaml

This file was deleted.

Loading

0 comments on commit fc54c78

Please sign in to comment.