Skip to content

Commit

Permalink
feat(orb-722): Remove ORB_OTEL_ENABLE=true from provisioning command
Browse files Browse the repository at this point in the history
  • Loading branch information
gpazuch committed Apr 4, 2023
1 parent 01b388a commit 0360791
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
2 changes: 0 additions & 2 deletions ui/src/app/pages/fleet/agents/key/agent.key.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class AgentKeyComponent implements OnInit {
-e ORB_CLOUD_MQTT_CHANNEL_ID=${ this.agent.channel_id } \\
-e ORB_CLOUD_MQTT_KEY=${ this.agent.key } \\
-e PKTVISOR_PCAP_IFACE_DEFAULT=auto \\
-e ORB_OTEL_ENABLE=true \\
orbcommunity/orb-agent`;

this.command2show = `docker run -d --restart=always --net=host \\
Expand All @@ -52,7 +51,6 @@ orbcommunity/orb-agent`;
-e ORB_CLOUD_MQTT_CHANNEL_ID=${ this.agent.channel_id } \\
-e ORB_CLOUD_MQTT_KEY=${ this.agent.key } \\
-e PKTVISOR_PCAP_IFACE_DEFAULT=<mark>auto</mark> \\
-e ORB_OTEL_ENABLE=true \\
orbcommunity/orb-agent`;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Component, Input, OnInit } from '@angular/core';
import { AvailableOS } from 'app/common/services/agents/agents.service';
import { Agent, AgentStates } from 'app/common/interfaces/orb/agent.interface';
import { Component, Input, OnInit } from "@angular/core";
import { AvailableOS } from "app/common/services/agents/agents.service";
import { Agent, AgentStates } from "app/common/interfaces/orb/agent.interface";

@Component({
selector: 'ngx-agent-provisioning',
templateUrl: './agent-provisioning.component.html',
styleUrls: ['./agent-provisioning.component.scss'],
selector: "ngx-agent-provisioning",
templateUrl: "./agent-provisioning.component.html",
styleUrls: ["./agent-provisioning.component.scss"],
})
export class AgentProvisioningComponent implements OnInit {
@Input() agent: Agent;
Expand All @@ -25,9 +25,9 @@ export class AgentProvisioningComponent implements OnInit {
hideCommand: boolean;

constructor() {
this.command2copy = '';
this.command2show = '';
this.copyCommandIcon = 'copy-outline';
this.command2copy = "";
this.command2show = "";
this.copyCommandIcon = "copy-outline";
}

ngOnInit(): void {
Expand All @@ -36,30 +36,28 @@ export class AgentProvisioningComponent implements OnInit {
}

toggleIcon(target) {
if (target === 'command') {
this.copyCommandIcon = 'checkmark-outline';
if (target === "command") {
this.copyCommandIcon = "checkmark-outline";
}
}

makeCommand2Copy() {
// TODO: future - store this elsewhere
if (this.selectedOS === AvailableOS.DOCKER) {
this.command2copy = `docker run -d --restart=always --net=host \\
-e ORB_CLOUD_ADDRESS=${ document.location.hostname } \\
-e ORB_CLOUD_MQTT_ID=${ this.agent?.id } \\
-e ORB_CLOUD_MQTT_CHANNEL_ID=${ this.agent?.channel_id } \\
-e ORB_CLOUD_ADDRESS=${document.location.hostname} \\
-e ORB_CLOUD_MQTT_ID=${this.agent?.id} \\
-e ORB_CLOUD_MQTT_CHANNEL_ID=${this.agent?.channel_id} \\
-e ORB_CLOUD_MQTT_KEY="AGENT_KEY" \\
-e PKTVISOR_PCAP_IFACE_DEFAULT=auto \\
-e ORB_OTEL_ENABLE=true \\
orbcommunity/orb-agent`;

this.command2show = `docker run -d --restart=always --net=host \\
-e ORB_CLOUD_ADDRESS=${ document.location.hostname } \\
-e ORB_CLOUD_MQTT_ID=${ this.agent?.id } \\
-e ORB_CLOUD_MQTT_CHANNEL_ID=${ this.agent?.channel_id } \\
-e ORB_CLOUD_ADDRESS=${document.location.hostname} \\
-e ORB_CLOUD_MQTT_ID=${this.agent?.id} \\
-e ORB_CLOUD_MQTT_CHANNEL_ID=${this.agent?.channel_id} \\
-e ORB_CLOUD_MQTT_KEY=<mark>AGENT_KEY</mark> \\
-e PKTVISOR_PCAP_IFACE_DEFAULT=<mark>auto</mark> \\
-e ORB_OTEL_ENABLE=true \\
orbcommunity/orb-agent`;
}
}
Expand Down

0 comments on commit 0360791

Please sign in to comment.