Skip to content

Commit

Permalink
Merge pull request #160 from kubefirst/feat-refactor_import/export
Browse files Browse the repository at this point in the history
fix: revamp the import/expot functionality
  • Loading branch information
claywd authored Sep 22, 2023
2 parents fb9abeb + 533a095 commit 3d0fa81
Show file tree
Hide file tree
Showing 8 changed files with 322 additions and 223 deletions.
128 changes: 112 additions & 16 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -925,6 +924,12 @@ const docTemplate = `{
"types.CloudflareAuth": {
"type": "object",
"properties": {
"api_token": {
"type": "string"
},
"origin_ca_issuer_key": {
"type": "string"
},
"token": {
"type": "string"
}
Expand Down Expand Up @@ -985,9 +990,6 @@ const docTemplate = `{
"aws_kms_key_id": {
"type": "string"
},
"cf_api_token": {
"$ref": "#/definitions/types.CloudflareAuth"
},
"civo_auth": {
"$ref": "#/definitions/types.CivoAuth"
},
Expand All @@ -1003,6 +1005,9 @@ const docTemplate = `{
"cloud_terraform_apply_failed_check": {
"type": "boolean"
},
"cloudflare_auth": {
"$ref": "#/definitions/types.CloudflareAuth"
},
"cluster_id": {
"type": "string"
},
Expand Down Expand Up @@ -1067,6 +1072,9 @@ const docTemplate = `{
"gitops_template_url": {
"type": "string"
},
"google_auth": {
"$ref": "#/definitions/types.GoogleAuth"
},
"in_progress": {
"type": "boolean"
},
Expand Down Expand Up @@ -1099,13 +1107,19 @@ const docTemplate = `{
"description": "Status",
"type": "string"
},
"subdomain_name": {
"type": "string"
},
"useTelemetry": {
"description": "Telemetry",
"type": "boolean"
},
"users_terraform_apply_check": {
"type": "boolean"
},
"vault_auth": {
"$ref": "#/definitions/types.VaultAuth"
},
"vault_initialized_check": {
"type": "boolean"
},
Expand All @@ -1114,6 +1128,12 @@ const docTemplate = `{
},
"vultr_auth": {
"$ref": "#/definitions/types.VultrAuth"
},
"workload_clusters": {
"type": "array",
"items": {
"$ref": "#/definitions/types.WorkloadCluster"
}
}
}
},
Expand Down Expand Up @@ -1151,7 +1171,8 @@ const docTemplate = `{
"aws",
"civo",
"digitalocean",
"vultr"
"vultr",
"google"
]
},
"cloud_region": {
Expand Down Expand Up @@ -1200,6 +1221,12 @@ const docTemplate = `{
"description": "Git",
"type": "string"
},
"google_auth": {
"$ref": "#/definitions/types.GoogleAuth"
},
"subdomain_name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1258,6 +1285,9 @@ const docTemplate = `{
"do_auth": {
"$ref": "#/definitions/types.DigitaloceanAuth"
},
"google_auth": {
"$ref": "#/definitions/types.GoogleAuth"
},
"vultr_auth": {
"$ref": "#/definitions/types.VultrAuth"
}
Expand Down Expand Up @@ -1365,23 +1395,22 @@ const docTemplate = `{
}
}
},
"types.ImportClusterRequest": {
"types.GoogleAuth": {
"type": "object",
"properties": {
"cloud_provider": {
"key_file": {
"type": "string"
},
"cloud_region": {
"project_id": {
"type": "string"
},
}
}
},
"types.ImportClusterRequest": {
"type": "object",
"properties": {
"cluster_name": {
"type": "string"
},
"state_store_credentials": {
"$ref": "#/definitions/types.StateStoreCredentials"
},
"state_store_details": {
"$ref": "#/definitions/types.StateStoreDetails"
}
}
},
Expand Down Expand Up @@ -1427,6 +1456,9 @@ const docTemplate = `{
"do_auth": {
"$ref": "#/definitions/types.DigitaloceanAuth"
},
"google_auth": {
"$ref": "#/definitions/types.GoogleAuth"
},
"vultr_auth": {
"$ref": "#/definitions/types.VultrAuth"
}
Expand Down Expand Up @@ -1483,6 +1515,9 @@ const docTemplate = `{
},
"secret_access_key": {
"type": "string"
},
"session_token": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -1514,13 +1549,74 @@ const docTemplate = `{
}
}
},
"types.VaultAuth": {
"type": "object",
"properties": {
"kbot_password": {
"type": "string"
},
"root_token": {
"type": "string"
}
}
},
"types.VultrAuth": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"types.WorkloadCluster": {
"type": "object",
"properties": {
"admin_email": {
"type": "string"
},
"cloud_provider": {
"type": "string"
},
"cloud_region": {
"type": "string"
},
"cluster_id": {
"type": "string"
},
"cluster_name": {
"type": "string"
},
"cluster_type": {
"type": "string"
},
"creation_timestamp": {
"type": "string"
},
"dns_provider": {
"type": "string"
},
"domain_name": {
"type": "string"
},
"environment": {
"type": "string"
},
"git_auth": {
"$ref": "#/definitions/types.GitAuth"
},
"instance_size": {
"type": "string"
},
"machine_type": {
"type": "string"
},
"node_count": {
"type": "integer"
},
"status": {
"type": "string"
}
}
}
}
}`
Expand Down
Loading

0 comments on commit 3d0fa81

Please sign in to comment.