function-argo-eks-discovery

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

README

function-argo-eks-discovery

This GitHub repository contains Go code for a Crossplane function that facilitates interaction with Amazon Elastic Kubernetes Service (EKS) clusters. The code is designed to run as a part of Crossplane, allowing you to automate tasks related to EKS clusters within your cloud-native infrastructure.

Overview

The primary purpose of this code is to interact with EKS clusters, fetch cluster information, filter clusters based on specific tags, and create ArgoCD Server managed resources that meet the specified criteria.

The code performs the following actions:

  1. Retrieves parameters and information from the input request.
  2. Initializes an AWS session and an EKS client using the AWS SDK for Go.
  3. Lists all EKS clusters in the specified AWS region.
  4. Filters clusters based on user-defined tags.
  5. For each matching cluster, it decodes the certificate authority data, endpoint and generates a ArgoCD Server managed resource. This ArgoCD Server managed resource is added to the desired resources to be returned as part of the response.

Prerequisites

Before using this code, make sure you have the following prerequisites:

  • An existing Crossplane installation.
  • Appropriate AWS IAM permissions to access EKS clusters and read their tags.

Contributing

We welcome contributions to this repository. If you have improvements, bug fixes, or additional features to add, please submit a pull request, following our guidelines for contribution.

Documentation

Overview

Package main implements a Composition Function.

Directories

Path Synopsis
input
v1beta1
Package v1beta1 contains the input type for the Dummy Function +kubebuilder:object:generate=true +groupName=argo.discover.upbound.io +versionName=v1beta1
Package v1beta1 contains the input type for the Dummy Function +kubebuilder:object:generate=true +groupName=argo.discover.upbound.io +versionName=v1beta1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL