Skip to content

Commit

Permalink
Merge pull request #104 from linode/fc-feat-harbor-operator
Browse files Browse the repository at this point in the history
feat: harbor app operator
  • Loading branch information
ferruhcihan authored Jul 9, 2024
2 parents ee2c14f + 8d51e7d commit 0502050
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 217 deletions.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@
},
"preLaunchTask": "port-forward-gitea"
},
{
"type": "node",
"request": "launch",
"name": "Debug harbor operator",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "operator:harbor-dev"],
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.env",
"env" : {
"KUBECONFIG": "/path/to/your/kubeconfig.yaml",
"HARBOR_BASE_URL" : "http://localhost",
"HARBOR_BASE_URL_PORT" : "8083",
"HARBOR_OPERATOR_NAMESPACE" : "harbor-app",
"HARBOR_SYSTEM_NAMESPACE" : "harbor",
},
"preLaunchTask": "port-forward-harbor"
},
{
"type": "node",
"request": "launch",
Expand Down
13 changes: 12 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
"reveal": "always",
"panel": "new"
}
},
{
"label": "port-forward-harbor",
"type": "shell",
"command": "export KUBECONFIG=/path/to/your/kubeconfig.yaml && kubectl -n harbor port-forward svc/harbor-core 8083:80",
"problemMatcher": [],
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
"operator:secrets": "node dist/operator/secrets.js",
"operator:gitea-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 ts-node-dev ./src/operator/gitea.ts",
"operator:gitea": "node dist/operator/gitea.js",
"operator:harbor-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 ts-node-dev ./src/operator/harbor.ts",
"operator:harbor": "node dist/operator/harbor.js",
"operator:keycloak-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 ts-node-dev ./src/operator/keycloak.ts",
"operator:keycloak": "node dist/operator/keycloak.js",
"test": "NODE_ENV=test mocha -r ts-node/register -r ts-custom-error --exit src/**/*.test.*"
Expand Down
Loading

0 comments on commit 0502050

Please sign in to comment.