Skip to content

Commit

Permalink
renamed all ixia-c-operator to keng-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutshkumr committed Oct 19, 2023
1 parent 1ab0bc4 commit cba213f
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# steps:
# - name: Give Permission
# run: |
# sudo chown -R $USER:$USER /home/$USER/actions-runner/_work/ixia-c-operator
# sudo chown -R $USER:$USER /home/$USER/actions-runner/_work/keng-operator

# - name: Checkout
# uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins:
manifests.sdk.operatorframework.io/v2: {}
scorecard.sdk.operatorframework.io/v2: {}
projectName: ixiatg-op
repo: github.com/open-traffic-generator/ixia-c-operator
repo: github.com/open-traffic-generator/keng-operator
resources:
- api:
crdVersion: v1
Expand All @@ -14,6 +14,6 @@ resources:
domain: keysight.com
group: network
kind: IxiaTG
path: github.com/open-traffic-generator/ixia-c-operator
path: github.com/open-traffic-generator/keng-operator
version: v1beta1
version: "3"
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![license](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![release)](https://img.shields.io/github/v/release/open-traffic-generator/ixia-c-operator)](https://github.com/open-traffic-generator/ixia-c-operator/releases/latest)
[![Build](https://github.com/open-traffic-generator/ixia-c-operator/actions/workflows/publish.yaml/badge.svg)](https://github.com/open-traffic-generator/ixia-c-operator/actions)
[![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/open-traffic-generator/ixia-c-operator)](https://lgtm.com/projects/g/open-traffic-generator/ixia-c-operator/context:python)
[![LGTM Alerts](https://img.shields.io/lgtm/alerts/github/open-traffic-generator/ixia-c-operator)](https://lgtm.com/projects/g/open-traffic-generator/ixia-c-operator/?mode=list)
[![release)](https://img.shields.io/github/v/release/open-traffic-generator/keng-operator)](https://github.com/open-traffic-generator/keng-operator/releases/latest)
[![Build](https://github.com/open-traffic-generator/keng-operator/actions/workflows/publish.yaml/badge.svg)](https://github.com/open-traffic-generator/keng-operator/actions)
[![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/open-traffic-generator/keng-operator)](https://lgtm.com/projects/g/open-traffic-generator/keng-operator/context:python)
[![LGTM Alerts](https://img.shields.io/lgtm/alerts/github/open-traffic-generator/keng-operator)](https://lgtm.com/projects/g/open-traffic-generator/keng-operator/?mode=list)

Kubernetes Operator is built on the basic Kubernetes resources and controller concepts and includes application specific knowledge to automate common tasks like create, configure and manage instances on behalf of a Kubernetes user. It extends the functionality of the Kubernetes API and is used to package, deploy and manage Kubernetes application.<br/>

Expand Down Expand Up @@ -102,18 +102,18 @@ Note: The operator sets the minimum cpu and memory requirement to the default va
Please make sure that the setup meets [Deployment Prerequisites](#deployment-prerequisites).
- **Available Releases**
https://github.com/open-traffic-generator/ixia-c-operator/releases
https://github.com/open-traffic-generator/keng-operator/releases
- **Download Deployment yaml**
```sh
curl -kLO "https://github.com/open-traffic-generator/ixia-c-operator/releases/tag/v0.0.65/ixiatg-operator.yaml"
curl -kLO "https://github.com/open-traffic-generator/keng-operator/releases/tag/v0.0.65/ixiatg-operator.yaml"
```
- **Load Image**
```sh
docker pull ixiacom/ixia-c-operator:0.0.65
docker pull ixiacom/keng-operator:0.0.65
```
- **Running as K8S Pod**
Expand All @@ -131,19 +131,19 @@ Please make sure that the setup meets [Deployment Prerequisites](#deployment-pre
- **Clone this project**
```sh
git clone https://github.com/open-traffic-generator/ixia-c-operator.git
cd ixia-c-operator/
git clone https://github.com/open-traffic-generator/keng-operator.git
cd keng-operator/
```
- **For Production**
```sh
export VERSION=latest
export IMAGE_TAG_BASE=ixia-c-operator
export IMAGE_TAG_BASE=keng-operator
# Generating ixia-c-operator deployment yaml using Makefile
# Generating keng-operator deployment yaml using Makefile
make yaml
# Generating docker build with name & tag (ixia-c-operator:latest) using Makefile
# Generating docker build with name & tag (keng-operator:latest) using Makefile
make docker-build
```
Expand Down
2 changes: 1 addition & 1 deletion api/clientset/v1beta1/ixiatg.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"

typesv1beta1 "github.com/open-traffic-generator/ixia-c-operator/api/v1beta1"
typesv1beta1 "github.com/open-traffic-generator/keng-operator/api/v1beta1"
)

// IxiaTGInterface provides access to the IxiaTG CRD.
Expand Down
8 changes: 4 additions & 4 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ get_docker_build() {
}

gen_ixia_c_op_dep_yaml() {
# Generating ixia-c-operator deployment yaml using Makefile
# Generating keng-operator deployment yaml using Makefile
img=${1}
echo "Generating ixia-c-operator deployment yaml ..."
echo "Generating keng-operator deployment yaml ..."
export VERSION=$(get_version)
export IMAGE_TAG_BASE=${img}
make yaml
Expand Down Expand Up @@ -162,13 +162,13 @@ cicd_gen_release_art() {
}

gen_operator_artifacts() {
echo "Generating ixia-c-operator offline artifacts ..."
echo "Generating keng-operator offline artifacts ..."
art=${1}
version=$(get_version)
rm -rf ${art}/*.yaml
rm -rf ${art}/*.tar.gz
mv ./ixiatg-operator.yaml ${art}/
docker save ${IXIA_C_OPERATOR_IMAGE}:${version} | gzip > ${art}/ixia-c-operator.tar.gz
docker save ${IXIA_C_OPERATOR_IMAGE}:${version} | gzip > ${art}/keng-operator.tar.gz
}

build() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/ixiatg_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (

"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

networkv1beta1 "github.com/open-traffic-generator/ixia-c-operator/api/v1beta1"
networkv1beta1 "github.com/open-traffic-generator/keng-operator/api/v1beta1"

log "github.com/sirupsen/logrus"

Expand Down
2 changes: 1 addition & 1 deletion controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

networkv1beta1 "github.com/open-traffic-generator/ixia-c-operator/api/v1beta1"
networkv1beta1 "github.com/open-traffic-generator/keng-operator/api/v1beta1"
//+kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/open-traffic-generator/ixia-c-operator
module github.com/open-traffic-generator/keng-operator

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

networkv1beta1 "github.com/open-traffic-generator/ixia-c-operator/api/v1beta1"
"github.com/open-traffic-generator/ixia-c-operator/controllers"
networkv1beta1 "github.com/open-traffic-generator/keng-operator/api/v1beta1"
"github.com/open-traffic-generator/keng-operator/controllers"
//+kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion operator-tests/helper/operator-cicd-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ delete_ceos_image() {

delete_ixia_c_operator_image() {
cecho "Deleting ixia-c operator image ..."
docker exec -t kind-control-plane crictl rmi $(docker exec -t kind-control-plane crictl images | grep "ixia-c-operator") 2> /dev/null || true
docker exec -t kind-control-plane crictl rmi $(docker exec -t kind-control-plane crictl images | grep "keng-operator") 2> /dev/null || true
}

delete_images() {
Expand Down
24 changes: 12 additions & 12 deletions operator-tests/helper/operator_cicd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

SANITY_SETTINGS = {
"required_artifacts": [
"ixia-c-operator.tar.gz",
"keng-operator.tar.gz",
"ixiatg-operator.yaml",
"template-ixia-configmap.yaml",
"operator-cicd-deploy.sh",
Expand Down Expand Up @@ -160,12 +160,12 @@ def __init__(self):
def get_cmd_line_options(self):
try:
parser = argparse.ArgumentParser(
description="--- Auto Ixia-C-Operator E2E Regression Run Tool help ---") # noqa
description="--- Auto KENG Operator E2E Regression Run Tool help ---") # noqa
parser.add_argument(
'-build',
dest='build',
default=self.build,
help="Enter the Ixia-C-Operator build version")
help="Enter the KENG Operator build version")
parser.add_argument(
'-ixia_c_release',
dest='ixia_c_release',
Expand Down Expand Up @@ -261,18 +261,18 @@ def form_test_metadata(self):

def deploy_ixia_c_op(self):
try:
self.logger.info('Deploying Ixia-C-Operator')
self.logger.info('Deploying KENG Operator')
cmd = SANITY_SETTINGS['deploy_cmd']
out = exec_shell(
cmd, self.logger)
if out is not None:
out = out.split('\n')
if out[-2].strip() == "success":
self.logger.info('Ixia-C-Operator deployed successfully')
self.logger.info('KENG Operator deployed successfully')
else:
raise Exception('Failed to deploy Ixia-C-Operator')
raise Exception('Failed to deploy KENG Operator')
else:
raise Exception('Failed to deploy Ixia-C-Operator')
raise Exception('Failed to deploy KENG Operator')

except Exception as e:
print(
Expand Down Expand Up @@ -396,7 +396,7 @@ def execute_sanity(self):
raise Exception('Failed to remove : {}'.format(
test_report_location))
self.logger.info(
'Starting sanity run for Ixia-C-Operator')
'Starting sanity run for KENG Operator')
sanity_run_command = SANITY_SETTINGS["sanity_cmd"].format(
sys.executable,
test_report_name,
Expand All @@ -422,19 +422,19 @@ def execute_sanity(self):
def cleanup_ixia_c_op(self):
try:
self.logger.info(
'Cleaning up Ixia-C-Operator')
'Cleaning up KENG Operator')

cmd = SANITY_SETTINGS['cleanup_cmd']
out = exec_shell(
cmd, self.logger)
if out is not None:
out = out.split('\n')
if out[-2].strip() == "success":
self.logger.info('Ixia-C-Operator clean up successfully')
self.logger.info('KENG Operator clean up successfully')
else:
raise Exception('Failed to clean up Ixia-C-Operator')
raise Exception('Failed to clean up KENG Operator')
else:
raise Exception('Failed to clean up Ixia-C-Operator')
raise Exception('Failed to clean up KENG Operator')

except Exception as e:
print(
Expand Down

0 comments on commit cba213f

Please sign in to comment.