Skip to content

Conversation

@pradeepitm12
Copy link
Contributor

@pradeepitm12 pradeepitm12 commented Mar 7, 2022

this adds an option to disable installaion of
community cluster tasks.

If community task fetch urls are not reachable, it retries
after 15 minutes of fixed time.
This helps to reduce error logs.

Signed-off-by: Pradeep Kumar pradkuma@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

Our communitytasks are tasks maintained in tektoncd/catalog, and when the user is in air-gapped
environment the urls's to fetch them are un-reachable. This leads to huge forbidden error logs.

With this pr user gets an option to disable community tasks from getting installed.
Also if the community tasks are not disabled, and the urls are not reachable. After first error operator
do not try to fetch the urls for 15 minutes.

By default community tasks installation is enabled.
communityClusterTasks: true

spec:
  profile: all
  targetNamespace: openshift-pipelines
  addon:
    params:
    - name: clusterTasks
      value: "true"
    - name: pipelineTemplates
      value: "true"
    - name: communityClusterTasks
      value: "true"

Note: community tasks cannot be true if clustertasks is false.

[openshift] add an option to remove to disable community tasks from getting installed.

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Mar 7, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 7, 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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@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 8, 2022
@nikhil-thomas
Copy link
Member

✅ lgtm

@pradeepitm12
Copy link
Contributor Author

cc: @sm43

this adds an option to disable installaion of
community cluster tasks.

If community task fetch urls are not reachable, it retries
after 15 minutes of fixed time.
This helps to reduce error logs.

Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
@@ -0,0 +1,146 @@
package tektonaddon
Copy link
Member

Choose a reason for hiding this comment

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

nit: license

@sm43
Copy link
Member

sm43 commented Mar 8, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 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/tektonaddon_validation.go 87.0% 84.0% -3.0
pkg/reconciler/openshift/tektonaddon/communityClusterTasks.go Do not exist 0.0%

@pradeepitm12
Copy link
Contributor Author

/test pull-tekton-operator-integration-tests

4 similar comments
@pradeepitm12
Copy link
Contributor Author

/test pull-tekton-operator-integration-tests

@pradeepitm12
Copy link
Contributor Author

/test pull-tekton-operator-integration-tests

@sm43
Copy link
Member

sm43 commented Mar 8, 2022

/test pull-tekton-operator-integration-tests

@pradeepitm12
Copy link
Contributor Author

/test pull-tekton-operator-integration-tests

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