Skip to content

Commit 781926d

Browse files
committed
Add created-timestamp to pod instead of startup
The startup-timestamp is not known add time of adding the labels.
1 parent f03227e commit 781926d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/backend/AbstractContainerBackend.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public abstract class AbstractContainerBackend implements IContainerBackend {
7878
protected static final String RUNTIME_LABEL_USER_GROUPS = "openanalytics.eu/sp-user-groups";
7979
protected static final String RUNTIME_LABEL_REALM_ID = "openanalytics.eu/sp-realm-id";
8080
protected static final String RUNTIME_LABEL_PROXY_SPEC_ID = "openanalytics.eu/sp-spec-id";
81-
protected static final String RUNTIME_LABEL_STARTUP_TIMESTAMP = "openanalytics.eu/sp-proxy-startup-timestamp";
81+
protected static final String RUNTIME_LABEL_CREATED_TIMESTAMP = "openanalytics.eu/sp-proxy-created-timestamp";
8282
protected static final String RUNTIME_LABEL_PROXIED_APP = "openanalytics.eu/sp-proxied-app";
8383
protected static final String RUNTIME_LABEL_INSTANCE = "openanalytics.eu/sp-instance";
8484

@@ -162,7 +162,7 @@ protected void doStartProxy(Proxy proxy) throws Exception {
162162
spec.addRuntimeLabel(RUNTIME_LABEL_USER_ID, false, proxy.getUserId());
163163
String[] groups = userService.getGroups(userService.getCurrentAuth());
164164
spec.addRuntimeLabel(RUNTIME_LABEL_USER_GROUPS, false, String.join(",", groups));
165-
spec.addRuntimeLabel(RUNTIME_LABEL_STARTUP_TIMESTAMP, false, String.valueOf(proxy.getStartupTimestamp()));
165+
spec.addRuntimeLabel(RUNTIME_LABEL_CREATED_TIMESTAMP, false, String.valueOf(proxy.getCreatedTimestamp()));
166166

167167
ExpressionAwareContainerSpec eSpec = new ExpressionAwareContainerSpec(spec, proxy, expressionResolver);
168168
Container c = startContainer(eSpec, proxy);

0 commit comments

Comments
 (0)