-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: multiple configs * chore: remove temp file at the end
- Loading branch information
Aatman
authored
Sep 8, 2021
1 parent
21b83ab
commit 9f7f265
Showing
9 changed files
with
610 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
72 changes: 72 additions & 0 deletions
72
pkg/kube2cdk8s/.snapshots/kube2cdk8s-TestKube2CDK8SMultipleDeployment
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
new cdk8s.ApiObject("", this, { | ||
apiVersion: "apps/v1", | ||
kind: "Deployment", | ||
metadata: { | ||
name: "my-deployment", | ||
namespace: "my-namespace", | ||
}, | ||
spec: { | ||
selector: { | ||
matchLabels: { | ||
app: "my-deployment", | ||
}, | ||
}, | ||
replicas: 3, | ||
template: { | ||
metadata: { | ||
labels: { | ||
app: "my-deployment", | ||
}, | ||
}, | ||
spec: { | ||
containers: [{ | ||
name: "my-deployment", | ||
image: "my-image", | ||
imagePullPolicy: "Always", | ||
ports: [{ | ||
containerPort: 8080, | ||
}], | ||
}], | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
new cdk8s.ApiObject("", this, { | ||
apiVersion: "apps/v1", | ||
kind: "Deployment", | ||
metadata: { | ||
name: "my-deployment-2", | ||
namespace: "my-namespace-2", | ||
}, | ||
spec: { | ||
selector: { | ||
matchLabels: { | ||
app: "my-deployment-2", | ||
}, | ||
}, | ||
replicas: 4, | ||
template: { | ||
metadata: { | ||
labels: { | ||
app: "my-deployment-2", | ||
}, | ||
}, | ||
spec: { | ||
containers: [{ | ||
name: "my-deployment-2", | ||
image: "my-image-2", | ||
imagePullPolicy: "Always", | ||
ports: [{ | ||
containerPort: 8080, | ||
}], | ||
}], | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
|
||
|
||
|
||
|
69 changes: 69 additions & 0 deletions
69
pkg/kube2cdk8s/.snapshots/kube2cdk8s-TestKube2CDK8SMultipleDeploymentThree
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
new cdk8s.ApiObject("", this, { | ||
apiVersion: "apps/v1", | ||
kind: "Deployment", | ||
metadata: { | ||
name: "my-deployment", | ||
namespace: "my-namespace", | ||
}, | ||
spec: { | ||
selector: { | ||
matchLabels: { | ||
app: "my-deployment", | ||
}, | ||
}, | ||
replicas: 3, | ||
template: { | ||
metadata: { | ||
labels: { | ||
app: "my-deployment", | ||
}, | ||
}, | ||
spec: { | ||
containers: [{ | ||
name: "my-deployment", | ||
image: "my-image", | ||
imagePullPolicy: "Always", | ||
ports: [{ | ||
containerPort: 8080, | ||
}], | ||
}], | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
new cdk8s.ApiObject("", this, { | ||
apiVersion: "apps/v1", | ||
kind: "Deployment", | ||
metadata: { | ||
name: "my-deployment-2", | ||
namespace: "my-namespace-2", | ||
}, | ||
spec: { | ||
selector: { | ||
matchLabels: { | ||
app: "my-deployment-2", | ||
}, | ||
}, | ||
replicas: 4, | ||
template: { | ||
metadata: { | ||
labels: { | ||
app: "my-deployment-2", | ||
}, | ||
}, | ||
spec: { | ||
containers: [{ | ||
name: "my-deployment-2", | ||
image: "my-image-2", | ||
imagePullPolicy: "Always", | ||
ports: [{ | ||
containerPort: 8080, | ||
}], | ||
}], | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
|
Oops, something went wrong.