Skip to content

Commit

Permalink
Set name on spec containers for demo and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
torleifg committed Nov 12, 2024
1 parent e4a571b commit 47ec2f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
5 changes: 3 additions & 2 deletions deploy/demo/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ spec:
template:
spec:
containers:
- env:
- name: organization-catalog
env:
- name: MONGO_HOST
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -44,4 +45,4 @@ spec:
valueFrom:
secretKeyRef:
name: commonurl-demo
key: ORGANIZATION_CATALOG_BASE_URI
key: ORGANIZATION_CATALOG_BASE_URI
5 changes: 3 additions & 2 deletions deploy/prod/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ spec:
template:
spec:
containers:
- env:
- name: organization-catalog
env:
- name: MONGO_HOST
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -44,4 +45,4 @@ spec:
valueFrom:
secretKeyRef:
name: commonurl-prod
key: ORGANIZATION_CATALOG_BASE_URI
key: ORGANIZATION_CATALOG_BASE_URI
13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>no.digdir</groupId>
Expand All @@ -22,7 +23,7 @@

<properties>
<!--standard properties-->
<java.version>17</java.version>
<java.version>21</java.version>
<java.encoding>UTF-8</java.encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down Expand Up @@ -203,7 +204,9 @@
<executions>
<execution>
<id>compile</id>
<goals> <goal>compile</goal> </goals>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
Expand All @@ -212,7 +215,9 @@
</execution>
<execution>
<id>test-compile</id>
<goals> <goal>test-compile</goal> </goals>
<goals>
<goal>test-compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
Expand Down

0 comments on commit 47ec2f5

Please sign in to comment.