Skip to content

Ship Tekton Hub via Tekton Operator#467

Merged
tekton-robot merged 1 commit intotektoncd:mainfrom
vinamra28:tekton-hub-in-operator
Mar 2, 2022
Merged

Ship Tekton Hub via Tekton Operator#467
tekton-robot merged 1 commit intotektoncd:mainfrom
vinamra28:tekton-hub-in-operator

Conversation

@vinamra28
Copy link
Member

Changes

This following patch contains controllers for deploying Tekton Hub DB
and API components. This also contains a post-reconciler based on
platform which will add an Ingress in case of kubernetes and Route in
case of OpenShift.

Signed-off-by: vinamra28 vinjain@redhat.com

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

Add Tekton Hub DB and API reconcilers to ship via Tekton Operator.

@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Oct 26, 2021
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 26, 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.5%
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

func (th *TektonHub) SetDefaults(ctx context.Context) {

if th.Spec.Db.DbSecretName == "" {
th.Spec.Db.DbSecretName = "db"
Copy link
Member

Choose a reason for hiding this comment

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

in what namespace the secret need to be created? / will be created?

Copy link
Member

Choose a reason for hiding this comment

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

we should prefix tekton-hub- to all hub resources

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on having prefix, we need to refactor the yamls a bit so that they are specific to tekton hub

@sm43
Copy link
Member

sm43 commented Oct 26, 2021

Could you also add a doc with installations steps.. would be easy to review :)

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 0259532 to 2e68b39 Compare October 26, 2021 05:36
@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.5%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 2e68b39 to 8cbdaa3 Compare October 26, 2021 05:46
@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.5%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 8cbdaa3 to 1628274 Compare October 27, 2021 05:28
@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.5%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 1628274 to cb64ff6 Compare October 27, 2021 06:16
@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.5%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from cb64ff6 to 547d336 Compare October 28, 2021 09:12
@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 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.5%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 547d336 to 4faeea9 Compare October 28, 2021 09:17
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 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.5%
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 39.1%
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 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.1%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 497438a to 3024723 Compare February 25, 2022 12:06
@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.1%
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

@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.1%
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

@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.1%
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

@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.1%
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

@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.1%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 0cde000 to 9b6ae91 Compare February 28, 2022 04:53
@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.1%
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

@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.1%
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

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 9b6ae91 to 5d0d041 Compare February 28, 2022 04:58
@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.1%
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

/test pull-tekton-operator-integration-tests

@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from 5d0d041 to e794aeb Compare February 28, 2022 08:45
@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.1%
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

@piyush-garg
Copy link
Contributor

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 1, 2022
@nikhil-thomas
Copy link
Member

/hold cancel

holding till we have a mechanism to pull in hub payload (instead of adding the release.yaml in this codebase)

as this is resolved.
the release.yaml is not embedded in the codebase anymore.

This following patch contains controllers for deploying Tekton Hub DB
and API components. This also contains a post-reconciler based on
platform which will add an Ingress in case of kubernetes and Route in
case of OpenShift.

Signed-off-by: vinamra28 <vinjain@redhat.com>
@vinamra28 vinamra28 force-pushed the tekton-hub-in-operator branch from e794aeb to e542f81 Compare March 2, 2022 10:04
@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.1%
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

@nikhil-thomas
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 2, 2022
@nikhil-thomas
Copy link
Member

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nikhil-thomas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 2, 2022
@tekton-robot tekton-robot merged commit 01d6f3e into tektoncd:main Mar 2, 2022
@vinamra28 vinamra28 deleted the tekton-hub-in-operator branch October 6, 2023 18:28
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants