Rename com.meesho/org.meesho namespace to com.homelab/org.homelab
Renames src/com/meesho -> src/com/homelab, resources/com/meesho -> resources/com/homelab, resources/org/meesho -> resources/org/homelab (via git mv, preserving history), and sweeps every remaining occurrence of "meesho" (any casing) out of package declarations, imports, libraryResource() paths, and comments across the whole repo. Also drops the per-user allowlist in vars/eksCICD.groovy, which hardcoded real former-colleagues' emails and doesn't apply to a single-person homelab — that branch is now permanently skipped rather than deleted outright, to avoid hand-editing the escape-sequence-heavy echo blocks it guards (eksCICD.groovy itself is unused legacy code, not called by homelabPipeline.groovy). Does not touch the ~114 files that were already missing from the working tree but still tracked in the prior commit — that's unrelated pre-existing state, left as-is.
This commit is contained in:
+17
-17
@@ -1,17 +1,17 @@
|
||||
import com.meesho.utilities.gitActions
|
||||
import com.meesho.utilities.buTeamMapping
|
||||
import com.meesho.utilities.getYamlParameter
|
||||
import com.meesho.utilities.constructTemplate
|
||||
import com.meesho.stages.multiBranchPipeline
|
||||
import com.meesho.stages.deployArgoCD
|
||||
import com.homelab.utilities.gitActions
|
||||
import com.homelab.utilities.buTeamMapping
|
||||
import com.homelab.utilities.getYamlParameter
|
||||
import com.homelab.utilities.constructTemplate
|
||||
import com.homelab.stages.multiBranchPipeline
|
||||
import com.homelab.stages.deployArgoCD
|
||||
|
||||
def call(Map params){
|
||||
podTemplate(yaml: libraryResource('org/meesho/pod.yaml')) {
|
||||
podTemplate(yaml: libraryResource('org/homelab/pod.yaml')) {
|
||||
node(POD_LABEL) {
|
||||
container('devops-tools') {
|
||||
timestamps{
|
||||
ansiColor("xterm"){
|
||||
env.GITHUB_CRED = 'svc-devops-meesho'
|
||||
env.GITHUB_CRED = 'svc-devops-homelab'
|
||||
def gitObj = new gitActions()
|
||||
def bu_team_obj = new buTeamMapping()
|
||||
def constructObj = new constructTemplate()
|
||||
@@ -123,11 +123,11 @@ def call(Map params){
|
||||
log.info("set min and nodeselector")
|
||||
if (value_properties_content['ingress_class']!= "contour-external"){
|
||||
if(value_properties_content['host']){
|
||||
value_properties_content.host = application_config['app_name']+".prd.meesho.int"
|
||||
value_properties_content.host = application_config['app_name']+".prd.homelab.int"
|
||||
}
|
||||
else if(value_properties_content.hosts){
|
||||
for (host_arr in value_properties_content.hosts){
|
||||
host_arr.host = application_config['app_name']+".prd.meesho.int"
|
||||
host_arr.host = application_config['app_name']+".prd.homelab.int"
|
||||
}
|
||||
}
|
||||
if (application_config.priority_v2 == "up0" || application_config.priority_v2 == "sp0" || application_config.priority_v2 == "cp0"){
|
||||
@@ -143,7 +143,7 @@ def call(Map params){
|
||||
log.info("set host")
|
||||
if (value_properties_content.serviceAccount){
|
||||
value_properties_content.serviceAccount.annotations.remove('eks.amazonaws.com/role-arn')
|
||||
value_properties_content.serviceAccount.annotations['iam.gke.io/gcp-service-account'] = "sa-${bu_short}-prd-${app_name_short}@meesho-${BU}-prd-0622.iam.gserviceaccount.com"
|
||||
value_properties_content.serviceAccount.annotations['iam.gke.io/gcp-service-account'] = "sa-${bu_short}-prd-${app_name_short}@homelab-${BU}-prd-0622.iam.gserviceaccount.com"
|
||||
}
|
||||
log.info("set service account")
|
||||
dir(helm_repo_name){
|
||||
@@ -190,8 +190,8 @@ def call(Map params){
|
||||
log.info("Jenkins job created")
|
||||
}
|
||||
// stage('GCP: Create DNS record'){
|
||||
// def zone="pvt-meesho-admin-prd-meesho-int"
|
||||
// def project="meesho-admin-prd-0622"
|
||||
// def zone="pvt-homelab-admin-prd-homelab-int"
|
||||
// def project="homelab-admin-prd-0622"
|
||||
// def app_name_list = application_info_map.collect{ it.key }
|
||||
// log.info(app_name_list)
|
||||
// for (app_name in app_name_list) {
|
||||
@@ -200,7 +200,7 @@ def call(Map params){
|
||||
// def BU=application_info_map[app_name].bu
|
||||
// def dns_status= sh(script: "gcloud dns --project=${project} record-sets describe ${host} --zone=${zone} --type='CNAME' ",returnStatus: true)
|
||||
// if( dns_status != 0 ){
|
||||
// dns_status = sh(script: "gcloud dns --project=${project} record-sets create ${host} --zone=${zone} --type=CNAME --ttl='300' --rrdatas='${ingress_class}.${BU}.prd.prd.meesho.int.' ",returnStatus: true)
|
||||
// dns_status = sh(script: "gcloud dns --project=${project} record-sets create ${host} --zone=${zone} --type=CNAME --ttl='300' --rrdatas='${ingress_class}.${BU}.prd.prd.homelab.int.' ",returnStatus: true)
|
||||
// if(dns_status == 0 ){
|
||||
// log.info("DNS recordSet ${host} created successfully")
|
||||
// }
|
||||
@@ -214,7 +214,7 @@ def call(Map params){
|
||||
// stage('GCP: Create workload identity'){
|
||||
// def bu_short=bu_team_obj.get_bu_initials(application_info_map[app_name].bu)
|
||||
// def BU = application_info_map[app_name].bu
|
||||
// def project="meesho-${BU}-prd-0622"
|
||||
// def project="homelab-${BU}-prd-0622"
|
||||
// def app_name_list = application_info_map.collect{ it.key }
|
||||
// for (app_name in app_name_list){
|
||||
// if (params.provide_service_role){
|
||||
@@ -222,8 +222,8 @@ def call(Map params){
|
||||
// def app_name_short=app_name
|
||||
// def sa = "sa-${bu_short}-prd-${app_name_short}"
|
||||
// sh(script: "gcloud iam service-accounts create ${sa} --display-name='service account for ${app_name}' --project=${project} ")
|
||||
// sh(script: "gcloud iam service-accounts add-iam-policy-binding --role roles/iam.workloadIdentityUser --member 'serviceAccount:${sa}@meesho-${BU}-prd-0622.iam.gserviceaccount.com' --project=meesho-${BU}-prd-0622")
|
||||
// sh(script: "gcloud iam service-accounts add-iam-policy-binding --role roles/${params.SA_role} --member 'serviceAccount:${sa}@meesho-${BU}-prd-0622.iam.gserviceaccount.com' --project=meesho-${BU}-prd-0622")
|
||||
// sh(script: "gcloud iam service-accounts add-iam-policy-binding --role roles/iam.workloadIdentityUser --member 'serviceAccount:${sa}@homelab-${BU}-prd-0622.iam.gserviceaccount.com' --project=homelab-${BU}-prd-0622")
|
||||
// sh(script: "gcloud iam service-accounts add-iam-policy-binding --role roles/${params.SA_role} --member 'serviceAccount:${sa}@homelab-${BU}-prd-0622.iam.gserviceaccount.com' --project=homelab-${BU}-prd-0622")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user