Skip to content

Commit

Permalink
use metadata.name instead of fieldSelector for OLM e2e cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmerdler committed Jun 17, 2019
1 parent d6ea5dc commit 71f2a71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('Interacting with an `AllNamespaces` install mode Operator (Redis)', ()

afterAll(() => {
execSync(`kubectl delete catalogsource -n ${catalogNamespace} ${catalogSource.metadata.name}`);
execSync(`kubectl delete subscription -n ${globalOperatorsNamespace} --field-selector metadata.name=redis-enterprise`);
execSync(`kubectl delete clusterserviceversion -n ${globalOperatorsNamespace} --field-selector metadata.name=redis-enterprise-operator.v0.0.1`);
execSync(`kubectl delete subscription -n ${globalOperatorsNamespace} redis-enterprise`);
execSync(`kubectl delete clusterserviceversion -n ${globalOperatorsNamespace} redis-enterprise-operator.v0.0.1`);
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ describe('Interacting with a `OwnNamespace` install mode Operator (Prometheus)',

afterAll(() => {
execSync(`kubectl delete catalogsource -n ${testName} ${catalogSource.metadata.name}`);
execSync(`kubectl delete subscription -n ${testName} --field-selector metadata.name=prometheus`);
execSync(`kubectl delete clusterserviceversion -n ${testName} --field-selector metadata.name=prometheusoperator.0.27.0`);
execSync(`kubectl delete subscription -n ${testName} prometheus`);
execSync(`kubectl delete clusterserviceversion -n ${testName} prometheusoperator.0.27.0`);
});

afterEach(() => {
Expand Down

0 comments on commit 71f2a71

Please sign in to comment.