Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Hub UI Component in operator #479

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

PuneetPunamiya
Copy link
Member

@PuneetPunamiya PuneetPunamiya commented Oct 29, 2021

  • This patch adds Hub UI in operator where it deploys
    Hub UI

Signed-off-by: Puneet Punamiya ppunamiy@redhat.com

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Oct 29, 2021
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 29, 2021
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 41.2%
pkg/apis/operator/v1alpha1/tektonhub_types.go Do not exist 0.0%
pkg/apis/operator/v1alpha1/tektonhub_validation.go Do not exist 91.7%
pkg/apis/operator/v1alpha1/tektoninstallerset_lifecycle.go 59.3% 56.7% -2.6
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 80.9% 82.0% 1.1

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 41.2%
pkg/apis/operator/v1alpha1/tektonhub_types.go Do not exist 0.0%
pkg/apis/operator/v1alpha1/tektonhub_validation.go Do not exist 91.7%
pkg/apis/operator/v1alpha1/tektoninstallerset_lifecycle.go 59.3% 56.7% -2.6
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 80.9% 82.0% 1.1

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 41.2%
pkg/apis/operator/v1alpha1/tektonhub_types.go Do not exist 0.0%
pkg/apis/operator/v1alpha1/tektonhub_validation.go Do not exist 91.7%
pkg/apis/operator/v1alpha1/tektoninstallerset_lifecycle.go 59.3% 56.7% -2.6
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 80.9% 82.0% 1.1

@PuneetPunamiya
Copy link
Member Author

/retest

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 17, 2021
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 8, 2022
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 40.7%
pkg/apis/operator/v1alpha1/tektonhub_types.go 100.0% 33.3% -66.7
pkg/apis/operator/v1alpha1/tektonhub_validation.go 100.0% 95.5% -4.5
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 54.7% 58.3% 3.6

@PuneetPunamiya
Copy link
Member Author

/test pull-tekton-operator-build-tests

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 40.7%
pkg/apis/operator/v1alpha1/tektonhub_types.go 100.0% 33.3% -66.7
pkg/apis/operator/v1alpha1/tektonhub_validation.go 100.0% 95.5% -4.5
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 54.7% 58.3% 3.6

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 100.0%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 40.7%
pkg/apis/operator/v1alpha1/tektonhub_types.go 100.0% 33.3% -66.7
pkg/apis/operator/v1alpha1/tektonhub_validation.go 100.0% 95.5% -4.5
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 54.7% 58.3% 3.6

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 10, 2022
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2022
@PuneetPunamiya PuneetPunamiya changed the title Hub in operator Adds Hub UI Component in operator Feb 28, 2022
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 76.3% 77.2% 0.9

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 87.5%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 39.3%
pkg/apis/operator/v1alpha1/tektonhub_types.go 100.0% 33.3% -66.7
pkg/apis/operator/v1alpha1/tektonhub_validation.go 100.0% 93.3% -6.7
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 76.3% 77.2% 0.9

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_defaults.go Do not exist 83.3%
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go Do not exist 39.3%
pkg/apis/operator/v1alpha1/tektonhub_types.go 100.0% 33.3% -66.7
pkg/apis/operator/v1alpha1/tektonhub_validation.go 100.0% 96.2% -3.8
pkg/reconciler/common/releases.go 41.9% 41.3% -0.7
pkg/reconciler/kubernetes/tektoninstallerset/install.go 76.3% 77.2% 0.9

@PuneetPunamiya
Copy link
Member Author

/test pull-tekton-operator-build-tests

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 2, 2022
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

@@ -75,8 +77,10 @@ const (
dbInstallerSet = "DbInstallerSet"
dbMigrationInstallerSet = "DbMigrationInstallerSet"
apiInstallerSet = "ApiInstallerSet"
uiInstallerSet = "UiInstallerSet"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are this used?
we should name as HubApiInstallerSet and similar

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while storing the name of installer set in tekton hub cr
I think it should be fine keeping it the same because

when we do k get tektonhub hub -oyaml at the end we'll see the following map under hubInstallerSets

  hubInstallerSets:
    ApiInstallerSet: tekton-hub-api-xlnxs
    DbInstallerSet: tekton-hub-db-pbfpd
    DbMigrationInstallerSet: tekton-hub-db-migration-9knfw
    UiInstallerSet: tekton-hub-ui-qfpwp

@@ -63,6 +64,13 @@ type ApiSpec struct {
RouteHostUrl string `json:"routeHostUrl,omitempty"`
}

type UiSpec struct {
ApiUrl string `json:"apiUrl,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can user provide api url?
and operator will use that instead of api it installed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, no user can't provide an api url,
but in future we can add a mechanism for this

@PuneetPunamiya PuneetPunamiya force-pushed the hub-in-operator branch 2 times, most recently from f865426 to dd30003 Compare March 2, 2022 16:29
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

@PuneetPunamiya
Copy link
Member Author

/test pull-tekton-operator-integration-tests

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

   - This patch adds Hub UI in operator where it deploys
     Hub UI

   - Firstly it checks if the value for ui is true or false,
     in the cr, based on that it creates route in case of
     openshift and then creates the configMap for ui and
     installs Hub UI in the default targetNamespace

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/operator/v1alpha1/tektonhub_lifecycle.go 39.1% 39.3% 0.2

@PuneetPunamiya
Copy link
Member Author

/retest

2 similar comments
@PuneetPunamiya
Copy link
Member Author

/retest

@PuneetPunamiya
Copy link
Member Author

/retest

@sm43
Copy link
Member

sm43 commented Mar 4, 2022

naming change to be handled in follow up PRs
merging for now
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 4, 2022
@tekton-robot tekton-robot merged commit cba3675 into tektoncd:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants