Giter VIP home page Giter VIP logo

private-cluster-rhapi-apischeme-updater's Introduction

private-cluster-rhapi-apischeme-updater

The private-cluster-rhapi-apischeme-updater is designed to assist the cloud-ingress-operator in toggling OpenShift Dedicated 4.x clusters as "public" or "private".

Part of the cloud-ingress-operator's functionality is creating an additional API endpoint that will allow Hive and the OSD SRE team to have continued access to manage the clusters on behalf of the customers. This API endpoint is named by default rh-api.<cluster-domain>, and is created using the custom Kubernetes resource APIScheme.

The purpose of this updater is to maintain the rh-api APIScheme resource's spec.allowedCIDRBlocks in an automated way to ensure that the cloud load balancer allows Hive and the SRE team continuous access to the cluster. It does this by dynamically pulling the IPs that Hive and the SRE team may use to access the cluster and updating the rh-api APIScheme resource.

Implementation Details

At its core, the private-cluster-rhapi-apischeme-updater exists as a CronJob that is deployed to Hive environments. When this CronJob runs, it executes the apischeme_SSS.py script in a containerized environment.

The apischeme_SSS.py script dynamically gathers the CIDR blocks necessary for the rh-api APIScheme resource, and creates or updates a SelectorSyncSet object within the Hive environment. The SelectorSyncSet object is then used to update the rh-api APIScheme resource on each OSD cluster that the Hive environment manages.

This ultimately ensures continued access to OSD clusters through such events as IP lease expirations.

private-cluster-rhapi-apischeme-updater's People

Contributors

2uasimojo avatar billmvt avatar csheremeta avatar dobbymoodge avatar maorfr avatar openshift-merge-robot avatar wanghaoran1988 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

private-cluster-rhapi-apischeme-updater's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.