openshift / svt

Apache License 2.0
124 stars 105 forks source link

Add oc apply task and network policy yaml and example #703

Closed qiliRedHat closed 2 years ago

qiliRedHat commented 2 years ago

In 4.10, network policy with SDN network is added to reliability Network Backend Test Matrix https://docs.google.com/document/d/1zi7i4FkoSXLE_GhO5Iyn03f_t6zGDLc2sxdyrfldbik/edit#heading=h.q92ljkbz9tbf. This PR added:

  1. An 'apply' task to apply a yaml file to given number of projects for a user.
  2. A network policy yaml file for application with template nodejs-postgresql-persistent to consume.
  3. An example of configuration file to run reliability test with network policy.

Note: As this requirement is added in later phase of 4.10, for time limit, network policy is only applied to template nodejs-postgresql-persistent now. Will extend to more template in the future.

qiliRedHat commented 2 years ago

Test https://coreos.slack.com/archives/C0266JJ4XM5/p1645521391913149 had no issue about the network policy apply and actions after network policy is applied.

qiliRedHat commented 2 years ago

@mffiedler @paigerube14 Please help to review this, thanks!

mffiedler commented 2 years ago

Nice addition for allowing generic extension of the reliability tests. Tested and works well.