Skip to content

Commit

Permalink
fix: Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmik committed Nov 29, 2023
1 parent 8fe3225 commit 8c3b1a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Helpers for creating k8s resources without abuse of constructor functions.
deployment: $.k8s.apps.v1.Deployment {
metadata+: { name: 'nginx' },
spec: {
spec+: {
replicas: 2,
selector: { matchLabels: { app: 'nginx' } },
template: {
metadata: { labels: { app: 'nginx' } },
spec: {
containers+: {
selector+: { matchLabels: { app: 'nginx' } },
template+: {
metadata+: { labels: { app: 'nginx' } },
spec+: {
containers_+: {
nginx: {
image: 'nginx:1.14.2',
env_+: {
Expand All @@ -45,7 +45,7 @@ Helpers for creating k8s resources without abuse of constructor functions.
service: $.k8s.v1.Service {
metadata+: { name: 'nginx' },
spec+: {
selector: $.deployment.spec.selector.matchLabels,
selector+: $.deployment.spec.selector.matchLabels,
ports_+: {
http: { port: 80, targetPort: 'http' },
},
Expand Down
8 changes: 4 additions & 4 deletions examples/simple.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

deployment: $.k8s.apps.v1.Deployment {
metadata+: { name: 'nginx' },
spec: {
spec+: {
replicas: 2,
selector: { matchLabels: { app: 'nginx' } },
template: {
template+: {
metadata: { labels: { app: 'nginx' } },
spec: {
containers+: {
spec+: {
containers_+: {
nginx: {
image: 'nginx:1.14.2',
env_+: {
Expand Down

0 comments on commit 8c3b1a8

Please sign in to comment.