From b66073618b64aab13d95081a20487ada75a98861 Mon Sep 17 00:00:00 2001 From: David Landry Date: Thu, 5 Sep 2024 13:19:18 -0400 Subject: [PATCH] chore(work): remove goff --- apps/goff/base/default-flags.yaml | 11 --- apps/goff/base/deployment.yaml | 110 --------------------- apps/goff/base/kustomization.yaml | 10 -- apps/goff/base/override-flags.yaml | 15 --- apps/goff/base/relay-config.yaml | 18 ---- apps/goff/overlays/work/config.json | 11 --- apps/goff/overlays/work/kustomization.yaml | 4 - 7 files changed, 179 deletions(-) delete mode 100644 apps/goff/base/default-flags.yaml delete mode 100644 apps/goff/base/deployment.yaml delete mode 100644 apps/goff/base/kustomization.yaml delete mode 100644 apps/goff/base/override-flags.yaml delete mode 100644 apps/goff/base/relay-config.yaml delete mode 100644 apps/goff/overlays/work/config.json delete mode 100644 apps/goff/overlays/work/kustomization.yaml diff --git a/apps/goff/base/default-flags.yaml b/apps/goff/base/default-flags.yaml deleted file mode 100644 index da29b4d..0000000 --- a/apps/goff/base/default-flags.yaml +++ /dev/null @@ -1,11 +0,0 @@ -my-first-flag: - variations: - Variation_1: true - Variation_2: false - trackEvents: false - targeting: - - name: Rule 1 - query: tenant eq 1 - variation: Variation_2 - defaultRule: - variation: Variation_1 diff --git a/apps/goff/base/deployment.yaml b/apps/goff/base/deployment.yaml deleted file mode 100644 index 2345456..0000000 --- a/apps/goff/base/deployment.yaml +++ /dev/null @@ -1,110 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: goff - labels: - app: goff -spec: - selector: - app: goff - type: ClusterIP - ports: - - port: 8080 - targetPort: http - protocol: TCP - name: http ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: goff -spec: - selector: - matchLabels: - app: goff - revisionHistoryLimit: 1 - replicas: 1 - template: - metadata: - annotations: - labels: - app: goff - spec: - containers: - - name: goff - image: gofeatureflag/go-feature-flag:latest - command: - - /go-feature-flag - - --config - - /goff/config.yaml - volumeMounts: - - name: configs - mountPath: /goff/ - ports: - - name: http - protocol: TCP - containerPort: 443 - resources: - requests: - cpu: 150m - memory: 500Mi - limits: - cpu: 1000m - memory: 2000Mi - securityContext: - runAsUser: 1000 - startupProbe: - httpGet: - path: /health - port: http - failureThreshold: 60 - periodSeconds: 10 - terminationGracePeriodSeconds: 1200 - volumes: - - name: configs - configMap: - name: goff-configs - ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - cert-manager.io/cluster-issuer: letsencrypt-issuer - gethomepage.dev/enabled: "true" - gethomepage.dev/name: "goff" - gethomepage.dev/description: "GO Feature Flag" - gethomepage.dev/group: "Work" - nginx.ingress.kubernetes.io/proxy-body-size: "1g" - nginx.ingress.kubernetes.io/proxy-read-timeout: "600" - nginx.ingress.kubernetes.io/proxy-send-timeout: "600" - name: goff - labels: - name: goff -spec: - rules: - - host: work-goff.nc.landry.land - http: - paths: - - backend: - service: - name: goff - port: - name: http - path: / - pathType: Prefix - - path: /metrics - pathType: Prefix - backend: - service: - name: http-svc - port: - number: 80 - - - - tls: - - hosts: - - work-goff.nc.landry.land - secretName: goff-tls diff --git a/apps/goff/base/kustomization.yaml b/apps/goff/base/kustomization.yaml deleted file mode 100644 index 230b975..0000000 --- a/apps/goff/base/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - deployment.yaml -configMapGenerator: - - name: goff-configs - files: - - config.yaml=relay-config.yaml - - default-flags.yaml - - override-flags.yaml diff --git a/apps/goff/base/override-flags.yaml b/apps/goff/base/override-flags.yaml deleted file mode 100644 index dfac4ec..0000000 --- a/apps/goff/base/override-flags.yaml +++ /dev/null @@ -1,15 +0,0 @@ -my-first-flag: - variations: - Variation_1: true - Variation_2: false - trackEvents: false - targeting: - - name: Rule 1 - query: tenant eq 1 - variation: Variation_2 - - name: Rule 2 - query: lastname eq "Doe" - variation: Variation_1 - defaultRule: - variation: Variation_1 - diff --git a/apps/goff/base/relay-config.yaml b/apps/goff/base/relay-config.yaml deleted file mode 100644 index 712017d..0000000 --- a/apps/goff/base/relay-config.yaml +++ /dev/null @@ -1,18 +0,0 @@ -retrievers: - - kind: file - path: /goff/default-flags.yaml - - kind: file - path: /goff/override-flags.yaml - -pollingInterval: 1000 -enablePollingjitter: true -enableSwagger: true -startWithRetrieverError: true - -host: work-goff.nc.landry.land -listen: 443 - -authorizedKeys: - admin: - - "testingtesting123" - diff --git a/apps/goff/overlays/work/config.json b/apps/goff/overlays/work/config.json deleted file mode 100644 index 54605a7..0000000 --- a/apps/goff/overlays/work/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "appName": "goff", - "userGivenName": "goff", - "destNamespace": "work", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/goff/overlays/work", - "srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git", - "srcTargetRevision": "", - "labels": null, - "annotations": null -} diff --git a/apps/goff/overlays/work/kustomization.yaml b/apps/goff/overlays/work/kustomization.yaml deleted file mode 100644 index 2333422..0000000 --- a/apps/goff/overlays/work/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../../base