Skip to content

Commit 5b612aa

Browse files
authored
Merge branch 'main' into renovate/kubernetes-go
2 parents 4182042 + d4be9ae commit 5b612aa

18 files changed

+670
-19
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.17"
2+
".": "0.2.18"
33
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.2.18](https://github.com/open-feature/open-feature-operator/compare/v0.2.17...v0.2.18) (2022-11-10)
4+
5+
6+
### Bug Fixes
7+
8+
* nil pointer dereference ([#216](https://github.com/open-feature/open-feature-operator/issues/216)) ([d975066](https://github.com/open-feature/open-feature-operator/commit/d975066f96a5f9caf8af8d513076480a33943257))
9+
310
## [0.2.17](https://github.com/open-feature/open-feature-operator/compare/v0.2.16...v0.2.17) (2022-11-07)
411

512

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ IMG ?= controller:latest
55
KUSTOMIZE_OVERLAY ?= DEFAULT
66
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
77
FLAGD_VERSION=v0.2.5
8-
CHART_VERSION=v0.2.17# x-release-please-version
9-
CHART_VERSION=v0.2.17# x-release-please-version
8+
CHART_VERSION=v0.2.18# x-release-please-version
109
ENVTEST_K8S_VERSION = 1.23
1110

1211
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
@@ -181,7 +180,7 @@ set-helm-overlay:
181180
${eval KUSTOMIZE_OVERLAY = HELM}
182181

183182
helm-package: set-helm-overlay generate release-manifests helm
184-
$(HELM) package --version $(CHART_VERSION) chart
183+
$(HELM) package --version $(CHART_VERSION) chart
185184
mkdir -p charts && mv ofo-*.tgz charts
186185
$(HELM) repo index --url https://open-feature.github.io/open-feature-operator/charts charts
187186
mv charts/index.yaml index.yaml

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ helm install ofo openfeature/ofo
3535

3636
```
3737
kubectl create namespace open-feature-operator-system
38-
kubectl apply -f https://github.com/open-feature/open-feature-operator/releases/download/v0.2.17/release.yaml
38+
kubectl apply -f https://github.com/open-feature/open-feature-operator/releases/download/v0.2.18/release.yaml
3939
```
4040

4141
<!---x-release-please-end-->
@@ -162,11 +162,17 @@ root@nginx:/# curl -X POST "localhost:8013/schema.v1.Service/ResolveString" -d '
162162

163163
#### Run the example
164164

165-
1. Apply the end-to-end example: `kubectl -n open-feature-operator-system apply -f config/samples/end-to-end.yaml`
165+
1. Apply the end-to-end example: `kubectl apply -f config/samples/end-to-end.yaml`
166166
1. Visit `http://localhost:30000/`
167167
1. Update the value of the `defaultVariant` field in the custom resource instance in `config/samples/end-to-end.yaml` and re-apply to update the flag value!
168168
1. Visit `http://localhost:30000/` and see the change!
169169

170+
## Testing
171+
172+
Run `make test` to run the test suite. The controller integration tests use [envtest](https://book.kubebuilder.io/reference/envtest.html), this sets up and starts an instance of etcd and the Kubernetes API server, without kubelet, controller-manager or other components.
173+
This provides means of asserting that the Kubernetes components reach the desired state without the overhead of using an actual cluster, keeping
174+
test runtime and resource consumption down.
175+
170176
## Releases
171177

172178
This repo uses _Release Please_ to release packages. Release Please sets up a running PR that tracks all changes for the library components, and maintains the versions according to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), generated when [PRs are merged](https://github.com/amannn/action-semantic-pull-request). When Release Please's running PR is merged, any changed artifacts are published.

apis/core/v1alpha1/featureflagconfiguration_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ type FeatureFlagConfigurationSpec struct {
4343
}
4444

4545
type FlagDSpec struct {
46+
// +optional
47+
MetricsPort int32 `json:"metricsPort"`
4648
// +optional
4749
Envs []corev1.EnvVar `json:"envs"`
4850
}

apis/core/v1alpha1/groupversion_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ limitations under the License.
1515
*/
1616

1717
// Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group
18-
//+kubebuilder:object:generate=true
19-
//+groupName=core.openfeature.dev
18+
// +kubebuilder:object:generate=true
19+
// +groupName=core.openfeature.dev
2020
package v1alpha1
2121

2222
import (

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ version: 0.1.0
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.
2020
# It is recommended to use it with quotes.
21-
appVersion: "v0.2.17" # x-release-please-version
21+
appVersion: "v0.2.18" # x-release-please-version

chart/templates/rendered.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ spec:
152152
- name
153153
type: object
154154
type: array
155+
metricsPort:
156+
format: int32
157+
type: integer
155158
type: object
156159
serviceProvider:
157160
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ controllerManager:
1515
manager:
1616
image:
1717
repository: ghcr.io/open-feature/open-feature-operator
18-
tag: v0.2.17 # x-release-please-version
18+
tag: v0.2.18 # x-release-please-version
1919
resources:
2020
limits:
2121
cpu: 500m

config/crd/bases/core.openfeature.dev_featureflagconfigurations.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ spec:
153153
- name
154154
type: object
155155
type: array
156+
metricsPort:
157+
format: int32
158+
type: integer
156159
type: object
157160
serviceProvider:
158161
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster

0 commit comments

Comments
 (0)