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

fix: add parent namespace and cluster information #3608

Closed
wants to merge 11 commits into from

Conversation

abhimanyubabbar
Copy link
Contributor

What are the changes introduced in this PR?

We have added 2 new labels to be added onto the openfaas-fn pods. This is done to identify the parent namespace and cluster which generates these fn pods. It will help us in situation where we are planning to run the multi-tenant cluster fn functions in enterprise us due to cost savings and hence bringing the bifurcation at the application level.

What is the related Linear task?

Fixes: DAT-1472

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@abhimanyubabbar abhimanyubabbar requested review from a team as code owners July 25, 2024 09:51
@devops-github-rudderstack
Copy link
Contributor

Copy link

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.63%. Comparing base (fa98d66) to head (8377c64).
Report is 17 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3608   +/-   ##
========================================
  Coverage    88.62%   88.63%           
========================================
  Files          592      592           
  Lines        32198    32206    +8     
  Branches      7655     7659    +4     
========================================
+ Hits         28537    28545    +8     
- Misses        3338     3368   +30     
+ Partials       323      293   -30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Jayachand
Jayachand previously approved these changes Jul 29, 2024
@devops-github-rudderstack
Copy link
Contributor

This PR is considered to be stale. It has been open for 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.

kanishkkatara
kanishkkatara previously approved these changes Aug 26, 2024
…d image (#3682)

* fix: login using docker creds on the node to allow to pull the desired image

* fix: add steps to create regcred secret and then patch deployment with it

* chore: fix the github action

* chore: patch the service account in openfaas-fn ns to allow for pulling openfaas flask base images

* chore: minor fixes
@kanishkkatara kanishkkatara dismissed stale reviews from Jayachand and themself via 2ae89d9 August 27, 2024 06:06
@kanishkkatara kanishkkatara requested review from sivashanmukh and a team as code owners August 27, 2024 06:06
@kanishkkatara kanishkkatara force-pushed the fix/add-ns-cluster-labels-openfaas branch from 2ae89d9 to 3d43771 Compare August 27, 2024 06:08
@@ -30,6 +32,8 @@ function generateFunctionName(userTransformation, libraryVersionIds, testMode, h
ids = ids.concat([hashSecret]);
}

ids = ids.concat([PARENT_NAMESPACE, PARENT_CLUSTER]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: add this line above hashsecret

Jayachand
Jayachand previously approved these changes Sep 4, 2024
Copy link

sonarqubecloud bot commented Sep 4, 2024

Jayachand
Jayachand previously approved these changes Sep 4, 2024
kanishkkatara
kanishkkatara previously approved these changes Sep 4, 2024
@kanishkkatara kanishkkatara changed the base branch from develop to hotfix/sept.4th September 4, 2024 10:34
@kanishkkatara kanishkkatara changed the base branch from hotfix/sept.4th to develop September 4, 2024 10:35
@kanishkkatara kanishkkatara dismissed stale reviews from Jayachand and themself September 4, 2024 10:35

The base branch was changed.

@devops-github-rudderstack devops-github-rudderstack deleted the fix/add-ns-cluster-labels-openfaas branch December 5, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants