Skip to content

Commit

Permalink
fix outdated sample resources, add crd installation to readme
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
basti1302 committed Oct 1, 2024
1 parent 4ccf03f commit faf738d
Show file tree
Hide file tree
Showing 6 changed files with 1,075 additions and 1,103 deletions.
23 changes: 8 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,27 @@ You’ll need a Kubernetes cluster to run against. You can use [KIND](https://si

### Running on the cluster

1. Install Instances of Custom Resources:

1. Install custom resource definitions:
```sh
kubectl apply -f config/samples/
make install
```

2. Build and push your image to the location specified by `IMG`:
2. Install custom resources:

```sh
make docker-build docker-push IMG=<some-registry>/perses-operator:tag
bin/kustomize build config/samples | kubectl apply -f -
```

3. Deploy the controller to the cluster with the image specified by `IMG`:
3. Build and push your image to the location specified by `IMG`:

```sh
make deploy IMG=<some-registry>/perses-operator:tag
```

4. Install a CRD instance

```sh
kubectl apply -f config/samples/v1alpha1_perses.yaml --namespace default
make docker-build docker-push IMG=<some-registry>/perses-operator:tag
```

5. Install a CRD instance
4. Deploy the controller to the cluster with the image specified by `IMG`:

```sh
kubectl delete -f config/samples/v1alpha1_perses.yaml --namespace default
make deploy IMG=<some-registry>/perses-operator:tag
```

### Uninstall CRDs
Expand Down
4 changes: 3 additions & 1 deletion config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Append samples you want in your CSV to this file as resources ##
resources:
- v1alpha1_perses.yaml
- perses.dev_v1alpha1_perses.yaml
- perses.dev_v1alpha1_persesdashboard.yaml
- perses.dev_v1alpha1_persesdatasource.yaml
#+kubebuilder:scaffold:manifestskustomizesamples
1 change: 1 addition & 0 deletions config/samples/perses.dev_v1alpha1_perses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ spec:
queries_path: "/etc/perses/schemas/queries"
datasources_path: "/etc/perses/schemas/datasources"
variables_path: "/etc/perses/schemas/variables"
deactivate_front: false
containerPort: 8080
Loading

0 comments on commit faf738d

Please sign in to comment.