Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Add end to end test #125

Open
dholbach opened this issue Sep 24, 2021 · 3 comments
Open

Add end to end test #125

dholbach opened this issue Sep 24, 2021 · 3 comments
Assignees
Milestone

Comments

@dholbach
Copy link
Contributor

Bring up a kind cluster, apply manifests, do cluster-local change, confirm drift using kubediff.

@dholbach
Copy link
Contributor Author

Potentially re-use some of the work from kured:

@dholbach dholbach added this to the python3 milestone Sep 27, 2021
@imjoseangel imjoseangel self-assigned this Sep 29, 2021
@imjoseangel
Copy link
Contributor

Tested https://github.com/helm/kind-action in a personal repository. We will add to the solution ASAP

@imjoseangel
Copy link
Contributor

@dholbach

I'm going to apply the following changes in a first stage. Then I will improve with different scenarios. I think this is going to be a long one 🤣

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubediff-app
spec:
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      app: kubediff-app
  template:
    metadata:
      labels:
        app: kubediff-app
    spec:
      containers:
      - command:
        - sleep
        - infinity
        image: busybox
        name: kubediff-app
        resources:
          limits:
            cpu: 100m
            memory: 100Mi
          requests:
            cpu: 100m
            memory: 100Mi

Change replicas to 3

Run kubediff

Get

## kubediff/kubediff-app (Deployment.v1.apps)

.spec.replicas: '1' != '3'

and

{
  "deployment.yaml": [
    ".spec.replicas: '1' != '3'"
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants