Read-only mirror of https://github.com/swisscom/provider-cortex — Swisscom. Issues & pull requests at the source.
  • Go 67.4%
  • Go Template 15.3%
  • Shell 9.1%
  • Makefile 7.3%
  • Dockerfile 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marius Leahu f26e624fc0
Cortex basic auth (#10)
* read cortex auth from provider config

* implement basic auth

* parameterize the keys of cortex credentials in secrets
2024-01-12 14:38:29 +01:00
.github update to go-v1.20 2023-10-06 09:09:30 +02:00
apis Cortex basic auth (#10) 2024-01-12 14:38:29 +01:00
build@2672eeb767 update build submodule 2023-10-06 08:58:24 +02:00
cluster add documentation 2023-07-03 13:20:05 +02:00
cmd/provider rename go module 2023-10-06 14:10:13 +02:00
examples Cortex basic auth (#10) 2024-01-12 14:38:29 +01:00
hack Initial commit 2023-06-01 11:16:16 +02:00
internal Cortex basic auth (#10) 2024-01-12 14:38:29 +01:00
package Cortex basic auth (#10) 2024-01-12 14:38:29 +01:00
.gitignore Initial commit 2023-06-01 11:16:16 +02:00
.gitmodules Initial commit 2023-06-01 11:16:16 +02:00
.golangci.yml rename go module 2023-10-06 14:10:13 +02:00
CODE_OF_CONDUCT.md Initial commit 2023-06-01 11:16:16 +02:00
DCO Initial commit 2023-06-01 11:16:16 +02:00
go.mod Cortex basic auth (#10) 2024-01-12 14:38:29 +01:00
go.sum update cortex-tools to latest HEAD 2023-10-06 14:15:52 +02:00
Jenkinsfile add ci setup 2023-07-14 23:05:13 +02:00
LICENSE Initial commit 2023-06-01 11:16:16 +02:00
Makefile rename go module 2023-10-06 14:10:13 +02:00
OWNERS.md Initial commit 2023-06-01 11:16:16 +02:00
PROVIDER_CHECKLIST.md rename go module 2023-10-06 14:10:13 +02:00
README.md add documentation 2023-07-03 13:20:05 +02:00

provider-cortex

provider-cortex is a minimal Crossplane Provider for the Cortex HTTP API. It comes with the following features:

  • A ProviderConfig type which allows setting the X-Scope-OrgID header which is required for Cortex' tenant model
  • A RuleGroup resource type which implements the RuleGroup API
  • An AlertManagerConfig resource type which implements the Alertmanager API

Developing

  1. Run make submodules to initialize the "build" Make submodule we use for CI/CD.
  2. Add your new type by running the following command:
make provider.addtype provider=cortex group=alerts kind=AlertManagerConfiguration
  1. Implement types and controller
  2. Run make reviewable to run code generation, linters, and tests.
  3. Run make build to build the provider.

Refer to Crossplane's CONTRIBUTING.md file for more information on how the Crossplane community prefers to work. The Provider Development guide may also be of use.