Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ replace github.com/nxadm/tail => github.com/stackrox/tail v1.4.9-0.2024080613095
// we currently depend on.
// It includes a number of features and bug fixes which we faced in StackRox. We use this fork
// primarily to iterate faster. See https://issues.redhat.com/browse/ROX-7911
replace github.com/operator-framework/helm-operator-plugins => github.com/stackrox/helm-operator v0.0.12-0.20250211113659-1b2840226a8b
replace github.com/operator-framework/helm-operator-plugins => github.com/stackrox/helm-operator v0.8.1-0.20250925110425-984a0356c488

// @stackrox/sensor-ecosystem
replace (
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand Down
29 changes: 12 additions & 17 deletions operator/tests/common/central-cr-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,19 @@ collectors:
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=scanner-v4-matcher
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=scanner-v4-db
# Please keep the above lists in sync with pods-debug.yaml
timeout: 1500
---
apiVersion: platform.stackrox.io/v1alpha1
kind: Central
metadata:
- command: retry-kubectl.sh describe central.platform.stackrox.io -n $NAMESPACE stackrox-central-services
resourceRefs:
- apiVersion: platform.stackrox.io/v1alpha1
kind: Central
name: stackrox-central-services
status:
conditions:
- status: "True"
type: Deployed
- status: "True"
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: ProxyConfigFailed
- status: "False"
type: ReleaseFailed
ref: central_cr
assertAll:
- celExpr: "central_cr.status.conditions.filter(c, c.type=='Deployed').exists(c, c.status=='True')"
- celExpr: "central_cr.status.conditions.filter(c, c.type=='Initialized').exists(c, c.status=='True')"
- celExpr: "central_cr.status.conditions.filter(c, c.type=='Irreconcilable').exists(c, c.status=='False')"
- celExpr: "central_cr.status.conditions.filter(c, c.type=='ProxyConfigFailed').exists(c, c.status=='False')"
- celExpr: "central_cr.status.conditions.filter(c, c.type=='ReleaseFailed').exists(c, c.status=='False')"
timeout: 1500
---
apiVersion: apps/v1
kind: Deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand Down
2 changes: 2 additions & 0 deletions operator/tests/common/monitoring-auth-reader-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand Down
30 changes: 12 additions & 18 deletions operator/tests/common/secured-cluster-cr-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,19 @@ collectors:
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=admission-control
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=collector
# Please keep the above lists in sync with pods-debug.yaml
timeout: 1500
---
apiVersion: platform.stackrox.io/v1alpha1
kind: SecuredCluster
metadata:
- command: retry-kubectl.sh describe securedcluster.platform.stackrox.io -n $NAMESPACE stackrox-secured-cluster-services
resourceRefs:
- apiVersion: platform.stackrox.io/v1alpha1
kind: SecuredCluster
name: stackrox-secured-cluster-services
status:
clusterName: testing-cluster
conditions:
- status: "True"
type: Deployed
- status: "True"
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: ProxyConfigFailed
- status: "False"
type: ReleaseFailed
ref: sc_cr
assertAll:
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Deployed').exists(c, c.status=='True')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Initialized').exists(c, c.status=='True')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Irreconcilable').exists(c, c.status=='False')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='ProxyConfigFailed').exists(c, c.status=='False')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='ReleaseFailed').exists(c, c.status=='False')"
timeout: 1500
---
apiVersion: apps/v1
kind: Deployment
Expand Down
4 changes: 4 additions & 0 deletions operator/tests/common/upgrade-assert.envsubst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand All @@ -29,6 +31,8 @@ status:
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "False"
Expand Down
2 changes: 2 additions & 0 deletions operator/tests/securedcluster/sc-basic/020-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ status:
type: Initialized
- status: "True"
type: Irreconcilable
- status: "False"
type: Paused
- status: "False"
type: ProxyConfigFailed
- status: "Unknown"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,19 @@ collectors:
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=admission-control
- command: retry-kubectl.sh describe pod -n $NAMESPACE -l app=collector
# Please keep the above lists in sync with pods-debug.yaml
timeout: 1500
---
apiVersion: platform.stackrox.io/v1alpha1
kind: SecuredCluster
metadata:
- command: retry-kubectl.sh describe securedcluster.platform.stackrox.io -n $NAMESPACE stackrox-secured-cluster-services
resourceRefs:
- apiVersion: platform.stackrox.io/v1alpha1
kind: SecuredCluster
name: stackrox-secured-cluster-services
status:
clusterName: testing-cluster
conditions:
- status: "True"
type: Deployed
- status: "True"
type: Initialized
- status: "False"
type: Irreconcilable
- status: "False"
type: ProxyConfigFailed
- status: "False"
type: ReleaseFailed
ref: sc_cr
assertAll:
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Deployed').exists(c, c.status=='True')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Initialized').exists(c, c.status=='True')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='Irreconcilable').exists(c, c.status=='False')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='ProxyConfigFailed').exists(c, c.status=='False')"
- celExpr: "sc_cr.status.conditions.filter(c, c.type=='ReleaseFailed').exists(c, c.status=='False')"
timeout: 1500
---
apiVersion: apps/v1
kind: Deployment
Expand Down
Loading