nicolaferraro commented on a change in pull request #24: initial code for integration context URL: https://github.com/apache/camel-k/pull/24#discussion_r216658930
########## 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: Is this a real status? Like "Draft"? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services