| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- import aws from "../assets/aws.png";
- import digitalOcean from "../assets/do.png";
- import gcp from "../assets/gcp.png";
- import github from "../assets/github.png";
- export const infraNames: any = {
- ecr: "Elastic Container Registry (ECR)",
- eks: "Elastic Kubernetes Service (EKS)",
- gcr: "Google Container Registry (GCR)",
- gke: "Google Kubernetes Engine (GKE)",
- docr: "DigitalOcean Container Registry",
- doks: "DigitalOcean Kubernetes Service",
- };
- export const integrationList: any = {
- kubernetes: {
- icon:
- "https://uxwing.com/wp-content/themes/uxwing/download/10-brands-and-social-media/kubernetes.png",
- label: "Kubernetes",
- buttonText: "Add a Cluster",
- },
- repo: {
- icon: "https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png",
- label: "Git Repository",
- buttonText: "Link a Github Account",
- },
- slack: {
- icon:
- "https://user-images.githubusercontent.com/5147537/54070671-0a173780-4263-11e9-8946-09ac0e37d8c6.png",
- label: "Slack",
- buttonText: "Install Application",
- },
- registry: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Docker Registry",
- buttonText: "Add a Registry",
- },
- gke: {
- icon: "https://sysdig.com/wp-content/uploads/2016/08/GKE_color.png",
- label: "Google Kubernetes Engine (GKE)",
- },
- eks: {
- icon: "https://img.stackshare.io/service/7991/amazon-eks.png",
- label: "Amazon Elastic Kubernetes Service (EKS)",
- },
- test: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Testing",
- },
- kube: {
- icon:
- "https://uxwing.com/wp-content/themes/uxwing/download/10-brands-and-social-media/kubernetes.png",
- label: "Upload Kubeconfig",
- },
- dockerhub: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Docker Hub",
- },
- gcr: {
- icon:
- "https://carlossanchez.files.wordpress.com/2019/06/21046548.png?w=640",
- label: "Google Container Registry (GCR)",
- },
- ecr: {
- icon:
- "https://avatars2.githubusercontent.com/u/52505464?s=400&u=da920f994c67665c7ad6c606a5286557d4f8555f&v=4",
- label: "Elastic Container Registry (ECR)",
- },
- doks: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Digital Ocean Kubernetes Service (DOKS)",
- },
- docr: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Digital Ocean Container Registry (DOCR)",
- },
- aks: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Azure Kubernetes Service (AKS)",
- },
- acr: {
- icon:
- "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png",
- label: "Azure Container Registry (ACR)",
- },
- aws: {
- icon: aws,
- label: "AWS",
- },
- gcp: {
- icon: gcp,
- label: "GCP",
- },
- do: {
- icon: digitalOcean,
- label: "DigitalOcean",
- },
- github: {
- icon: github,
- label: "GitHub",
- },
- gitlab: {
- icon: "https://about.gitlab.com/images/press/logo/png/gitlab-icon-rgb.png",
- label: "Gitlab",
- buttonText: "Add instance",
- },
- rds: {
- icon:
- "https://cdn2.iconfinder.com/data/icons/amazon-aws-stencils/100/Database_copy_Amazon_RDS-512.png",
- label: "Amazon Relational Database Service",
- },
- s3: {
- icon:
- "https://cdn2.iconfinder.com/data/icons/amazon-aws-stencils/100/Database_copy_Amazon_RDS-512.png",
- label: "Amazon S3 Bucket",
- },
- };
- export const isAlphanumeric = (x: string | null) => {
- let re = /^[a-z0-9-]+$/;
- if (!x || x.length == 0 || x.search(re) === -1) {
- return false;
- }
- return true;
- };
- export const getIgnoreCase = (object: any, key: string) => {
- return object[
- Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase())
- ];
- };
|