Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build-koney.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
with:
images: |
${{ env.CONTROLLER_IMAGE }}
flavor: |
latest=auto
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
Expand Down Expand Up @@ -66,9 +67,10 @@ jobs:
with:
images: |
${{ env.ALERT_FORWARDER_IMAGE }}
flavor: |
latest=auto
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and
#TODO: use the go-install-tool to install goimports locally if necessary and update docs
fmt: ## Run go fmt against code.
gofmt -l -s -w .
goimports -l -w -local github.com/dynatrace-oss/koney ./..
goimports -l -w -local github.com/dynatrace-oss/koney .

.PHONY: vet
vet: ## Run go vet against code.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Currently, Koney supports the deployment of [honeytokens](https://en.wikipedia.o
Install the operator in your cluster and wait for it to be ready:

```sh
kubectl apply -f https://raw.githubusercontent.com/dynatrace-oss/koney/main/dist/install.yaml
kubectl apply -f https://raw.githubusercontent.com/dynatrace-oss/koney/refs/tags/v0.1.0/dist/install.yaml
kubectl wait --for=condition=ready pod -n koney-system -l control-plane=controller-manager
```

Expand Down
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ kind: Kustomization
images:
- name: alert-forwarder
newName: ghcr.io/dynatrace-oss/koney-alert-forwarder
newTag: latest
newTag: 0.1.0
- name: controller
newName: ghcr.io/dynatrace-oss/koney-controller
newTag: latest
newTag: 0.1.0
4 changes: 2 additions & 2 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ spec:
control-plane: controller-manager
spec:
containers:
- image: ghcr.io/dynatrace-oss/koney-alert-forwarder:latest
- image: ghcr.io/dynatrace-oss/koney-alert-forwarder:0.1.0
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -657,7 +657,7 @@ spec:
- --health-probe-bind-address=:8081
command:
- /manager
image: ghcr.io/dynatrace-oss/koney-controller:latest
image: ghcr.io/dynatrace-oss/koney-controller:0.1.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
12 changes: 11 additions & 1 deletion docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,21 @@ make uninstall
Build the installer for the image built and published in the registry:

```sh
make build-installer VERSION="latest"
make build-installer VERSION="x.y.z"
```

ℹ️ **Note**: The makefile target mentioned above generates an `install.yaml` file in the `dist` directory. This file contains all the resources built with Kustomize, which are necessary to install this project without its dependencies.

### New Release Process

1. Bump the version in the `Makefile`
2. Bump the version in the `README.md`
3. Build the installer (see above) with the new version
4. Commit, tag, push, and let the pipeline push the image to the registry
5. Create a new release on GitHub

ℹ️ **Note**: Image version tags are formatted as `1.2.3` while git version tags are formatted as `v1.2.3` (with a `v` prefix).

## 🪲 Debugging

To see the logs of the Koney operator, use the following command:
Expand Down