This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Controller struct { | |
| kubeClientSet kubernetes.Interface | |
| echoInformer cache.SharedIndexInformer | |
| jobInformer cache.SharedIndexInformer | |
| scheduledEchoInformer cache.SharedIndexInformer | |
| cronjobInformer cache.SharedIndexInformer | |
| queue workqueue.RateLimitingInterface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var restConfig *rest.Config | |
| var errKubeConfig error | |
| if config.KubeConfig != "" { | |
| restConfig, errKubeConfig = clientcmd.BuildConfigFromFlags("", config.KubeConfig) | |
| } else { | |
| restConfig, errKubeConfig = rest.InClusterConfig() | |
| } | |
| if errKubeConfig != nil { | |
| logger.Fatal("error getting kubernetes config ", err) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | |
| CODEGEN_PKG=${CODEGEN_PKG:-$( | |
| cd "${SCRIPT_ROOT}" | |
| ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package v1alpha1 | |
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| // +genclient | |
| // +genclient:noStatus | |
| // +k8s:deepcopy-gen=true | |
| // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | |
| type Echo struct { | |
| metav1.TypeMeta `json:",inline"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apiextensions.k8s.io/v1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: echos.mmontes.io | |
| spec: | |
| group: mmontes.io | |
| names: | |
| kind: Echo | |
| listKind: EchoList | |
| plural: echos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| name: Release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "☸️ Updating repos..." | |
| helm repo add gotway https://charts.gotway.duckdns.org | |
| helm repo add mmontes https://charts.mmontes-dev.duckdns.org | |
| helm repo add chartmuseum https://chartmuseum.github.io/charts | |
| helm repo update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ $fullName := include "gotway.fullname" . }} | |
| {{ $selectorLabels := include "gotway.selectorLabels" . }} | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: {{ $fullName }} | |
| labels: | |
| {{ include "gotway.labels" . | nindent 4 }} | |
| spec: | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nameOverride: "" | |
| fullnameOverride: "" | |
| image: | |
| repository: gotwaygateway/gotway | |
| pullPolicy: IfNotPresent | |
| tag: "v0.0.2" | |
| service: | |
| type: NodePort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v2 | |
| name: gotway | |
| description: A simple, lightweight and blazingly fast API gateway | |
| # A chart can be either an 'application' or a 'library' chart. | |
| # | |
| # Application charts are a collection of templates that can be packaged into versioned archives | |
| # to be deployed. | |
| # | |
| # Library charts provide useful utilities or functions for the chart developer. They're included as |