Skip to content

Commit

Permalink
Report serverless operator status.
Browse files Browse the repository at this point in the history
  • Loading branch information
mezarin committed Oct 28, 2019
1 parent f8d0d31 commit cf4b582
Show file tree
Hide file tree
Showing 145 changed files with 18,490 additions and 558 deletions.
29 changes: 20 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/samples/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:

# Sets the collection resource's initial desiredState value to active or inactive when
# the CR instance is initially deployed. Post CR instance deployment, updates to
# a collection's desired state can be done manually by editing each collection resource manually.
# a collection's desired state can be done by editing each collection resource manually.
# A collection's desiredState value of active or inactive is what determines whether the
# assets associated with a collection object are activated or deactived.
# Setting activateDefaultCollections to true sets the collection's initial desiredState to "active".
Expand Down
17 changes: 13 additions & 4 deletions deploy/crds/kabanero_v1alpha1_kabanero_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ spec:
version:
type: string
type: object
knativeServing:
description: Knative serving instance readiness status.
landing:
description: Kabanero Landing page readiness status.
properties:
errorMessage:
type: string
Expand All @@ -219,11 +219,20 @@ spec:
version:
type: string
type: object
landing:
description: Kabanero Landing page readiness status.
serverless:
description: OpenShift serverless operator status.
properties:
errorMessage:
type: string
knativeServing:
properties:
errorMessage:
type: string
ready:
type: string
version:
type: string
type: object
ready:
type: string
version:
Expand Down
18 changes: 15 additions & 3 deletions pkg/apis/kabanero/v1alpha1/kabanero_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type KabaneroSpec struct {
Che CheCustomizationSpec `json:"che,omitempty"`
}

// InstanceCollectionConfig defines the customization entries for a set of collections.
type InstanceCollectionConfig struct {
Repositories []RepositoryConfig `json:"repositories,omitempty"`
}
Expand All @@ -47,6 +48,7 @@ type GithubConfig struct {
ApiUrl string `json:"apiUrl,omitempty"`
}

// RepositoryConfig defines customization entries for a collection.
type RepositoryConfig struct {
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
Expand All @@ -60,6 +62,7 @@ type TektonCustomizationSpec struct {
Version string `json:"version,omitempty"`
}

// KabaneroCliServicesCustomizationSpec defines customization entries for the Kabanero CLI.
type KabaneroCliServicesCustomizationSpec struct {
//Future: Enable bool `json:"enable,omitempty"`
Version string `json:"version,omitempty"`
Expand All @@ -69,6 +72,7 @@ type KabaneroCliServicesCustomizationSpec struct {
SessionExpirationSeconds string `json:"sessionExpirationSeconds,omitempty"`
}

// KabaneroLandingCustomizationSpec defines customization entries for Kabanero landing page.
type KabaneroLandingCustomizationSpec struct {
Enable *bool `json:"enable,omitempty"`
Version string `json:"version,omitempty"`
Expand All @@ -82,7 +86,7 @@ type CheCustomizationSpec struct {
KabaneroChe KabaneroCheSpec `json:"kabaneroChe,omitempty"`
}

// CheOperatorSpec defines customization entries for the Che operator
// CheOperatorSpec defines customization entries for the Che operator.
type CheOperatorSpec struct {
Version string `json:"version,omitempty"`
Image string `json:"image,omitempty"`
Expand Down Expand Up @@ -112,8 +116,8 @@ type KabaneroStatus struct {
// Knative eventing instance readiness status.
KnativeEventing KnativeEventingStatus `json:"knativeEventing,omitempty"`

// Knative serving instance readiness status.
KnativeServing KnativeServingStatus `json:"knativeServing,omitempty"`
// OpenShift serverless operator status.
Serverless ServerlessStatus `json:"serverless,omitempty"`

// Tekton instance readiness status.
Tekton TektonStatus `json:"tekton,omitempty"`
Expand Down Expand Up @@ -155,6 +159,14 @@ type KnativeEventingStatus struct {
Version string `json:"version,omitempty"`
}

// ServerlessStatus defines the observed status details of Open Shift serverless.
type ServerlessStatus struct {
Ready string `json:"ready,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
Version string `json:"version,omitempty"`
KnativeServing KnativeServingStatus `json:"knativeServing,omitempty"`
}

// KnativeServingStatus defines the observed status details of Knative Serving.
type KnativeServingStatus struct {
Ready string `json:"ready,omitempty"`
Expand Down
19 changes: 18 additions & 1 deletion pkg/apis/kabanero/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/apis/kabanero/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 41 additions & 25 deletions pkg/assets/config/config_vfsdata.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func processStatus(ctx context.Context, request reconcile.Request, k *kabanerov1
// Gather the status of all resource dependencies.
isAppsodyReady, _ := getAppsodyStatus(k, c, reqLogger)
isTektonReady, _ := getTektonStatus(k, c)
isKnativeServingReady, _ := getKnativeServingStatus(k, c, reqLogger)
isServerlessReady, _ := getServerlessStatus(k, c, reqLogger)
isKnativeEventingReady, _ := getKnativeEventingStatus(k, c, reqLogger)
isCliRouteReady, _ := getCliRouteStatus(k, reqLogger, c)
isKabaneroLandingReady, _ := getKabaneroLandingPageStatus(k, c)
Expand All @@ -337,7 +337,7 @@ func processStatus(ctx context.Context, request reconcile.Request, k *kabanerov1
// Set the overall status.
isKabaneroReady := isTektonReady &&
isKnativeEventingReady &&
isKnativeServingReady &&
isServerlessReady &&
isCliRouteReady &&
isKabaneroLandingReady &&
isAppsodyReady &&
Expand Down
87 changes: 0 additions & 87 deletions pkg/controller/kabaneroplatform/knative_serving.go

This file was deleted.

Loading

0 comments on commit cf4b582

Please sign in to comment.