Skip to content

Commit

Permalink
License server support (#33)
Browse files Browse the repository at this point in the history
* Update version

* License server support added

* create release from dev branch

* reverting changes

* Update on secrets handling for licensing server

* Publish build from dev branch

* Secrets naming based update

* Revert dev branch publish related changes

* Publish from dev branch

* updated actions/checkout version

* remove token usage during repo checkout

* run CI only upon push

* renamed all ixia-c-operator to keng-operator

---------

Co-authored-by: biplamal <[email protected]>
Co-authored-by: Ashutosh Kumar <[email protected]>
  • Loading branch information
3 people authored Oct 19, 2023
1 parent 0468e69 commit c3e91c6
Show file tree
Hide file tree
Showing 13 changed files with 210 additions and 109 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: "true"
token: ${{ secrets.TOKEN_GITHUB }}

- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
Expand Down Expand Up @@ -54,13 +52,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publishing Artifacts
if: steps.check_tag.outputs.exists == 'false' && steps.get_branch.outputs.branch == 'main'
if: steps.check_tag.outputs.exists == 'false'
run: |
chmod u+x ./ci.sh
TOKEN_GITHUB=${{ secrets.TOKEN_GITHUB }} ./ci.sh publish
- name: Create Release
if: steps.check_tag.outputs.exists == 'false' && steps.get_branch.outputs.branch == 'main'
if: steps.check_tag.outputs.exists == 'false'
uses: ncipollo/release-action@v1
with:
artifacts: "release/*"
Expand Down
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
Loading

0 comments on commit c3e91c6

Please sign in to comment.