Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Mar 25, 2024
1 parent d7dd91a commit bda2a60
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
12 changes: 5 additions & 7 deletions addon/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ func (r *ResourceInjector) Build(task *Task, extension *api.Extension) (dict map
err = nErr
return
}
if !found {
err = &NotFound{}
return
}
err = r.add(&injector, identity)
if err != nil {
return
if found {
err = r.add(&injector, identity)
if err != nil {
return
}
}
default:
err = &UnknownInjector{Kind: parsed[0]}
Expand Down
28 changes: 28 additions & 0 deletions generated/crd/tackle.konveyor.io_addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1259,9 +1259,37 @@ spec:
description: Metadata details.
type: object
x-kubernetes-preserve-unknown-fields: true
resources:
description: Resources
items:
properties:
fields:
items:
properties:
key:
type: string
name:
type: string
path:
type: string
required:
- key
- name
- path
type: object
type: array
kind:
type: string
required:
- fields
- kind
type: object
type: array
task:
description: Task (kind) compatibility.
type: string
required:
- resources
type: object
status:
description: AddonStatus defines the observed state of Addon
Expand Down

0 comments on commit bda2a60

Please sign in to comment.