diff --git a/PROJECT b/PROJECT index b555e03..f5dfe96 100644 --- a/PROJECT +++ b/PROJECT @@ -1,3 +1,7 @@ +# Code generated by tool. DO NOT EDIT. +# 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: lbconfig.carlosedp.com layout: - go.kubebuilder.io/v4 @@ -15,6 +19,15 @@ resources: domain: lbconfig.carlosedp.com group: lb kind: ExternalLoadBalancer - path: github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1 + path: github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1 + version: v1 + - api: + crdVersion: v1 + namespaced: true + controller: true + domain: lbconfig.carlosedp.com + group: lb.lbconfig.carlosedp.com + kind: ExternalLoadBalancer + path: github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1 version: v1 version: "3" diff --git a/api/externalloadbalancer/v1/externalloadbalancer_types.go b/api/lb.lbconfig.carlosedp.com/v1/externalloadbalancer_types.go similarity index 100% rename from api/externalloadbalancer/v1/externalloadbalancer_types.go rename to api/lb.lbconfig.carlosedp.com/v1/externalloadbalancer_types.go diff --git a/api/externalloadbalancer/v1/groupversion_info.go b/api/lb.lbconfig.carlosedp.com/v1/groupversion_info.go similarity index 100% rename from api/externalloadbalancer/v1/groupversion_info.go rename to api/lb.lbconfig.carlosedp.com/v1/groupversion_info.go diff --git a/api/externalloadbalancer/v1/zz_generated.deepcopy.go b/api/lb.lbconfig.carlosedp.com/v1/zz_generated.deepcopy.go similarity index 100% rename from api/externalloadbalancer/v1/zz_generated.deepcopy.go rename to api/lb.lbconfig.carlosedp.com/v1/zz_generated.deepcopy.go diff --git a/bundle/manifests/lbconfig-operator-externalloadbalancer-editor-role_rbac.authorization.k8s.io_v1_clusterrole.yaml b/bundle/manifests/lbconfig-operator-externalloadbalancer-editor-role_rbac.authorization.k8s.io_v1_clusterrole.yaml new file mode 100644 index 0000000..ffb74be --- /dev/null +++ b/bundle/manifests/lbconfig-operator-externalloadbalancer-editor-role_rbac.authorization.k8s.io_v1_clusterrole.yaml @@ -0,0 +1,31 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/component: kube-rbac-proxy + app.kubernetes.io/created-by: lbconfig-operator + app.kubernetes.io/instance: externalloadbalancer-editor-role + app.kubernetes.io/managed-by: kustomize + app.kubernetes.io/name: clusterrole + app.kubernetes.io/part-of: lbconfig-operator + name: lbconfig-operator-externalloadbalancer-editor-role +rules: +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers/status + verbs: + - get diff --git a/bundle/manifests/lbconfig-operator-externalloadbalancer-viewer-role_rbac.authorization.k8s.io_v1_clusterrole.yaml b/bundle/manifests/lbconfig-operator-externalloadbalancer-viewer-role_rbac.authorization.k8s.io_v1_clusterrole.yaml new file mode 100644 index 0000000..2b0c2ab --- /dev/null +++ b/bundle/manifests/lbconfig-operator-externalloadbalancer-viewer-role_rbac.authorization.k8s.io_v1_clusterrole.yaml @@ -0,0 +1,27 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/component: kube-rbac-proxy + app.kubernetes.io/created-by: lbconfig-operator + app.kubernetes.io/instance: externalloadbalancer-viewer-role + app.kubernetes.io/managed-by: kustomize + app.kubernetes.io/name: clusterrole + app.kubernetes.io/part-of: lbconfig-operator + name: lbconfig-operator-externalloadbalancer-viewer-role +rules: +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers + verbs: + - get + - list + - watch +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers/status + verbs: + - get diff --git a/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml b/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml index 6935625..2880019 100644 --- a/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml +++ b/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml @@ -98,7 +98,7 @@ metadata: categories: Networking certified: "false" containerImage: quay.io/carlosedp/lbconfig-operator:v0.5.0 - createdAt: "2024-09-16T14:43:45Z" + createdAt: "2024-09-20T15:35:28Z" description: Manage External Load Balancers allowing creation/update for VIPs and Servers dynamically via API. k8sMaxVersion: "" @@ -318,7 +318,7 @@ spec: This project fully open-source and is hosted at [GitHub](https://github.com/carlosedp/lbconfig-operator). Always check the project page and issues for the latest updates and/or solutions to problems encountered. If a problem is detected, please fill an issue. Feature request and improvement issues are welcome. - Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1?utm_source=gopls#Provider) which fields are backend-specific. + Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1?utm_source=gopls#Provider) which fields are backend-specific. ## Disclaimers diff --git a/cmd/main.go b/cmd/main.go index e01996d..ee130cd 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -50,8 +50,8 @@ import ( "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.4.0" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" - controllers "github.com/carlosedp/lbconfig-operator/internal/controller/externalloadbalancer" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" + controllers "github.com/carlosedp/lbconfig-operator/internal/controller/lb.lbconfig.carlosedp.com" //+kubebuilder:scaffold:imports ) diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 2a4a0ce..2da40b3 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -13,6 +13,7 @@ resources: # [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix. # patches here are for enabling the CA injection for each CRD #- patches/cainjection_in_externalloadbalancers.yaml +#- path: patches/cainjection_in_lb.lbconfig.carlosedp.com_externalloadbalancers.yaml #+kubebuilder:scaffold:crdkustomizecainjectionpatch # the following config is for teaching kustomize how to do kustomization for CRDs. diff --git a/config/manifests/bases/lbconfig-operator.clusterserviceversion.yaml b/config/manifests/bases/lbconfig-operator.clusterserviceversion.yaml index d775267..7f4b2c5 100644 --- a/config/manifests/bases/lbconfig-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/lbconfig-operator.clusterserviceversion.yaml @@ -225,7 +225,7 @@ spec: This project fully open-source and is hosted at [GitHub](https://github.com/carlosedp/lbconfig-operator). Always check the project page and issues for the latest updates and/or solutions to problems encountered. If a problem is detected, please fill an issue. Feature request and improvement issues are welcome. - Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1?utm_source=gopls#Provider) which fields are backend-specific. + Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1?utm_source=gopls#Provider) which fields are backend-specific. ## Disclaimers diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 731832a..f20ce24 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -1,18 +1,24 @@ resources: -# All RBAC will be applied under this service account in -# the deployment namespace. You may comment out this resource -# if your manager will use a service account that exists at -# runtime. Be sure to update RoleBinding and ClusterRoleBinding -# subjects if changing service account names. -- service_account.yaml -- role.yaml -- role_binding.yaml -- leader_election_role.yaml -- leader_election_role_binding.yaml -# Comment the following 4 lines if you want to disable -# the auth proxy (https://github.com/brancz/kube-rbac-proxy) -# which protects your /metrics endpoint. -- auth_proxy_service.yaml -- auth_proxy_role.yaml -- auth_proxy_role_binding.yaml -- auth_proxy_client_clusterrole.yaml + # All RBAC will be applied under this service account in + # the deployment namespace. You may comment out this resource + # if your manager will use a service account that exists at + # runtime. Be sure to update RoleBinding and ClusterRoleBinding + # subjects if changing service account names. + - service_account.yaml + - role.yaml + - role_binding.yaml + - leader_election_role.yaml + - leader_election_role_binding.yaml + # Comment the following 4 lines if you want to disable + # the auth proxy (https://github.com/brancz/kube-rbac-proxy) + # which protects your /metrics endpoint. + - auth_proxy_service.yaml + - auth_proxy_role.yaml + - auth_proxy_role_binding.yaml + - auth_proxy_client_clusterrole.yaml + # For each CRD, "Editor" and "Viewer" roles are scaffolded by + # default, aiding admins in cluster management. Those roles are + # not used by the Project itself. You can comment the following lines + # if you do not want those helpers be installed with your Project. + - externalloadbalancer_editor_role.yaml + - externalloadbalancer_viewer_role.yaml diff --git a/docs/Readme.md b/docs/Readme.md index 49c5b74..41c38f4 100644 --- a/docs/Readme.md +++ b/docs/Readme.md @@ -131,7 +131,7 @@ spec: ... ``` -Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1?utm_source=gopls#Provider) which fields are backend-specific. +Some fields inside `providers` are optional and depend on the used backend. Check the [API docs](https://pkg.go.dev/github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1?utm_source=gopls#Provider) which fields are backend-specific. CRD Fields: @@ -161,7 +161,7 @@ spec: validatecerts: false # Should check the certificates if API uses HTTPS (true or false) (optional) ``` -For more details, check the API documentation at . +For more details, check the API documentation at . ## Health Check diff --git a/internal/controller/backend/backend_controller/backend_controller.go b/internal/controller/backend/backend_controller/backend_controller.go index 65de3ad..2cac09d 100644 --- a/internal/controller/backend/backend_controller/backend_controller.go +++ b/internal/controller/backend/backend_controller/backend_controller.go @@ -35,7 +35,7 @@ import ( "go.opentelemetry.io/otel/trace" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" ) // Tracer name diff --git a/internal/controller/backend/backend_controller/backend_controller_test.go b/internal/controller/backend/backend_controller/backend_controller_test.go index 9df5fa5..8fdb202 100644 --- a/internal/controller/backend/backend_controller/backend_controller_test.go +++ b/internal/controller/backend/backend_controller/backend_controller_test.go @@ -33,7 +33,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" _ "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_loader" d "github.com/carlosedp/lbconfig-operator/internal/controller/backend/dummy" diff --git a/internal/controller/backend/dummy/dummy_controller.go b/internal/controller/backend/dummy/dummy_controller.go index c0a599f..236d405 100644 --- a/internal/controller/backend/dummy/dummy_controller.go +++ b/internal/controller/backend/dummy/dummy_controller.go @@ -31,7 +31,7 @@ import ( "github.com/go-logr/logr" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" backend "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" ) diff --git a/internal/controller/backend/f5/f5_controller.go b/internal/controller/backend/f5/f5_controller.go index b076aa5..b5ba8a2 100644 --- a/internal/controller/backend/f5/f5_controller.go +++ b/internal/controller/backend/f5/f5_controller.go @@ -35,7 +35,7 @@ import ( "github.com/scottdware/go-bigip" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" backend "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" ) diff --git a/internal/controller/backend/f5/f5_controller_test.go b/internal/controller/backend/f5/f5_controller_test.go index 4c5b026..74b53de 100644 --- a/internal/controller/backend/f5/f5_controller_test.go +++ b/internal/controller/backend/f5/f5_controller_test.go @@ -43,7 +43,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/f5" ) diff --git a/internal/controller/backend/haproxy/haproxy_controller.go b/internal/controller/backend/haproxy/haproxy_controller.go index 693d7f1..c9306e8 100644 --- a/internal/controller/backend/haproxy/haproxy_controller.go +++ b/internal/controller/backend/haproxy/haproxy_controller.go @@ -45,7 +45,7 @@ import ( "k8s.io/utils/ptr" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" backend_controller "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" ) diff --git a/internal/controller/backend/haproxy/haproxy_controller_test.go b/internal/controller/backend/haproxy/haproxy_controller_test.go index 1515115..bd3caa7 100644 --- a/internal/controller/backend/haproxy/haproxy_controller_test.go +++ b/internal/controller/backend/haproxy/haproxy_controller_test.go @@ -44,7 +44,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/haproxy" ) diff --git a/internal/controller/backend/netscaler/netscaler_controller.go b/internal/controller/backend/netscaler/netscaler_controller.go index 0461ae3..be01be8 100644 --- a/internal/controller/backend/netscaler/netscaler_controller.go +++ b/internal/controller/backend/netscaler/netscaler_controller.go @@ -38,7 +38,7 @@ import ( "github.com/go-logr/logr" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" backend "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" ) diff --git a/internal/controller/backend/netscaler/netscaler_controller_test.go b/internal/controller/backend/netscaler/netscaler_controller_test.go index 7596758..4999480 100644 --- a/internal/controller/backend/netscaler/netscaler_controller_test.go +++ b/internal/controller/backend/netscaler/netscaler_controller_test.go @@ -43,7 +43,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" . "github.com/carlosedp/lbconfig-operator/internal/controller/backend/netscaler" ) diff --git a/internal/controller/externalloadbalancer/externalloadbalancer_controller.go b/internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller.go similarity index 99% rename from internal/controller/externalloadbalancer/externalloadbalancer_controller.go rename to internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller.go index 7fbc6d2..3f74746 100644 --- a/internal/controller/externalloadbalancer/externalloadbalancer_controller.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller.go @@ -55,7 +55,7 @@ import ( "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/trace" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" controller "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_controller" _ "github.com/carlosedp/lbconfig-operator/internal/controller/backend/backend_loader" ) diff --git a/internal/controller/externalloadbalancer/externalloadbalancer_controller_test.go b/internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller_test.go similarity index 99% rename from internal/controller/externalloadbalancer/externalloadbalancer_controller_test.go rename to internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller_test.go index 56335fe..7995c24 100644 --- a/internal/controller/externalloadbalancer/externalloadbalancer_controller_test.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/externalloadbalancer_controller_test.go @@ -30,7 +30,7 @@ import ( "strconv" "time" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" diff --git a/internal/controller/externalloadbalancer/suite_test.go b/internal/controller/lb.lbconfig.carlosedp.com/suite_test.go similarity index 97% rename from internal/controller/externalloadbalancer/suite_test.go rename to internal/controller/lb.lbconfig.carlosedp.com/suite_test.go index bde31ea..407a405 100644 --- a/internal/controller/externalloadbalancer/suite_test.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/suite_test.go @@ -45,7 +45,7 @@ import ( //+kubebuilder:scaffold:imports - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" ) // These tests use Ginkgo (BDD-style Go testing framework). Refer to diff --git a/internal/controller/externalloadbalancer/test_utility_funcs.go b/internal/controller/lb.lbconfig.carlosedp.com/test_utility_funcs.go similarity index 100% rename from internal/controller/externalloadbalancer/test_utility_funcs.go rename to internal/controller/lb.lbconfig.carlosedp.com/test_utility_funcs.go diff --git a/internal/controller/externalloadbalancer/test_utility_funcs_test.go b/internal/controller/lb.lbconfig.carlosedp.com/test_utility_funcs_test.go similarity index 96% rename from internal/controller/externalloadbalancer/test_utility_funcs_test.go rename to internal/controller/lb.lbconfig.carlosedp.com/test_utility_funcs_test.go index 4b83079..b820f53 100644 --- a/internal/controller/externalloadbalancer/test_utility_funcs_test.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/test_utility_funcs_test.go @@ -29,7 +29,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" ) var _ = Describe("ExternalLoadBalancer controller", func() { diff --git a/internal/controller/externalloadbalancer/utility_functions.go b/internal/controller/lb.lbconfig.carlosedp.com/utility_functions.go similarity index 97% rename from internal/controller/externalloadbalancer/utility_functions.go rename to internal/controller/lb.lbconfig.carlosedp.com/utility_functions.go index a136248..d7df862 100644 --- a/internal/controller/externalloadbalancer/utility_functions.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/utility_functions.go @@ -29,7 +29,7 @@ import ( corev1 "k8s.io/api/core/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" ) // ----------------------------------------- diff --git a/internal/controller/externalloadbalancer/utility_functions_test.go b/internal/controller/lb.lbconfig.carlosedp.com/utility_functions_test.go similarity index 97% rename from internal/controller/externalloadbalancer/utility_functions_test.go rename to internal/controller/lb.lbconfig.carlosedp.com/utility_functions_test.go index b42ff4a..6f64d4f 100644 --- a/internal/controller/externalloadbalancer/utility_functions_test.go +++ b/internal/controller/lb.lbconfig.carlosedp.com/utility_functions_test.go @@ -29,7 +29,7 @@ import ( . "github.com/onsi/gomega" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - lbv1 "github.com/carlosedp/lbconfig-operator/api/externalloadbalancer/v1" + lbv1 "github.com/carlosedp/lbconfig-operator/api/lb.lbconfig.carlosedp.com/v1" ) var _ = Describe("ExternalLoadBalancer controller", func() { diff --git a/manifests/deploy.yaml b/manifests/deploy.yaml index c1de482..09599ca 100644 --- a/manifests/deploy.yaml +++ b/manifests/deploy.yaml @@ -478,6 +478,64 @@ rules: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole +metadata: + labels: + app.kubernetes.io/component: kube-rbac-proxy + app.kubernetes.io/created-by: lbconfig-operator + app.kubernetes.io/instance: externalloadbalancer-editor-role + app.kubernetes.io/managed-by: kustomize + app.kubernetes.io/name: clusterrole + app.kubernetes.io/part-of: lbconfig-operator + name: lbconfig-operator-externalloadbalancer-editor-role +rules: +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers/status + verbs: + - get +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/component: kube-rbac-proxy + app.kubernetes.io/created-by: lbconfig-operator + app.kubernetes.io/instance: externalloadbalancer-viewer-role + app.kubernetes.io/managed-by: kustomize + app.kubernetes.io/name: clusterrole + app.kubernetes.io/part-of: lbconfig-operator + name: lbconfig-operator-externalloadbalancer-viewer-role +rules: +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers + verbs: + - get + - list + - watch +- apiGroups: + - lb.lbconfig.carlosedp.com + resources: + - externalloadbalancers/status + verbs: + - get +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole metadata: name: lbconfig-operator-manager-role rules: