Skip to content

Commit e03271a

Browse files
authored
237 ignore external mutations for annotations (#239)
* added field to ignore annotations, new sts hashing calculation #237 * split sts hashing and update getekeeping to another file #237 * add default app.kubernetes.io labels to facilitate kyverno policy exceptions #237 * rename field, fix null pointer deref for additionalconfdata, bumped charts and manifests #237
1 parent bf7bf43 commit e03271a

15 files changed

Lines changed: 278 additions & 209 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ OPERATOR_SDK_VERSION ?= v1.38.0
5252
# Image URL to use all building/pushing image targets
5353
DOCKER_HUB_NAME ?= $(shell docker info | sed '/Username:/!d;s/.* //')
5454
IMG_NAME ?= typesense-operator
55-
IMG_TAG ?= 0.3.8-rc.3
55+
IMG_TAG ?= 0.3.8-rc.4
5656
IMG ?= $(DOCKER_HUB_NAME)/$(IMG_NAME):$(IMG_TAG)
5757

5858
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Join the conversation:
228228
## 📦 Project Status
229229
230230
TyKO is an **independently maintained** project (not affiliated with Typesense, Inc.).
231-
- Latest version: **0.3.8-rc.3**
231+
- Latest version: **0.3.8-rc.4**
232232
- Tested on: Kubernetes 1.35 (earliest 1.26), Typesense 30.0 (earliest 26.0)
233233
- Contributions welcome! See [FAQ](https://akyriako.github.io/typesense-operator-docs/docs/faq) and [Development](https://akyriako.github.io/typesense-operator-docs/docs/development)
234234

api/v1alpha1/typesensecluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ type TypesenseClusterSpec struct {
135135

136136
SecurityContext *SecurityContextSpec `json:"securityContext,omitempty"`
137137

138+
// +kubebuilder:validation:Optional
139+
// +kubebuilder:validation:Items:Type=string
140+
IgnoreAnnotationsFromExternalMutations []string `json:"ignoreAnnotationsFromExternalMutations,omitempty"`
141+
138142
// +optional
139143
// +kubebuilder:default=false
140144
// +kubebuilder:validation:Type=boolean

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/typesense-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.3.8-rc.3
17+
version: 0.3.8-rc.4
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.
2121
# It is recommended to use it with quotes.
22-
appVersion: "0.3.8-rc.3"
22+
appVersion: "0.3.8-rc.4"
2323

2424
maintainers:
2525
- name: Kyriakos Akriotis

charts/typesense-operator/templates/typesensecluster-crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,10 @@ spec:
10921092
type: object
10931093
type: object
10941094
type: object
1095+
ignoreAnnotationsFromExternalMutations:
1096+
items:
1097+
type: string
1098+
type: array
10951099
image:
10961100
type: string
10971101
imagePullSecrets:

charts/typesense-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ controllerManager:
1212
- ALL
1313
image:
1414
repository: akyriako78/typesense-operator
15-
tag: 0.3.8-rc.3
15+
tag: 0.3.8-rc.4
1616
imagePullPolicy: IfNotPresent
1717
resources:
1818
limits:

config/crd/bases/ts.opentelekomcloud.com_typesenseclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,10 @@ spec:
10921092
type: object
10931093
type: object
10941094
type: object
1095+
ignoreAnnotationsFromExternalMutations:
1096+
items:
1097+
type: string
1098+
type: array
10951099
image:
10961100
type: string
10971101
imagePullSecrets:

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ kind: Kustomization
55
images:
66
- name: controller
77
newName: akyriako78/typesense-operator
8-
newTag: 0.3.8-rc.3
8+
newTag: 0.3.8-rc.4

internal/controller/typesensecluster_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (r *TypesenseClusterReconciler) Reconcile(ctx context.Context, req ctrl.Req
157157
}
158158

159159
// Update strategy: Update the existing objects, if changes are identified in api and peering ports
160-
err = r.ReconcileIngress(ctx, ts)
160+
err = r.ReconcileIngress(ctx, &ts)
161161
if err != nil {
162162
cerr := r.setConditionNotReady(ctx, &ts, ConditionReasonIngressNotReady, err)
163163
if cerr != nil {
@@ -187,7 +187,7 @@ func (r *TypesenseClusterReconciler) Reconcile(ctx context.Context, req ctrl.Req
187187
}
188188

189189
// Update strategy: Update the whole specs when changes are identified
190-
sts, err := r.ReconcileStatefulSet(ctx, &ts)
190+
sts, _, err := r.ReconcileStatefulSet(ctx, &ts)
191191
if err != nil {
192192
cerr := r.setConditionNotReady(ctx, &ts, ConditionReasonStatefulSetNotReady, err)
193193
if cerr != nil {

0 commit comments

Comments
 (0)