You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2018/09/11 13:52:36 UTC
[GitHub] lburgazzoli commented on a change in pull request #24: initial code
for integration context
lburgazzoli commented on a change in pull request #24: initial code for integration context
URL: https://github.com/apache/camel-k/pull/24#discussion_r216677379
##########
File path: pkg/apis/camel/v1alpha1/types.go
##########
@@ -61,3 +62,53 @@ const (
IntegrationPhaseRunning IntegrationPhase = "Running"
IntegrationPhaseError IntegrationPhase = "Error"
)
+
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+
+type IntegrationContextList struct {
+ metav1.TypeMeta `json:",inline"`
+ metav1.ListMeta `json:"metadata"`
+ Items []IntegrationContext `json:"items"`
+}
+
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+
+type IntegrationContext struct {
+ metav1.TypeMeta `json:",inline"`
+ metav1.ObjectMeta `json:"metadata"`
+ Spec IntegrationContextSpec `json:"spec"`
+ Status IntegrationContextStatus `json:"status,omitempty"`
+}
+
+type IntegrationContextSpec struct {
+ Dependencies []string `json:"dependencies,omitempty"`
+ Properties []PropertySpec `json:"properties,omitempty"`
+ Environment []EnvironmentSpec `json:"environment,omitempty"`
+}
+
+type PropertySpec struct {
+ Name string
+ Value string
+}
+type EnvironmentSpec struct {
+ Name string
+ Value string
+}
+
+type IntegrationContextStatus struct {
+ Phase IntegrationContextPhase `json:"phase,omitempty"`
+ Digest string `json:"digest,omitempty"`
+ Image string `json:"image,omitempty"`
+ From int `json:"from,omitempty"`
+}
+
+type IntegrationContextPhase string
+
+const (
+ // IntegrationContextPhaseEditing --
+ IntegrationContextPhaseEditing IntegrationContextPhase = "Editing"
Review comment:
Yes, renamed it to draft to make it more clear
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services