From 5800295550a9c009f8353dfecba62e21e4994d25 Mon Sep 17 00:00:00 2001 From: liorf Date: Sun, 30 Jun 2024 15:40:29 +0300 Subject: [PATCH] Change adpative to adaptive --- Makefile | 6 +++--- PROJECT | 2 +- README.md | 10 +++++----- config/default/kustomization.yaml | 4 ++-- config/default/metrics_service.yaml | 2 +- config/manager/manager.yaml | 4 ++-- config/prometheus/monitor.yaml | 2 +- .../istioadaptiverequestoptimizer_editor_role.yaml | 2 +- .../istioadaptiverequestoptimizer_viewer_role.yaml | 2 +- config/rbac/leader_election_role.yaml | 2 +- config/rbac/leader_election_role_binding.yaml | 2 +- config/rbac/role_binding.yaml | 2 +- config/rbac/service_account.yaml | 2 +- config/rbac/weightoptimizer_editor_role.yaml | 2 +- config/rbac/weightoptimizer_viewer_role.yaml | 2 +- ...ization_v1alpha1_istioadaptiverequestoptimizer.yaml | 2 +- .../samples/optimization_v1alpha1_weightoptimizer.yaml | 2 +- test/e2e/e2e_suite_test.go | 2 +- test/e2e/e2e_test.go | 4 ++-- 19 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Makefile b/Makefile index d8e560e..9b55c3c 100644 --- a/Makefile +++ b/Makefile @@ -108,10 +108,10 @@ PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le docker-buildx: ## Build and push docker image for the manager for cross-platform support # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross - - $(CONTAINER_TOOL) buildx create --name istio-adpative-least-request-builder - $(CONTAINER_TOOL) buildx use istio-adpative-least-request-builder + - $(CONTAINER_TOOL) buildx create --name istio-adaptive-least-request-builder + $(CONTAINER_TOOL) buildx use istio-adaptive-least-request-builder - $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross . - - $(CONTAINER_TOOL) buildx rm istio-adpative-least-request-builder + - $(CONTAINER_TOOL) buildx rm istio-adaptive-least-request-builder rm Dockerfile.cross .PHONY: build-installer diff --git a/PROJECT b/PROJECT index b1c2cf5..775f906 100644 --- a/PROJECT +++ b/PROJECT @@ -5,7 +5,7 @@ domain: liorfranko.github.io layout: - go.kubebuilder.io/v4 -projectName: istio-adpative-least-request +projectName: istio-adaptive-least-request repo: istio-adaptive-least-request resources: - api: diff --git a/README.md b/README.md index 92f2feb..476420b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# istio-adpative-least-request +# istio-adaptive-least-request // TODO(user): Add simple overview of use/purpose ## Description @@ -16,7 +16,7 @@ **Build and push your image to the location specified by `IMG`:** ```sh -make docker-build docker-push IMG=/istio-adpative-least-request:tag +make docker-build docker-push IMG=/istio-adaptive-least-request:tag ``` **NOTE:** This image ought to be published in the personal registry you specified. @@ -32,7 +32,7 @@ make install **Deploy the Manager to the cluster with the image specified by `IMG`:** ```sh -make deploy IMG=/istio-adpative-least-request:tag +make deploy IMG=/istio-adaptive-least-request:tag ``` > **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin @@ -73,7 +73,7 @@ Following are the steps to build the installer and distribute this project to us 1. Build the installer for the image built and published in the registry: ```sh -make build-installer IMG=/istio-adpative-least-request:tag +make build-installer IMG=/istio-adaptive-least-request:tag ``` NOTE: The makefile target mentioned above generates an 'install.yaml' @@ -86,7 +86,7 @@ its dependencies. Users can just run kubectl apply -f to install the project, i.e.: ```sh -kubectl apply -f https://raw.githubusercontent.com//istio-adpative-least-request//dist/install.yaml +kubectl apply -f https://raw.githubusercontent.com//istio-adaptive-least-request//dist/install.yaml ``` ## Contributing diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index ec06586..5ce940b 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -1,12 +1,12 @@ # Adds namespace to all resources. -namespace: istio-adpative-least-request-system +namespace: istio-adaptive-least-request-system # Value of this field is prepended to the # names of all resources, e.g. a deployment named # "wordpress" becomes "alices-wordpress". # Note that it should also match with the prefix (text before '-') of the namespace # field above. -namePrefix: istio-adpative-least-request- +namePrefix: istio-adaptive-least-request- # Labels to add to all resources and selectors. #labels: diff --git a/config/default/metrics_service.yaml b/config/default/metrics_service.yaml index 894c4ae..c7e6079 100644 --- a/config/default/metrics_service.yaml +++ b/config/default/metrics_service.yaml @@ -3,7 +3,7 @@ kind: Service metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-service namespace: system diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index a802fad..900549a 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -3,7 +3,7 @@ kind: Namespace metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: system --- @@ -14,7 +14,7 @@ metadata: namespace: system labels: control-plane: controller-manager - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize spec: selector: diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index 6f6b21d..6e7859e 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -4,7 +4,7 @@ kind: ServiceMonitor metadata: labels: control-plane: controller-manager - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: controller-manager-metrics-monitor namespace: system diff --git a/config/rbac/istioadaptiverequestoptimizer_editor_role.yaml b/config/rbac/istioadaptiverequestoptimizer_editor_role.yaml index b9205f8..2430055 100644 --- a/config/rbac/istioadaptiverequestoptimizer_editor_role.yaml +++ b/config/rbac/istioadaptiverequestoptimizer_editor_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: istioadaptiverequestoptimizer-editor-role rules: diff --git a/config/rbac/istioadaptiverequestoptimizer_viewer_role.yaml b/config/rbac/istioadaptiverequestoptimizer_viewer_role.yaml index 7abe91c..5d69f7e 100644 --- a/config/rbac/istioadaptiverequestoptimizer_viewer_role.yaml +++ b/config/rbac/istioadaptiverequestoptimizer_viewer_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: istioadaptiverequestoptimizer-viewer-role rules: diff --git a/config/rbac/leader_election_role.yaml b/config/rbac/leader_election_role.yaml index edbd553..ddf6f6e 100644 --- a/config/rbac/leader_election_role.yaml +++ b/config/rbac/leader_election_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: leader-election-role rules: diff --git a/config/rbac/leader_election_role_binding.yaml b/config/rbac/leader_election_role_binding.yaml index aadb27b..9c9abf9 100644 --- a/config/rbac/leader_election_role_binding.yaml +++ b/config/rbac/leader_election_role_binding.yaml @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: leader-election-rolebinding roleRef: diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index 74eab14..b15ec0a 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: manager-rolebinding roleRef: diff --git a/config/rbac/service_account.yaml b/config/rbac/service_account.yaml index f00e826..81305f5 100644 --- a/config/rbac/service_account.yaml +++ b/config/rbac/service_account.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ServiceAccount metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: controller-manager namespace: system diff --git a/config/rbac/weightoptimizer_editor_role.yaml b/config/rbac/weightoptimizer_editor_role.yaml index c819df8..00a4903 100644 --- a/config/rbac/weightoptimizer_editor_role.yaml +++ b/config/rbac/weightoptimizer_editor_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: weightoptimizer-editor-role rules: diff --git a/config/rbac/weightoptimizer_viewer_role.yaml b/config/rbac/weightoptimizer_viewer_role.yaml index 138751f..0523d98 100644 --- a/config/rbac/weightoptimizer_viewer_role.yaml +++ b/config/rbac/weightoptimizer_viewer_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: weightoptimizer-viewer-role rules: diff --git a/config/samples/optimization_v1alpha1_istioadaptiverequestoptimizer.yaml b/config/samples/optimization_v1alpha1_istioadaptiverequestoptimizer.yaml index ba04619..34e759e 100644 --- a/config/samples/optimization_v1alpha1_istioadaptiverequestoptimizer.yaml +++ b/config/samples/optimization_v1alpha1_istioadaptiverequestoptimizer.yaml @@ -2,7 +2,7 @@ apiVersion: optimization.liorfranko.github.io/v1alpha1 kind: IstioAdaptiveRequestOptimizer metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: istioadaptiverequestoptimizer-sample spec: diff --git a/config/samples/optimization_v1alpha1_weightoptimizer.yaml b/config/samples/optimization_v1alpha1_weightoptimizer.yaml index aaea680..953d0ef 100644 --- a/config/samples/optimization_v1alpha1_weightoptimizer.yaml +++ b/config/samples/optimization_v1alpha1_weightoptimizer.yaml @@ -2,7 +2,7 @@ apiVersion: optimization.liorfranko.github.io/v1alpha1 kind: WeightOptimizer metadata: labels: - app.kubernetes.io/name: istio-adpative-least-request + app.kubernetes.io/name: istio-adaptive-least-request app.kubernetes.io/managed-by: kustomize name: weightoptimizer-sample spec: diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index f301a74..0e269c1 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -27,6 +27,6 @@ import ( // Run e2e tests using the Ginkgo runner. func TestE2E(t *testing.T) { RegisterFailHandler(Fail) - fmt.Fprintf(GinkgoWriter, "Starting istio-adpative-least-request suite\n") + fmt.Fprintf(GinkgoWriter, "Starting istio-adaptive-least-request suite\n") RunSpecs(t, "e2e suite") } diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index dd03e67..0636dec 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -27,7 +27,7 @@ import ( "istio-adaptive-least-request/test/utils" ) -const namespace = "istio-adpative-least-request-system" +const namespace = "istio-adaptive-least-request-system" var _ = Describe("controller", Ordered, func() { BeforeAll(func() { @@ -60,7 +60,7 @@ var _ = Describe("controller", Ordered, func() { var err error // projectimage stores the name of the image used in the example - var projectimage = "example.com/istio-adpative-least-request:v0.0.1" + var projectimage = "example.com/istio-adaptive-least-request:v0.0.1" By("building the manager(Operator) image") cmd := exec.Command("make", "docker-build", fmt.Sprintf("IMG=%s", projectimage))