Skip to content

Enhance pipeline setup for IT to adapt to gardener environment changes #853

Closed

Description

How to categorize this issue?

/area dev-productivity
/kind enhancement
/priority 1

What would you like to be added:

Enhance the following in current pipeline setup for mcm-provider IT

with @rishabh-11

with @himanshu-kun

non-pipeline changes:

  • Remove old IT code from MCM repo (@piyuagr)

pipeline changes:
@himanshu-kun

  • Create a service account mcm-ci-it in mcm-ci with Admin role
  • Security requirement: Internal job needed to rotate the token for the kubeconfig associated to SA. The token expires every 90 days (default and max) .
    More info here : https:// pages.github.tools.sap/kubernetes/gardener/docs/guides/sap-internal/security/token-request-api/) (Remove interim spaces to make the link)
    • need to be rotated manually every 90days and updated in secret-server, as cc-config rotation method
  • should we create another service account for userData refreshing, or use existing account of any other developer.

@piyuagr

  • Use the kubeconfig to generate admin kubeconfig for *-oot-control and *-oot-target clusters (This step will need to be done everytime the IT is run in pipeline)
  • Turn *-oot-control clusters Worker less to save costs (we can remove *-oot-control also)
    • See if control cluster = target cluster is working fine in IT

@sssash18

  • Create a cluster role and binding which gives access to secrets in garden-core namespace. Associate binding with service account.

Why is this needed:

Recently security hardening has been done for gardener deployment where the kubeconfigs have turned non-static (expires after 24h max). This has created problems for our pipeline IT , given the way we currently set them up. Through this issue we plan to make minimal changes to get the IT up and running.
Some other changes (not-urgent-for-now) are tracked in #787

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

area/dev-productivityDeveloper productivity related (how to improve development)kind/enhancementEnhancement, improvement, extensionpriority/1Priority (lower number equals higher priority)status/closedIssue is closed (either delivered or triaged)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions