strangelove-ventures / cosmos-operator

Cosmos Operator is a kubernetes operator for managing cosmos nodes
Apache License 2.0
75 stars 18 forks source link

fix(kube): cleanup config manifests #401

Closed nourspace closed 8 months ago

nourspace commented 8 months ago

Tests

Created a dummy config kustomization and tested that allow following scenarios result in the same kustomize build

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: example-ns

resources:
  - /path/to/cosmos-operator/config/default

patches:
  - target:
     kind: Deployment
     name: controller-manager
    patch: |-
      apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: controller-manager
      spec:
        template:
          spec:
            containers:
            - name: manager
              resources:
                limits:
                  memory: 128Mi