-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow-up changes for WatcherAPI from PR 13
Following the review on PR 13, there were a few changes suggested. This PR does 2 of them: 1. Make the Secret field on the Spec required, and remove the default from WatcherAPI. This means that the field is no longer shared between the Watcher and WatcherAPI kinds. 2. Add more functional tests to test scenarios where the secret or database are not present. To test the change 1, this commit also changes the watcherapi kuttl test to explicitely create a Secret, mimicking what we'll later do via the Watcher controller.
- Loading branch information
Showing
10 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ metadata: | |
name: watcherapi-sample | ||
spec: | ||
databaseInstance: "openstack" | ||
secret: "osp-secret" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
tests/kuttl/test-suites/default/watcher-api/03-deploy-watcher-api.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: watcherapi-secret | ||
type: Opaque | ||
stringData: | ||
WatcherPassword: password | ||
--- | ||
apiVersion: watcher.openstack.org/v1beta1 | ||
kind: WatcherAPI | ||
metadata: | ||
name: watcherapi-kuttl | ||
spec: | ||
databaseInstance: "openstack" | ||
databaseInstance: openstack | ||
secret: watcherapi-secret |