Skip to content

Commit

Permalink
Fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Aug 16, 2024
1 parent b49bf83 commit 91412f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion adapter/internal/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const (
func init() {
flag.BoolVar(&debug, "debug", true, "Use debug logging")
flag.BoolVar(&onlyLogging, "onlyLogging", false, "Only demo AccessLogging Service")
flag.UintVar(&port, "port", 18001, "Management server port")
flag.UintVar(&port, "port", 18000, "Management server port")
flag.UintVar(&alsPort, "als", 18090, "Accesslog server port")
flag.StringVar(&mode, "ads", ads, "Management server type (ads, xds, rest)")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func expectedEnforcerEnv(containerSpec *egv1a1.KubernetesContainerSpec) []corev1
},
{
Name: "ADAPTER_XDS_PORT",
Value: "18001",
Value: "18000",
},
{
Name: "COMMON_CONTROLLER_XDS_PORT",
Expand Down
2 changes: 1 addition & 1 deletion adapter/resources/check_health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
# -----------------------------------------------------------------------

ADAPTER_XDS_PORT="${ADAPTER_XDS_PORT:-18001}"
ADAPTER_XDS_PORT="${ADAPTER_XDS_PORT:-18000}"
ADAPTER_SERVER_NAME="${ADAPTER_SERVER_NAME:-adapter}"
grpc_health_probe -addr "127.0.0.1:${ADAPTER_XDS_PORT}" \
-tls \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class EnvVarConfig {
private static final String DEFAULT_ENFORCER_PUBLIC_CERT_PATH = "/home/wso2/security/keystore/mg.pem";
private static final String DEFAULT_ENFORCER_REGION_ID = "UNKNOWN";
private static final String DEFAULT_ADAPTER_HOST = "adapter";
private static final String DEFAULT_ADAPTER_XDS_PORT = "18001";
private static final String DEFAULT_ADAPTER_XDS_PORT = "18000";
private static final String DEFAULT_COMMON_CONTROLLER_HOST = "common-controller";
private static final String DEFAULT_COMMON_CONTROLLER_XDS_PORT = "18002";
private static final String DEFAULT_COMMON_CONTROLLER_REST_PORT = "18003";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ data:
# limitations under the License.
# -----------------------------------------------------------------------
ADAPTER_XDS_PORT="${ADAPTER_XDS_PORT:-18001}"
ADAPTER_XDS_PORT="${ADAPTER_XDS_PORT:-18000}"
grpc_health_probe -addr "127.0.0.1:${ADAPTER_XDS_PORT}" \
-tls \
-tls-ca-cert "${ADAPTER_PUBLIC_CERT_PATH}" \
Expand Down

0 comments on commit 91412f9

Please sign in to comment.