Skip to content

Commit

Permalink
Custom configs can be chosen for each OCP version
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Nov 14, 2024
1 parent 0c26bed commit daea036
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 50 deletions.
4 changes: 4 additions & 0 deletions config/backstage-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- version: "4.17"
- onDemand: true
version: "4.13"
Expand Down
4 changes: 4 additions & 0 deletions config/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- skipCron: true
useClusterPool: true
version: "4.17"
Expand Down
4 changes: 4 additions & 0 deletions config/eventing-istio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.16"
- onDemand: true
Expand Down
4 changes: 4 additions & 0 deletions config/eventing-kafka-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ config:
- .*eventing-kafka-broker-receiver
- .*eventing-kafka-broker-dispatcher
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
- onDemand: true
Expand Down
4 changes: 4 additions & 0 deletions config/eventing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
- onDemand: true
Expand Down
4 changes: 4 additions & 0 deletions config/kn-plugin-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
release-next:
Expand Down
4 changes: 4 additions & 0 deletions config/kn-plugin-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- skipCron: true
useClusterPool: true
version: "4.17"
Expand Down
130 changes: 127 additions & 3 deletions config/serverless-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,19 @@ config:
- name: JAVA_RUNTIME
pullSpec: registry.access.redhat.com/ubi8/openjdk-21-runtime
openShiftVersions:
- candidateRelease: true
cronForceKonfluxIndex: true
customConfigs:
enabled: true
includes:
- .*ocp4.18-lp-interop.*
onDemand: true
version: "4.18"
- cronForceKonfluxIndex: true
generateCustomConfigs: true
customConfigs:
enabled: true
excludes:
- .*ocp4.18-lp-interop.*
useClusterPool: true
version: "4.17"
- cronForceKonfluxIndex: true
Expand Down Expand Up @@ -403,6 +414,121 @@ repositories:
branch: ""
org: ""
repo: ""
- name: ocp4.18-lp-interop
releaseBuildConfiguration:
tests:
- as: operator-e2e-interop-aws-ocp418
cron: 0 6 11 2 *
steps:
cluster_profile: aws-cspi-qe
env:
BASE_DOMAIN: cspilp.interop.ccitredhat.com
FIREWATCH_CONFIG: |
{
"failure_rules":
[
{"step": "knative-eventing-kafka-broker-e2e", "failure_type": "test_failure", "classification": "knative-eventing-kafka-broker-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "knative-serving-eventing-e2e", "failure_type": "test_failure", "classification": "knative-serving-eventing-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "operator-e2e", "failure_type": "test_failure", "classification": "operator-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "knative-*", "failure_type": "pod_failure", "classification": "knative Test Execution", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "operator-e2e", "failure_type": "pod_failure", "classification": "operator-e2e Test Execution", "jira_additional_labels": ["!default","interop-tests"]}
]
}
FIREWATCH_CONFIG_FILE_PATH: https://raw.githubusercontent.com/CSPI-QE/cspi-utils/main/firewatch-base-configs/aws-ipi/lp-interop.json
FIREWATCH_DEFAULT_JIRA_ADDITIONAL_LABELS: '["4.18-lp","self-managed-lp","serverless-lp"]'
FIREWATCH_DEFAULT_JIRA_ASSIGNEE: [email protected]
FIREWATCH_DEFAULT_JIRA_PROJECT: LPINTEROP
USER_TAGS: |
scenario serverless
test:
- as: operator-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-e2e-with-kafka
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
- as: knative-serving-eventing-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-upstream-e2e-no-upgrade
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
- as: knative-eventing-kafka-broker-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-upstream-e2e-kafka-no-upgrade
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 10Gi
requests:
cpu: 100m
memory: 200Mi
workflow: firewatch-ipi-aws
timeout: 8h0m0s
- as: operator-e2e-interop-aws-ocp418-fips
cron: 0 0 11 6 *
steps:
cluster_profile: aws-cspi-qe
env:
BASE_DOMAIN: cspilp.interop.ccitredhat.com
FIPS_ENABLED: "true"
FIREWATCH_CONFIG: |
{
"failure_rules":
[
{"step": "knative-eventing-kafka-broker-e2e", "failure_type": "test_failure", "classification": "knative-eventing-kafka-broker-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "knative-serving-eventing-e2e", "failure_type": "test_failure", "classification": "knative-serving-eventing-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "operator-e2e", "failure_type": "test_failure", "classification": "operator-e2e Test Failure", "jira_project": "SRVCOM", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "knative-*", "failure_type": "pod_failure", "classification": "knative Test Execution", "jira_additional_labels": ["!default","interop-tests"]},
{"step": "operator-e2e", "failure_type": "pod_failure", "classification": "operator-e2e Test Execution", "jira_additional_labels": ["!default","interop-tests"]}
]
}
FIREWATCH_CONFIG_FILE_PATH: https://raw.githubusercontent.com/CSPI-QE/cspi-utils/main/firewatch-base-configs/aws-ipi/lp-interop.json
FIREWATCH_DEFAULT_JIRA_ADDITIONAL_LABELS: '["4.18-lp","self-managed-lp","serverless-lp","fips"]'
FIREWATCH_DEFAULT_JIRA_PROJECT: LPINTEROP
USER_TAGS: |
scenario serverless
test:
- as: operator-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-e2e-with-kafka
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
- as: knative-serving-eventing-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-upstream-e2e-no-upgrade
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
- as: knative-eventing-kafka-broker-e2e
commands: FORCE_KONFLUX_INDEX=true GOPATH=/tmp/go PATH=$PATH:/tmp/go/bin SKIP_MESH_AUTH_POLICY_GENERATION=true make test-upstream-e2e-kafka-no-upgrade
# Dependencies are injected automatically based on images.
from: serverless-source-image
resources:
limits:
memory: 10Gi
requests:
cpu: 100m
memory: 200Mi
workflow: firewatch-ipi-aws
timeout: 8h0m0s
dockerfiles:
matches:
- knative-operator/.*
Expand Down Expand Up @@ -445,8 +571,6 @@ repositories:
ignoreConfigs:
matches:
- .*main.yaml$
- .*lp-interop.*
- .*lp-interop.*
imageNameOverrides:
serverless-operator: bundle
serverless-operator-index: index
Expand Down
4 changes: 4 additions & 0 deletions config/serving-net-istio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
- onDemand: true
Expand Down
4 changes: 4 additions & 0 deletions config/serving-net-kourier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
- onDemand: true
Expand Down
4 changes: 4 additions & 0 deletions config/serving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ config:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- useClusterPool: true
version: "4.17"
- onDemand: true
Expand Down
5 changes: 0 additions & 5 deletions pkg/prowgen/prowgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,7 @@ func AlwaysRunInjector() JobConfigInjector {
variant := jobConfig.PresubmitsStatic[k][i].Labels["ci-operator.openshift.io/variant"]
ocpVersion := strings.ReplaceAll(strings.SplitN(variant, "-", 2)[0], ".", "")

var err error
openshiftVersions := b.OpenShiftVersions
openshiftVersions, err = addCandidateRelease(b.OpenShiftVersions)
if err != nil {
return err
}
// Individual OpenShift versions can enforce all their jobs to be on demand.
var onDemandForOpenShift bool
for _, v := range openshiftVersions {
Expand Down
Loading

0 comments on commit daea036

Please sign in to comment.