Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
Fixed incorrect kubernetes selector labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasK33 committed Dec 21, 2020
1 parent ee89071 commit 5ac3cdd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
48 changes: 29 additions & 19 deletions devops/kubernetes/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion devops/kubernetes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"cdk8s": "^1.0.0-beta.5",
"constructs": "^3.2.74",
"constructs": "^3.2.76",
"dotenv": "^8.2.0",
"rename-cli": "^6.2.1"
},
Expand Down
5 changes: 3 additions & 2 deletions devops/kubernetes/src/deployment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Construct, Node } from "constructs";
import { Names } from "cdk8s";
import { Construct } from "constructs";
import {
KubeService,
KubeDeployment,
Expand Down Expand Up @@ -78,7 +79,7 @@ export class FortifyDeployment extends Construct {
}

const selectorLabels = {
app: Node.of(this).id,
app: Names.toDnsLabel(this),
};
const labels = {
...selectorLabels,
Expand Down

0 comments on commit 5ac3cdd

Please sign in to comment.