Skip to content

Commit

Permalink
Use CRDs defined in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
meffmadd committed Jul 30, 2024
1 parent 705c557 commit 58b9741
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 72 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ Go to the project directory
Install dependencies

```bash
pip install kopf
pip install kopf kubernetes
```

Add the CRDs to the cluster

```bash
kubectl apply -f opr/crd.yaml
kubectl apply -f chart/config-server-operator/crds/
```

Run the operator
Expand Down
69 changes: 0 additions & 69 deletions opr/crd.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion tests/operator_tests/test_crd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@


def _create_crd(client: ApiClient):
yaml_file = os.path.join(os.path.dirname(__file__), '../../opr/crd.yaml')
yaml_file = os.path.join(os.path.dirname(__file__), '../../chart/config-server-operator/crds/configservers.yaml')
assert os.path.exists(yaml_file)
utils.create_from_yaml(client, yaml_file)

yaml_file = os.path.join(os.path.dirname(__file__), '../../chart/config-server-operator/crds/keyvaluepairs.yaml')
assert os.path.exists(yaml_file)
utils.create_from_yaml(client, yaml_file)

Expand Down

0 comments on commit 58b9741

Please sign in to comment.