Skip to content

Commit

Permalink
Updated build scripts with morfic namechange
Browse files Browse the repository at this point in the history
  • Loading branch information
fire833 committed May 28, 2022
1 parent 9590d85 commit 28537bd
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 111 deletions.
56 changes: 28 additions & 28 deletions api/openapi/openapi.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
{
"openapi": "3.0.3",
"info": {
"title": "vRoute",
"title": "morfic",
"version": "0.1.0",
"description": "A user/kernel space network control plane.",
"contact": {
"email": "[email protected]",
"name": "Kendall Tauser",
"url": "https://github.com/fire833/vroute"
"url": "https://github.com/fire833/morfic"
},
"license": {
"name": "GPL V2.0",
"url": "https://opensource.org/licenses/gpl-2.0.php"
}
},
"paths": {
"/apis/services.vroute.io/": {
"/apis/services.morfic.io/": {
"summary": "API Group for handling node service management.",
"description": "services.vroute.io is utilized for managing services that are run on the control plane node in conjunction with the vroute control plane itself."
"description": "services.morfic.io is utilized for managing services that are run on the control plane node in conjunction with the morfic control plane itself."
},
"/apis/dns.vroute.io/": {
"/apis/dns.morfic.io/": {
"summary": "API Group for handling DNS management.",
"description": "dns.vroute.io is utilized for managing DNS hostname/IP combinations that are managed by the control plane and updated via various Dynamic DNS providers along with local DNS servers."
"description": "dns.morfic.io is utilized for managing DNS hostname/IP combinations that are managed by the control plane and updated via various Dynamic DNS providers along with local DNS servers."
},
"/apis/addresses.vroute.io/": {
"/apis/addresses.morfic.io/": {
"summary": "API Group for handling host addresses.",
"description": "addresses.vroute.io is utilized for managing addresses for links that are under the management domain of the vroute control plane. Includes both IPv4, and IPv6 link addresses."
"description": "addresses.morfic.io is utilized for managing addresses for links that are under the management domain of the morfic control plane. Includes both IPv4, and IPv6 link addresses."
},
"/apis/interfaces.vroute.io/": {
"/apis/interfaces.morfic.io/": {
"summary": "API Group for handling host links.",
"description": "interfaces.vroute.io is utilized for managing links that are under the management domain of the vroute control plane. This includes links that map to both physical and virtual devices in the kernel."
"description": "interfaces.morfic.io is utilized for managing links that are under the management domain of the morfic control plane. This includes links that map to both physical and virtual devices in the kernel."
},
"/apis/routes.vroute.io/": {
"/apis/routes.morfic.io/": {
"summary": "API Group for handling host routes.",
"description": "routes.vroute.io is utilized for managing routes that that are under the management domain of the vroute control plane. This includes routes from multiple kernel routing tables."
"description": "routes.morfic.io is utilized for managing routes that that are under the management domain of the morfic control plane. This includes routes from multiple kernel routing tables."
},
"/apis/firewall.vroute.io/": {
"/apis/firewall.morfic.io/": {
"summary": "API Group for handling host firewall rules",
"description": "firewall.vroute.io is utilized for managing firewall rules that are under the management domain of the vroute control plane. The API group works with the netfilter and nftables subsystem for managing packet mangling, filtering, and dropping."
"description": "firewall.morfic.io is utilized for managing firewall rules that are under the management domain of the morfic control plane. The API group works with the netfilter and nftables subsystem for managing packet mangling, filtering, and dropping."
},
"/apis/sys.vroute.io/": {
"/apis/sys.morfic.io/": {
"summary": "API Group for miscellaneous node control operations.",
"description": "sys.vroute.io is utilized for managing miscellaneous aspects of the hardware that the vroute control plane sits on, including sysctls, diagnostics, and other privileged/system operations."
"description": "sys.morfic.io is utilized for managing miscellaneous aspects of the hardware that the morfic control plane sits on, including sysctls, diagnostics, and other privileged/system operations."
},
"/apis/authentication.vroute.io/": {
"summary": "API Group for managing vroute authentication",
"description": "authentication.vroute.io is utilized for managing authentication, authorization, and accounting for management/access operations upon the vroute API."
"/apis/authentication.morfic.io/": {
"summary": "API Group for managing morfic authentication",
"description": "authentication.morfic.io is utilized for managing authentication, authorization, and accounting for management/access operations upon the morfic API."
},
"/apis/vpn.vroute.io/": {
"/apis/vpn.morfic.io/": {
"summary": "API Group for managing VPN configurations",
"description": "vpn.vroute.io is utilized for managing vpn tunnels and configuration that are applied to the host on the vroute control plane. The current supported VPN protocols are Wireguard, L2TP, and OpenVPN (with addon service installed)."
"description": "vpn.morfic.io is utilized for managing vpn tunnels and configuration that are applied to the host on the morfic control plane. The current supported VPN protocols are Wireguard, L2TP, and OpenVPN (with addon service installed)."
},
"/apis/nat.vroute.io/": {
"/apis/nat.morfic.io/": {
"summary": "API Group to manage NAT configurations.",
"description": "nat.vroute.io is utilized for managing NAT configurations for packet flows within the management domain of the vroute control plane. This includes 1:1, DNAT, and PAT."
"description": "nat.morfic.io is utilized for managing NAT configurations for packet flows within the management domain of the morfic control plane. This includes 1:1, DNAT, and PAT."
},
"/apis/sys.vroute.io/sysctls/{id}": {
"/apis/sys.morfic.io/sysctls/{id}": {
"summary": "Manage sysctls on the host hardware.",
"get": {
"summary": "Gets the status of a sysctl on the host. Returns the raw value as a string.",
Expand All @@ -78,10 +78,10 @@
}
}
},
"/apis/services.vroute.io/v1": {
"/apis/services.morfic.io/v1": {
"summary": "v1 of the services API."
},
"/apis/vpn.vroute.io/wireguard/": {
"/apis/vpn.morfic.io/wireguard/": {
"summary": "Endpoints to manage Wireguard VPN configurations/state.",
"get": {
"summary": "Gets the status of all L2TP tunnels that are currently configured on the host.",
Expand All @@ -97,7 +97,7 @@
}
}
},
"/apis/vpn.vroute.io/l2tp/": {
"/apis/vpn.morfic.io/l2tp/": {
"summary": "Endpoints to manage L2TP VPN configurations/state.",
"get": {
"summary": "Gets the status of all L2TP tunnels that are currently configured on the host.",
Expand All @@ -112,7 +112,7 @@
}
}
},
"/apis/vpn.vroute.io/openvpn/": {
"/apis/vpn.morfic.io/openvpn/": {
"summary": "Endpoints to manage OpenVPN configurations/state (only if OpenVPN service add-on is loaded into control plane)."
}
},
Expand Down
54 changes: 27 additions & 27 deletions hack/update-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@
echo "Updating API clients..."

client-gen -i \
"github.com/fire833/vroute/pkg/apis/addresses/v1alpha1,\
github.com/fire833/vroute/pkg/apis/authentication/v1,\
github.com/fire833/vroute/pkg/apis/certificates/v1alpha1,\
github.com/fire833/vroute/pkg/apis/config/v1,\
github.com/fire833/vroute/pkg/apis/dns/v1alpha1,\
github.com/fire833/vroute/pkg/apis/firewall/v1alpha1,\
github.com/fire833/vroute/pkg/apis/interfaces/v1,\
github.com/fire833/vroute/pkg/apis/metrics/v1alpha1,\
github.com/fire833/vroute/pkg/apis/nat/v1alpha1,\
github.com/fire833/vroute/pkg/apis/neighbors/v1alpha1,\
github.com/fire833/vroute/pkg/apis/routes/v1,\
github.com/fire833/vroute/pkg/apis/services/v1alpha1,\
github.com/fire833/vroute/pkg/apis/vpn/v1alpha1, \
github.com/fire833/vroute/pkg/apis/addresses,\
github.com/fire833/vroute/pkg/apis/authentication,\
github.com/fire833/vroute/pkg/apis/certificates,\
github.com/fire833/vroute/pkg/apis/config,\
github.com/fire833/vroute/pkg/apis/dns,\
github.com/fire833/vroute/pkg/apis/firewall,\
github.com/fire833/vroute/pkg/apis/interfaces,\
github.com/fire833/vroute/pkg/apis/metrics,\
github.com/fire833/vroute/pkg/apis/nat,\
github.com/fire833/vroute/pkg/apis/neighbors,\
github.com/fire833/vroute/pkg/apis/routes,\
github.com/fire833/vroute/pkg/apis/services,\
github.com/fire833/vroute/pkg/apis/vpn" \
-h boilerplate.go.txt -o "../vendor" -p "github.com/fire833/client-go/vroute" # -n clientset
"github.com/fire833/morfic/pkg/apis/addresses/v1alpha1,\
github.com/fire833/morfic/pkg/apis/authentication/v1,\
github.com/fire833/morfic/pkg/apis/certificates/v1alpha1,\
github.com/fire833/morfic/pkg/apis/config/v1,\
github.com/fire833/morfic/pkg/apis/dns/v1alpha1,\
github.com/fire833/morfic/pkg/apis/firewall/v1alpha1,\
github.com/fire833/morfic/pkg/apis/interfaces/v1,\
github.com/fire833/morfic/pkg/apis/metrics/v1alpha1,\
github.com/fire833/morfic/pkg/apis/nat/v1alpha1,\
github.com/fire833/morfic/pkg/apis/neighbors/v1alpha1,\
github.com/fire833/morfic/pkg/apis/routes/v1,\
github.com/fire833/morfic/pkg/apis/services/v1alpha1,\
github.com/fire833/morfic/pkg/apis/vpn/v1alpha1, \
github.com/fire833/morfic/pkg/apis/addresses,\
github.com/fire833/morfic/pkg/apis/authentication,\
github.com/fire833/morfic/pkg/apis/certificates,\
github.com/fire833/morfic/pkg/apis/config,\
github.com/fire833/morfic/pkg/apis/dns,\
github.com/fire833/morfic/pkg/apis/firewall,\
github.com/fire833/morfic/pkg/apis/interfaces,\
github.com/fire833/morfic/pkg/apis/metrics,\
github.com/fire833/morfic/pkg/apis/nat,\
github.com/fire833/morfic/pkg/apis/neighbors,\
github.com/fire833/morfic/pkg/apis/routes,\
github.com/fire833/morfic/pkg/apis/services,\
github.com/fire833/morfic/pkg/apis/vpn" \
-h boilerplate.go.txt -o "../vendor" -p "github.com/fire833/client-go/morfic" # -n clientset

# mv ../pkg/client/clientset/clientset/* ../pkg/client/clientset

Expand Down
4 changes: 2 additions & 2 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

GOPATH=$(go env GOPATH) ./generate-internal-groups.sh \
deepcopy,client,lister,informer \
github.com/fire833/vroute/pkg/generated github.com/fire833/vroute/pkg/apis github.com/fire833/vroute/pkg/apis \
github.com/fire833/morfic/pkg/generated github.com/fire833/morfic/pkg/apis github.com/fire833/morfic/pkg/apis \
"addresses:v1alpha1 authentication:v1 certificates:v1alpha1 config:v1 dns:v1alpha1 firewall:v1alpha1 interfaces:v1alpha1 metrics:v1alpha1 nat:v1alpha1 neighbors:v1alpha1 routes:v1 services:v1alpha1 vpn:v1alpha1" \
--go-header-file boilerplate.go.txt

GOPATH=$(go env GOPATH) ./generate-groups.sh \
all \
github.com/fire833/vroute/pkg/generated github.com/fire833/vroute/pkg/apis \
github.com/fire833/morfic/pkg/generated github.com/fire833/morfic/pkg/apis \
"addresses:v1alpha1 authentication:v1 certificates:v1alpha1 config:v1 dns:v1alpha1 firewall:v1alpha1 interfaces:v1alpha1 metrics:v1alpha1 nat:v1alpha1 neighbors:v1alpha1 routes:v1 services:v1alpha1 vpn:v1alpha1" \
--go-header-file boilerplate.go.txt

Expand Down
56 changes: 28 additions & 28 deletions hack/update-informers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
echo "Updating API informers..."

informer-gen -i \
github.com/fire833/vroute/pkg/apis/addresses,\
github.com/fire833/vroute/pkg/apis/authentication,\
github.com/fire833/vroute/pkg/apis/certificates,\
github.com/fire833/vroute/pkg/apis/config,\
github.com/fire833/vroute/pkg/apis/dns,\
github.com/fire833/vroute/pkg/apis/firewall,\
github.com/fire833/vroute/pkg/apis/interfaces,\
github.com/fire833/vroute/pkg/apis/metrics,\
github.com/fire833/vroute/pkg/apis/nat,\
github.com/fire833/vroute/pkg/apis/neighbors,\
github.com/fire833/vroute/pkg/apis/routes,\
github.com/fire833/vroute/pkg/apis/services,\
github.com/fire833/vroute/pkg/apis/vpn \
-h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers \
github.com/fire833/morfic/pkg/apis/addresses,\
github.com/fire833/morfic/pkg/apis/authentication,\
github.com/fire833/morfic/pkg/apis/certificates,\
github.com/fire833/morfic/pkg/apis/config,\
github.com/fire833/morfic/pkg/apis/dns,\
github.com/fire833/morfic/pkg/apis/firewall,\
github.com/fire833/morfic/pkg/apis/interfaces,\
github.com/fire833/morfic/pkg/apis/metrics,\
github.com/fire833/morfic/pkg/apis/nat,\
github.com/fire833/morfic/pkg/apis/neighbors,\
github.com/fire833/morfic/pkg/apis/routes,\
github.com/fire833/morfic/pkg/apis/services,\
github.com/fire833/morfic/pkg/apis/vpn \
-h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers \
--single-directory -o ../pkg/client -p informers \
--versioned-clientset-package github.com/fire833/vroute/pkg/client/clientset
--versioned-clientset-package github.com/fire833/morfic/pkg/client/clientset

# Move all of the apis out to the outer directory.
# mv ../pkg/client/informers/apis/* ../pkg/client/informers
Expand All @@ -43,30 +43,30 @@ github.com/fire833/vroute/pkg/apis/vpn \
# rm -rf ../pkg/client/informers/apis

# echo "Rebuilding addresses API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/addresses -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p addresses -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/addresses -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p addresses -o ../pkg/client/informers &
# echo "Rebuilding authentication API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/authentication -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p authetication -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/authentication -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p authetication -o ../pkg/client/informers &
# echo "Rebuilding certificates API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/certificates -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p certificates -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/certificates -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p certificates -o ../pkg/client/informers &
# echo "Rebuilding config API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/config -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p config -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/config -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p config -o ../pkg/client/informers &
# echo "Rebuilding dns API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/dns -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p dns -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/dns -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p dns -o ../pkg/client/informers &
# echo "Rebuilding firewall API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/firewall -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p firewall -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/firewall -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p firewall -o ../pkg/client/informers &
# echo "Rebuilding interfaces API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/interfaces -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p interfaces -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/interfaces -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p interfaces -o ../pkg/client/informers &
# echo "Rebuilding metrics API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/metrics -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p metrics -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/metrics -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p metrics -o ../pkg/client/informers &
# echo "Rebuilding nat API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/nat -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p nat -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/nat -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p nat -o ../pkg/client/informers &
# echo "Rebuilding neighbors API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/neighbors -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p neighbors -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/neighbors -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p neighbors -o ../pkg/client/informers &
# echo "Rebuilding routes API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/routes -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p routes -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/routes -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p routes -o ../pkg/client/informers &
# echo "Rebuilding services API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/services -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p services -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/services -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p services -o ../pkg/client/informers &
# echo "Rebuilding vpn API..."
# informer-gen --input-dirs github.com/fire833/vroute/pkg/apis/vpn -h boilerplate.go.txt --listers-package github.com/fire833/vroute/pkg/client/listers --single-directory -p vpn -o ../pkg/client/informers &
# informer-gen --input-dirs github.com/fire833/morfic/pkg/apis/vpn -h boilerplate.go.txt --listers-package github.com/fire833/morfic/pkg/client/listers --single-directory -p vpn -o ../pkg/client/informers &

# wait
Loading

0 comments on commit 28537bd

Please sign in to comment.