Skip to content

Commit

Permalink
feat(api): Kamelet as static resource
Browse files Browse the repository at this point in the history
Remove the reconciliation loop and the kamelet.status property
  • Loading branch information
squakez committed Oct 16, 2023
1 parent 167d6af commit d059cb1
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 568 deletions.
1 change: 1 addition & 0 deletions pkg/apis/camel/v1/kamelet_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type Kamelet struct {
// the desired specification
Spec KameletSpec `json:"spec,omitempty"`
// the actual status of the resource
// Deprecated no longer in use
Status KameletStatus `json:"status,omitempty"`
}

Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/describe_kamelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ func (command *describeKameletCommandOptions) describeKamelet(cmd *cobra.Command
w := indentedwriter.NewWriter(cmd.OutOrStdout())

describeObjectMeta(w, kamelet.ObjectMeta)

w.Writef(0, "Phase:\t%s\n", kamelet.Status.Phase)

// Definition
def := kamelet.Spec.Definition
if def != nil {
Expand Down
3 changes: 1 addition & 2 deletions pkg/cmd/kamelet_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ func (command *kameletGetCommandOptions) run(cmd *cobra.Command) error {
continue
}

fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\n",
kl.Name,
string(kl.Status.Phase),
klType,
group,
bundled,
Expand Down
26 changes: 0 additions & 26 deletions pkg/controller/add_kamelet.go

This file was deleted.

54 changes: 0 additions & 54 deletions pkg/controller/kamelet/action.go

This file was deleted.

48 changes: 0 additions & 48 deletions pkg/controller/kamelet/initialize.go

This file was deleted.

210 changes: 0 additions & 210 deletions pkg/controller/kamelet/kamelet_controller.go

This file was deleted.

23 changes: 0 additions & 23 deletions pkg/controller/kamelet/log.go

This file was deleted.

Loading

0 comments on commit d059cb1

Please sign in to comment.