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
2 changes: 1 addition & 1 deletion pkg/controller/autoops/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func mkPolicy() autoopsv1alpha1.AutoOpsAgentPolicy {
Namespace: "default",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/autoops/expected_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestReconcileAutoOpsAgentPolicy_deploymentParams(t *testing.T) {
Namespace: "default",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0-SNAPSHOT",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "autoops-secret",
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/autoops/gc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestGarbageCollector_DoGarbageCollection(t *testing.T) {
Namespace: namespace,
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
},
}
}
Expand Down
20 changes: 10 additions & 10 deletions pkg/controller/autoops/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "invalid-secret",
},
Expand Down Expand Up @@ -107,7 +107,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -148,7 +148,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -291,7 +291,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -362,7 +362,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -452,7 +452,7 @@ func TestAutoOpsAgentPolicyReconciler_internalReconcile(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -722,7 +722,7 @@ func TestAutoOpsAgentPolicyReconciler_selectorChangeCleanup(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down Expand Up @@ -938,7 +938,7 @@ func TestAutoOpsAgentPolicyReconciler_accessRevokedCleanup(t *testing.T) {
Namespace: "ns-1",
},
Spec: autoopsv1alpha1.AutoOpsAgentPolicySpec{
Version: "9.1.0",
Version: "9.2.1",
AutoOpsRef: autoopsv1alpha1.AutoOpsRef{
SecretName: "config-secret",
},
Expand Down
5 changes: 3 additions & 2 deletions pkg/controller/common/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ var (
SupportedPackageRegistryVersions = MinMaxVersion{Min: From(7, 17, 8), Max: From(9, 99, 99)}
SupportedLogstashVersions = MinMaxVersion{Min: From(8, 12, 0), Max: From(9, 99, 99)}

// AutoOpsAgent was introduced in 9.1.0 and is supported on all 9.x versions.
SupportedAutoOpsAgentVersions = MinMaxVersion{Min: MustParse("9.1.0"), Max: From(9, 99, 99)}
// AutoOpsAgent was introduced in 9.1.0, but 9.2.1 is now required due to both performance optimizations
// and the lack of the healthcheckv2 extension prior to 9.2.1 which ECK utilizes.
SupportedAutoOpsAgentVersions = MinMaxVersion{Min: MustParse("9.2.1"), Max: From(9, 99, 99)}

// minPreReleaseVersion is the lowest prerelease identifier as numeric prerelease takes precedence before
// alphanumeric ones and it can't have leading zeros.
Expand Down
Loading