Skip to content

Commit

Permalink
feat: customize type name for required capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Feb 20, 2020
1 parent 043b7fa commit fa289e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require (
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553
google.golang.org/api v0.15.0 // indirect
halkyon.io/api v1.0.0-rc.4.0.20200212202030-807049267e38
halkyon.io/operator-framework v1.0.0-beta.4.0.20200212202939-318fb14a0373
halkyon.io/operator-framework v1.0.0-beta.4.0.20200214095045-1ef43dc9dce0
k8s.io/api v0.0.0-20190918195907-bd6ac527cfd2
k8s.io/apimachinery v0.17.0
k8s.io/client-go v11.0.1-0.20190805182715-88a2adca7e76+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
halkyon.io/api v1.0.0-rc.4.0.20200212202030-807049267e38 h1:Mlgxb6gdKoIhfVnCSEMQhj8R+Q5F0WV3sVxW75BuWGQ=
halkyon.io/api v1.0.0-rc.4.0.20200212202030-807049267e38/go.mod h1:bCOZh54+rJ4SQad0L0OMO0B+Jf7J3OtKp7SPmdLowGE=
halkyon.io/operator-framework v1.0.0-beta.4.0.20200212202939-318fb14a0373 h1:nhV2Ka0HwBrl2CFaXmDk7j6bxpiNQGkF8ACmdHw93rk=
halkyon.io/operator-framework v1.0.0-beta.4.0.20200212202939-318fb14a0373/go.mod h1:EwYgls7TBS0jo/Y095x+vjdm67FneysfwKKFMAwznbc=
halkyon.io/operator-framework v1.0.0-beta.4.0.20200214095045-1ef43dc9dce0 h1:gevJk2Y4/YHF9IiqTh4VnwKFJko5v90V5cidx6AlJos=
halkyon.io/operator-framework v1.0.0-beta.4.0.20200214095045-1ef43dc9dce0/go.mod h1:EwYgls7TBS0jo/Y095x+vjdm67FneysfwKKFMAwznbc=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/component/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func newCapability(owner *v1beta1.Component, capConfig v1beta1.CapabilityConfig)
config := framework.NewConfig(capabilityGVK)
config.CheckedForReadiness = true
config.CreatedOrUpdated = false
config.TypeName = "Required Capability"
c := capability{base: newConfiguredBaseDependent(owner, config), capabilityConfig: capConfig}
c.NameFn = c.Name
return c
Expand Down

0 comments on commit fa289e6

Please sign in to comment.