Skip to content

Commit

Permalink
More tweaks to test wiring (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn authored Jan 26, 2021
1 parent 4e3c621 commit 58896c9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/apis/provisioning/v1alpha1/provisioner_defaults.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

func (r *Provisioner) Default() {
}
19 changes: 19 additions & 0 deletions pkg/apis/provisioning/v1alpha1/provisioner_validation.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

func (r *Provisioner) Validate() error {
return nil
}
1 change: 1 addition & 0 deletions pkg/controllers/provisioner/v1alpha1/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var _ = Describe("Provisioner", func() {

Context("Provisioner", func() {
It("should do something", func() {
Expect(ns.ParseResources("docs/examples/provisioner/provisioner.yaml", p)).To(Succeed())
Expect(ns.Create(context.TODO(), p)).To(Succeed())
})
})
Expand Down

0 comments on commit 58896c9

Please sign in to comment.