Skip to content

Commit d76ed37

Browse files
Merge branch 'main' into fix-open-source
2 parents 247d466 + 67002c4 commit d76ed37

File tree

6 files changed

+39
-25
lines changed

6 files changed

+39
-25
lines changed

charts/tenancy-manager/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ apiVersion: v2
66
name: tenancy-manager
77
description: Multi Tenancy Manager
88
type: application
9-
version: 0.1.6
10-
appVersion: "1.1.2"
9+
version: 0.1.7
10+
appVersion: "1.1.3"
1111
annotations: {}
1212
home: tenancy-iam.intel.com
1313
maintainers:

mage/test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (Test) golang() error {
4444
"nexus/kube-openapi/pkg/util/proto/validation",
4545
"nexus/kube-openapi/pkg/schemamutation",
4646
"nexus/kube-openapi/test/integration",
47+
"tenancy-manager/fuzztest",
4748
}
4849

4950
return sh.RunV(

nexus-api-gw/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ Nexus API Gateway is responsible for five primary functions:
7979

8080
## Get Started
8181

82-
Install Nexus API Gateway.
82+
Nexus API Gateway gets deployed as a k8s pod along with the deployment of Edge Manageability Framework deployment. But user can also install Nexus API Gateway using the helm chart on their own k8s cluster using following command.
8383

8484
```shell
85-
helm install -n orch-iam --create-namespace charts/nexus-api-gw
85+
helm install -n orch-iam --create-namespace nexus-api-gw charts/nexus-api-gw
8686
```
8787

88-
Another way to try out Nexus API Gateway is by using the Open Edge Platform deployment.
89-
9088
## Develop
9189

9290
Nexus API Gateway is developed in the **Go** language and is built as a Docker image through a `Dockerfile` in
@@ -120,9 +118,11 @@ The basic workflow to make changes to the code, verify those changes, and create
120118

121119
1. Run linters with the `make lint` command.
122120

121+
NOTE: As of now, `make lint` command returns errors. This will be fixed soon.
122+
123123
2. Run the unit tests with the `make test` command.
124124

125-
3. Build the code with the `make build` command.
125+
3. Build the code with the `make build` command to create the docker image.
126126

127127
## Contribute
128128

@@ -138,6 +138,7 @@ make lint
138138
make license
139139
make build
140140
```
141+
NOTE: As of now, `make lint` command return errors. This will be fixed soon.
141142

142143
You can use `help` to see a list of makefile targets.
143144
The following is a list of makefile targets that support developer activities:
@@ -153,7 +154,7 @@ The following is a list of makefile targets that support developer activities:
153154
- `go-build` to build the Go source code files
154155
- `test` to run the unit tests
155156
- `coverage` to run the unit test coverage
156-
- `build` to build the Nexus API Gateway Docker container
157+
- `build` to build the Nexus API Gateway Docker image
157158
- `release` to publish the built Nexus API Gateway Docker container to a pre-defined Docker container registry.
158159
This registry is set in an environment variable (`API_GW_DOCKER_IMAGE_OEP`) in `nexus-api-gw/Makefile`.
159160

tenancy-api-mapping/README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ These CRs are expected to be created/updated only at the time of install or upgr
3636

3737
## Get Started
3838

39-
Install Tenancy API Mapping.
39+
Tenancy API Mapping gets deployed as a k8s job along with the deployment of Edge Manageability Framework deployment. But user can also install Tenancy API Mapping using the helm chart on their own k8s cluster using following command.
4040

4141
```shell
42-
helm install -n orch-iam --create-namespace charts/tenancy-api-mapping
42+
helm install -n orch-iam --create-namespace tenancy-api-mapping charts/tenancy-api-mapping
4343
```
4444

45-
Another way to try out Tenancy API Mapping is by using the Open Edge Platform Deployment.
46-
4745
## Develop
4846

4947
Tenancy API Mapping is developed in the **Go** language and is built as a Docker image through a `Dockerfile`
@@ -75,11 +73,17 @@ This code requires the following tools to be installed on your development machi
7573

7674
The basic workflow to make changes to the code, verify those changes, and create a GitHub pull request (PR) is:
7775

78-
0. Edit and build the code with the `make build` command.
76+
0. Edit and build the code with the `make build` command. This command creates the docker image.
7977

8078
1. Run linters with the `make lint` command.
8179

82-
2. Run the unit tests with the `make test` command.
80+
2. Run the unit tests with following sequence of commands.
81+
82+
```shell
83+
make lint
84+
make test
85+
git restore --staged cmd/specgen/tests/gitsubmodules/*
86+
```
8387

8488
## Contribute
8589

@@ -90,10 +94,10 @@ a new feature. See the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more infor
9094
Additionally, ensure the following commands are successful:
9195

9296
```shell
93-
make test
9497
make lint
9598
make license
9699
make build
100+
make test
97101
```
98102

99103
You can use `help` to see a list of makefile targets.
@@ -106,7 +110,7 @@ The following is a list of makefile targets that support developer activities:
106110
- `yamllint` - lint all YAML files
107111
- `test` - run Go tests
108112
- `coverage` - run coverage
109-
- `build` - run the build stage
113+
- `build` - run the build stage
110114
- `all` - run build, lint, and test stages
111115
- `release` - publish the built Tenancy API Mapping Docker container to a predefined Docker container registry. This
112116
registry is set in an environment variable (TENANCY_API_MAPPING_DOCKER_IMAGE_OEP) in `tenancy-api-mapping/Makefile`.
@@ -262,7 +266,7 @@ For Example:
262266
- Update the tag.
263267
264268
```shell
265-
yq eval '.spec.repoConf.tag = "v0.3.1"' --inplace "apimappingconfigcrs/amc-orch-metadata-broker-openapi.yaml"
269+
yq eval '.spec.repoConf.tag = "v0.4.1"' --inplace "apimappingconfigcrs/amc-orch-metadata-broker-openapi.yaml"
266270
```
267271
268272
- Verify the version.
@@ -341,7 +345,12 @@ the Multi-Tenancy OpenAPI Specification Generator tool, covering all necessary s
341345
342346
### To Generate the Combined Open API Spec
343347
344-
`make gen-convert-combine-all`
348+
```shell
349+
make specgen
350+
make convert-and-combine
351+
make clean-intermediate
352+
git restore --staged gitsubmodules/*
353+
```
345354
346355
This target generates the unified OpenAPI spec for all the service API specs and the Datamodel API spec.
347356

tenancy-datamodel/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ To contribute, please open a pull request to have your changes reviewed and merg
142142
Additionally, ensure the following commands are successful:
143143

144144
```shell
145+
make datamodel_build
145146
make lint
146147
make license
147-
make datamodel_build
148+
make build
148149
```
150+
NOTE: Please note that `make build` command is for generating the docker image of Tenancy Datamodel.

tenancy-manager/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ The status is represented using well-defined enums that are consistently used ac
4242

4343
## Get Started
4444

45-
Install Tenancy Manager.
45+
Tenancy Manager gets deployed as a k8s pod along with the deployment of Edge Manageability Framework deployment. But user can also install Tenancy Manager using the helm chart on their own k8s cluster using following command.
4646

4747
```shell
48-
helm install -n orch-iam --create-namespace charts/tenancy-manager
48+
helm install -n orch-iam --create-namespace tenancy-manager charts/tenancy-manager
4949
```
5050

51-
Another way to try out Tenancy API Mapping is by using the Open Edge Platform Deployment.
52-
5351
## Develop
5452

5553
- Tenancy-Manager is developed in the **Go** language and is built as a Docker image through a `Dockerfile` in
@@ -84,9 +82,11 @@ The basic workflow to make changes to the code, verify those changes, and create
8482

8583
2. Run linters with the `make lint` command.
8684

85+
NOTE: As of now, `make lint` command returns errors. This will be fixed soon.
86+
8787
3. Run the unit tests with the `make test` command.
8888

89-
4. Build the code with the `make build` command.
89+
4. Build the code with the `make build` command to create the docker image.
9090

9191
## Contribute
9292

@@ -102,6 +102,7 @@ make lint
102102
make license
103103
make build
104104
```
105+
NOTE: As of now, `make lint` command returns errors. This will be fixed soon.
105106

106107
You can use `help` to see a list of makefile targets.
107108
The following is a list of makefile targets that support developer activities:
@@ -117,6 +118,6 @@ The following is a list of makefile targets that support developer activities:
117118
- `go-build` to build the Go source code files
118119
- `test` to run the unit tests
119120
- `coverage` to run the unit test coverage
120-
- `build` to build the tenancy-manager Docker container
121+
- `build` to build the tenancy-manager Docker image
121122
- `release` to publish the built tenancy-manager Docker container to a pre-defined Docker container registry.
122123
This registry is set in an environment variable (`TENANCY_MANAGER_DOCKER_IMAGE_OEP`) in `tenancy-manager/Makefile`

0 commit comments

Comments
 (0)