-
Notifications
You must be signed in to change notification settings - Fork 232
Adds config map for operator version #563
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
Conversation
|
@PuneetPunamiya Thanks for the pr. Can you please add a commit message explaining what this pr is doing! |
Yeah sure, since the implementation was not complete yet and I have been working on it hence did just created a wip pr, once the implementation is complete will add a proper commit message which describe what the patch does |
e3a5af9 to
85c9478
Compare
4697ebb to
4daed96
Compare
4daed96 to
5a79d6e
Compare
| return []mf.Transformer{} | ||
| } | ||
| func (oe kubernetesExtension) PreReconcile(context.Context, v1alpha1.TektonComponent) error { | ||
| func (oe kubernetesExtension) PreReconcile(ctx context.Context, tc v1alpha1.TektonComponent) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see configmap for the openshift and k8s
but this code is in k8s extension?
do we not need to add in openshift part?
6285408 to
5a47d67
Compare
| // Pass the object through defaulting | ||
| tp.SetDefaults(ctx) | ||
|
|
||
| if err := r.ensureTektonConfigExists(ctx, tp); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are we trying to do here using this func?
7a1397e to
7dec068
Compare
|
@PuneetPunamiya we need one modification in one of the Tasks in Operator release pipeline. A sed command below the already existing ones here:
|
|
@PuneetPunamiya overall this patch looks good. Could you make 🧑💻 3 more changes |
7dec068 to
f8fffd7
Compare
|
/approve |
|
✅ lgtm |
|
@PuneetPunamiya could you add a release note in the PR description format ```release-note
release note line(s)
``` |
- This patch adds a config map which has the operator verison.
The config map is created in the tektonConfig reconciler before
the pre-reconciler is called
- First it checks in the tektonConfig reconciler if the targetNs
exists, if not it creates the targetNs and then in the pipeline
reconciler if the tektonConfig instance exists then just add the
labels from the release yamls if the targetNs is `tekton-pipelines`
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
f8fffd7 to
ae2b0ab
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nikhil-thomas, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
savitaashture
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 👍 🎉
/lgtm
This patch adds a config map which has the operator verison.
The config map is created in the tektonConfig pre-reconciler
First it checks in the tektonConfig reconciler if the targetNs
exists, if not it creates the targetNs and then in the pipeline
reconciler if the tektonConfig instance exists then just add the
labels from the release yamls if the targetNs is
tekton-pipelinesFixes: #539
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