-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 📖 Guidelines | ||
|
||
- Pull requests should be created on the master branch. | ||
|
||
# ⚒️ Building and Testing the Sources | ||
|
||
## Build JFrog Registry Operator | ||
|
||
Make sure Go is installed by running: | ||
|
||
``` | ||
go version | ||
``` | ||
|
||
Clone the sources and CD to the root directory of the project: | ||
|
||
``` | ||
git clone https://github.com/jfrog/jfrog-registry-operator.git | ||
cd jfrog-registry-operator | ||
``` | ||
|
||
Build the sources as follows: | ||
|
||
Before running the application, generate mocks by running the following command from within the root directory of the project: | ||
|
||
```sh | ||
make generate | ||
make manifests | ||
``` | ||
|
||
To run the code, follow these steps: | ||
|
||
```sh | ||
kubectl apply -f config/crd/bases | ||
``` | ||
|
||
```sh | ||
go run main.go | ||
``` | ||
|
||
Once operator is in running state, configure artifactoryUrl, refreshTime, namespaceSelector and secretMetadata in [secretrotator.yaml](https://github.com/jfrog/jfrog-registry-operator/blob/main/charts/jfrog-registry-operator/examples/secretrotator.yaml) diff terminal | ||
|
||
```sh | ||
kubectl apply -f config/samples/jfrog_v1alpha1_secretrotator.yaml` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters