Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions .goreleaser-potctl-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"

- id: build_linux
Expand All @@ -61,13 +62,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"
flags:
- -v
Expand All @@ -85,13 +87,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"


Expand Down
65 changes: 35 additions & 30 deletions .goreleaser-potctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"

- id: build_linux_amd64
Expand All @@ -62,12 +63,13 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"

- id: build_linux_arm64
Expand All @@ -89,12 +91,13 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"

- id: build_linux_arm
Expand All @@ -119,13 +122,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"

- id: build_windows
Expand All @@ -144,13 +148,14 @@ builds:
- -s -w -X "github.com/datasance/potctl/pkg/util.commit={{ .ShortCommit }}"
- -s -w -X "github.com/datasance/potctl/pkg/util.date={{.Date}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.platform={{.Os}}/{{.Arch}}"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.operatorTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.routerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentTag=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.controllerVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.agentVersion=3.7.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.debuggerTag=latest"
- -s -w -X "github.com/datasance/potctl/pkg/util.natsTag=3.6.0"
- -s -w -X "github.com/datasance/potctl/pkg/util.repo=ghcr.io/datasance"


Expand Down
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ COMMIT ?= $(shell git rev-parse HEAD 2>/dev/null)
BUILD_DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
PREFIX = github.com/datasance/potctl/pkg/util
LDFLAGS += -X $(PREFIX).versionNumber=$(VERSION) -X $(PREFIX).commit=$(COMMIT) -X $(PREFIX).date=$(BUILD_DATE) -X $(PREFIX).platform=$(GOOS)/$(GOARCH)
LDFLAGS += -X $(PREFIX).operatorTag=3.6.0
LDFLAGS += -X $(PREFIX).routerTag=3.6.0
LDFLAGS += -X $(PREFIX).controllerTag=3.6.0
LDFLAGS += -X $(PREFIX).agentTag=3.6.0
LDFLAGS += -X $(PREFIX).controllerVersion=3.6.0
LDFLAGS += -X $(PREFIX).agentVersion=3.6.0
LDFLAGS += -X $(PREFIX).operatorTag=3.7.0
LDFLAGS += -X $(PREFIX).routerTag=3.7.0
LDFLAGS += -X $(PREFIX).controllerTag=3.7.0
LDFLAGS += -X $(PREFIX).agentTag=3.7.0
LDFLAGS += -X $(PREFIX).controllerVersion=3.7.0
LDFLAGS += -X $(PREFIX).agentVersion=3.7.0
LDFLAGS += -X $(PREFIX).debuggerTag=latest
LDFLAGS += -X $(PREFIX).natsTag=2.12.4
LDFLAGS += -X $(PREFIX).repo=ghcr.io/datasance
GO_SDK_MODULE = iofog-go-sdk/v3@v3.6.0
OPERATOR_MODULE = iofog-operator/v3@v3.6.0
GO_SDK_MODULE = iofog-go-sdk/v3@v3.7.0
OPERATOR_MODULE = iofog-operator/v3@v3.7.0
REPORTS_DIR ?= reports
TEST_RESULTS ?= TEST-potctl.txt
TEST_REPORT ?= TEST-potctl.xml
Expand Down
1 change: 1 addition & 0 deletions docs/md/potctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ potctl [flags]
* [potctl legacy](potctl_legacy.md) - Execute commands using legacy CLI
* [potctl logs](potctl_logs.md) - Get log contents of deployed resource
* [potctl move](potctl_move.md) - Move an existing resources inside the current Namespace
* [potctl nats](potctl_nats.md) - Manage NATS resources
* [potctl prune](potctl_prune.md) - prune ioFog resources
* [potctl rebuild](potctl_rebuild.md) - Rebuilds a microservice or system-microservice
* [potctl rename](potctl_rename.md) - Rename the iofog resources that are currently deployed
Expand Down
6 changes: 5 additions & 1 deletion docs/md/potctl_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ potctl delete [flags]
* [potctl delete edge-resource](potctl_delete_edge-resource.md) - Delete an Edge Resource
* [potctl delete microservice](potctl_delete_microservice.md) - Delete a Microservice
* [potctl delete namespace](potctl_delete_namespace.md) - Delete a Namespace
* [potctl delete nats-account-rule](potctl_delete_nats-account-rule.md) - Delete a NATS account rule
* [potctl delete nats-user-rule](potctl_delete_nats-user-rule.md) - Delete a NATS user rule
* [potctl delete registry](potctl_delete_registry.md) - Delete a Registry
* [potctl delete route](potctl_delete_route.md) - Delete a Route
* [potctl delete role](potctl_delete_role.md) - Delete a Role
* [potctl delete rolebinding](potctl_delete_rolebinding.md) - Delete a RoleBinding
* [potctl delete secret](potctl_delete_secret.md) - Delete a Secret
* [potctl delete service](potctl_delete_service.md) - Delete a Service
* [potctl delete serviceaccount](potctl_delete_serviceaccount.md) - Delete a ServiceAccount
* [potctl delete volume](potctl_delete_volume.md) - Delete an Volume
* [potctl delete volume-mount](potctl_delete_volume-mount.md) - Delete a Volume Mount

Expand Down
37 changes: 37 additions & 0 deletions docs/md/potctl_delete_nats-account-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## potctl delete nats-account-rule

Delete a NATS account rule

### Synopsis

Delete a NATS account rule from the Controller.

```
potctl delete nats-account-rule NAME [flags]
```

### Examples

```
potctl delete nats-account-rule NAME
```

### Options

```
-h, --help help for nats-account-rule
```

### Options inherited from parent commands

```
--debug Toggle for displaying verbose output of API clients (HTTP and SSH)
-n, --namespace string Namespace to execute respective command within (default "default")
-v, --verbose Toggle for displaying verbose output of potctl
```

### SEE ALSO

* [potctl delete](potctl_delete.md) - Delete an existing ioFog resource


37 changes: 37 additions & 0 deletions docs/md/potctl_delete_nats-user-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## potctl delete nats-user-rule

Delete a NATS user rule

### Synopsis

Delete a NATS user rule from the Controller.

```
potctl delete nats-user-rule NAME [flags]
```

### Examples

```
potctl delete nats-user-rule NAME
```

### Options

```
-h, --help help for nats-user-rule
```

### Options inherited from parent commands

```
--debug Toggle for displaying verbose output of API clients (HTTP and SSH)
-n, --namespace string Namespace to execute respective command within (default "default")
-v, --verbose Toggle for displaying verbose output of potctl
```

### SEE ALSO

* [potctl delete](potctl_delete.md) - Delete an existing ioFog resource


37 changes: 37 additions & 0 deletions docs/md/potctl_delete_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## potctl delete role

Delete a Role

### Synopsis

Delete a Role from the Controller.

```
potctl delete role NAME [flags]
```

### Examples

```
potctl delete role NAME
```

### Options

```
-h, --help help for role
```

### Options inherited from parent commands

```
--debug Toggle for displaying verbose output of API clients (HTTP and SSH)
-n, --namespace string Namespace to execute respective command within (default "default")
-v, --verbose Toggle for displaying verbose output of potctl
```

### SEE ALSO

* [potctl delete](potctl_delete.md) - Delete an existing ioFog resource


37 changes: 37 additions & 0 deletions docs/md/potctl_delete_rolebinding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## potctl delete rolebinding

Delete a RoleBinding

### Synopsis

Delete a RoleBinding from the Controller.

```
potctl delete rolebinding NAME [flags]
```

### Examples

```
potctl delete rolebinding NAME
```

### Options

```
-h, --help help for rolebinding
```

### Options inherited from parent commands

```
--debug Toggle for displaying verbose output of API clients (HTTP and SSH)
-n, --namespace string Namespace to execute respective command within (default "default")
-v, --verbose Toggle for displaying verbose output of potctl
```

### SEE ALSO

* [potctl delete](potctl_delete.md) - Delete an existing ioFog resource


Loading
Loading