Skip to content

Commit

Permalink
Merge pull request #79 from Ortec-Finance/fix-operator-on-cluster-reboot
Browse files Browse the repository at this point in the history
adding annotations for sync waves to fix operators first bootup issue
  • Loading branch information
ZeidH committed May 6, 2024
1 parent 3d263c8 commit 6d6534d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.27.0
Fixed Operator Sync waves

## v0.25.0
Adding a Multi Cluster Controller Component. This Controller enables you to create Bridge Queues with ease using a `SailfishCluster` CRD.

Expand Down
2 changes: 2 additions & 0 deletions k8s/cluster-config/operators/amq/subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Subscription
metadata:
name: amq-broker-rhel8
namespace: openshift-operators
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
channel: 7.11.x
installPlanApproval: Automatic
Expand Down
3 changes: 2 additions & 1 deletion k8s/cluster-config/operators/keda/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ metadata:
name: keda
namespace: openshift-keda
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
metricsServer:
logLevel: '0'
Expand Down
2 changes: 1 addition & 1 deletion k8s/cluster-config/operators/keda/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Namespace
metadata:
name: openshift-keda
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-wave: "0"
spec: {}

2 changes: 2 additions & 0 deletions k8s/cluster-config/operators/keda/operator-group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: OperatorGroup
metadata:
name: openshift-keda
namespace: openshift-keda
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
targetNamespaces:
- openshift-keda
2 changes: 2 additions & 0 deletions k8s/cluster-config/operators/keda/subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Subscription
metadata:
name: openshift-custom-metrics-autoscaler-operator
namespace: openshift-keda
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
channel: stable
installPlanApproval: Automatic
Expand Down
5 changes: 3 additions & 2 deletions k8s/cluster-config/operators/knative/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ metadata:
name: knative-serving
namespace: knative-serving
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
config:
features:
kubernetes.podspec-fieldref: enabled
controller-custom-certs:
name: ''
type: ''
registry: {}
registry: {}
4 changes: 4 additions & 0 deletions k8s/cluster-config/operators/knative/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ apiVersion: v1
kind: Namespace
metadata:
name: openshift-serverless
annotations:
argocd.argoproj.io/sync-wave: "0"
spec: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: knative-serving
annotations:
argocd.argoproj.io/sync-wave: "0"
spec: {}

2 changes: 2 additions & 0 deletions k8s/cluster-config/operators/knative/operator-group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ kind: OperatorGroup
metadata:
name: openshift-serverless
namespace: openshift-serverless
annotations:
argocd.argoproj.io/sync-wave: "1"
2 changes: 1 addition & 1 deletion k8s/cluster-config/operators/knative/subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: serverless-operator
namespace: openshift-serverless
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-wave: "2"
spec:
channel: stable
installPlanApproval: Automatic
Expand Down

0 comments on commit 6d6534d

Please sign in to comment.