Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2025 Intel Corporation
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2025 Intel Corporation
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func AsdfPlugins() error
- func Clean(ctx context.Context) error
- func CreateDefaultKeyCloakUser(ctx context.Context, client *gocloak.GoCloak, token *gocloak.JWT, ...) (string, error)
- func GetApiToken(client *http.Client, username string, password string) (*string, error)
- func GetBranchName() (string, error)
- func GetClient() (*http.Client, error)
- func GetDebVersion() (string, error)
- func GetDefaultOrchPassword() (string, error)
- func GetKeycloakSecret() (string, error)
- func GetProjectId(ctx context.Context, orgName, projectName string) (string, error)
- func GetRepoVersion() (string, error)
- func GetRoleFromKeycloak(ctx context.Context, cli *http.Client, token, roleName string) (string, error)
- func GetUserID(cli *http.Client, username, token string) (string, error)
- func KeycloakLogin(ctx context.Context) (*gocloak.GoCloak, *gocloak.JWT, error)
- func LookupOrchestratorDomain() (string, error)
- func LookupOrchestratorIP() (string, error)
- func ManageRoles(cli *http.Client, token, action, username, orgUUID, projUUID string) error
- func ManageTenancyUserAndRoles(ctx context.Context, cli *http.Client, ...) error
- func OrchPassword() error
- func RuntimeProjUid(projName string) (string, error)deprecated
- func TryToCreateECRRepository(ctx context.Context, repositoryName string) error
- func UploadFiles(paths []string, domain string, projectName string, edgeInfraUser string, ...) error
- type App
- type Argo
- type ClusterConfig
- type CoUtils
- type ComponentDetails
- type Config
- type Database
- type Deploy
- func (d Deploy) AddKyvernoPolicy() error
- func (d Deploy) Argocd(targetEnv string) error
- func (d Deploy) EdgeCluster(targetEnv string) error
- func (d Deploy) EdgeClusterWithLabels(targetEnv string, labels string) error
- func (d Deploy) EdgeClusterWithProject(targetEnv string, orgName string, projectName string) error
- func (d Deploy) EdgeNetwork(ctx context.Context) error
- func (d Deploy) EdgeNetworkDNS(ctx context.Context) error
- func (Deploy) EdgeStoragePool(ctx context.Context) error
- func (d Deploy) Gitea(targetEnv string) error
- func (d Deploy) Kind(targetEnv string) error
- func (d Deploy) KindAll() error
- func (d Deploy) KindCustom() error
- func (d Deploy) KindMinimal() error
- func (d Deploy) KindPreset(clusterPreset string) error
- func (Deploy) LEOrchestratorCABundle() error
- func (d Deploy) OnPrem(ctx context.Context) error
- func (d Deploy) Orch(targetEnv string) error
- func (d Deploy) OrchCA() error
- func (d Deploy) OrchLocal(targetEnv string) error
- func (d Deploy) StartGiteaProxy() error
- func (d Deploy) StopAllKubectlProxies() error
- func (d Deploy) StopGiteaProxy() error
- func (d Deploy) VEN(ctx context.Context, flow string, serialNumber string) error
- func (d Deploy) VENWithFlow(ctx context.Context, flow string, serialNumber string) error
- func (d Deploy) VictoriaMetrics(cmd string) error
- func (Deploy) WaitUntilComplete(ctx context.Context) error
- type Deps
- type DevUtils
- func (DevUtils) CreateDefaultUser(ctx context.Context) error
- func (DevUtils) DeployEnic(replicas int, targetEnv string) error
- func (DevUtils) GetEnicSerialNumber() error
- func (DevUtils) GetEnicUUID() error
- func (DevUtils) ProvisionEnic(podName string) error
- func (DevUtils) RegisterEnic(podName string) error
- func (DevUtils) WaitForEnic() error
- func (DevUtils) WaitForEnicNodeAgent() error
- type Gen
- func (Gen) BiosTraefikhostfile(ip string, addComment bool) error
- func (g Gen) DockerImageManifest() error
- func (g Gen) DumpReleaseImageManifest() error
- func (g Gen) DumpReleaseManifest() error
- func (g Gen) FirewallDoc() error
- func (Gen) GenericHostfile(ip string, host string, addComment bool) error
- func (g Gen) GetHostSNICollection() error
- func (Gen) GethostSNICollection() (string, error)
- func (g Gen) Hostfile(ip string) error
- func (g Gen) HostfileTraefik() error
- func (g Gen) LEOrchestratorCABundle() error
- func (g Gen) LocalReleaseImageManifest(manifestFilename string) error
- func (g Gen) OrchCA() error
- func (g Gen) OrchestratorDomain() error
- func (Gen) RegistryCacheCert(targetEnv string) error
- func (g Gen) ReleaseImageManifest(manifestFilename string) error
- func (g Gen) ReleaseManifest(manifestFilename string) error
- type Keycloak
- type Lint
- type LogUtils
- type Manifest
- type Node
- type OnboardingFlow
- type Publish
- type Registry
- type Router
- type Tarball
- type TarballManifest
- type TenantUtils
- func (TenantUtils) CreateClusterOrchUsers(ctx context.Context, orgName, projectName, coUserPrefix string) error
- func (TenantUtils) CreateDefaultMtSetup(ctx context.Context) error
- func (TenantUtils) CreateEdgeInfraUsers(ctx context.Context, orgName, projectName, edgeInfraUserPrefix string) error
- func (TenantUtils) CreateOrg(ctx context.Context, org string) error
- func (TenantUtils) CreateProjectAdminInOrg(ctx context.Context, orgName string, projectAdminUser string) error
- func (TenantUtils) CreateProjectInOrg(ctx context.Context, orgName string, projectName string) error
- func (TenantUtils) DeleteOrg(ctx context.Context, org string) error
- func (TenantUtils) DeleteProject(ctx context.Context, org, project string) error
- func (TenantUtils) GetOrg(ctx context.Context, orgName string) error
- func (TenantUtils) GetProject(ctx context.Context, orgName, projectName string) error
- func (TenantUtils) WaitUntilProjectReady(ctx context.Context, orgName, projectName string) (string, error)
- func (TenantUtils) WaitUntilProjectWatchersReady(ctx context.Context, orgName, projectName string) (string, error)
- type Test
- func (Test) ChartsAvailableOnReleaseService(ctx context.Context) error
- func (t Test) ClusterOrchSmokeTest(ctx context.Context) error
- func (Test) ContainersAvailableOnReleaseService(ctx context.Context, firstPartyOnly bool) error
- func (t Test) CreateTestProject(ctx context.Context) error
- func (t Test) Deployment() error
- func (t Test) E2e(ctx context.Context) error
- func (t Test) E2eAlertsObservability(ctx context.Context) error
- func (t Test) E2eAlertsObservabilityExtended(ctx context.Context) error
- func (t Test) E2eAutocert(ctx context.Context) error
- func (t Test) E2eByLabel(label string) error
- func (t Test) E2eEnObservability(ctx context.Context) error
- func (t Test) E2eObservability(ctx context.Context) error
- func (t Test) E2eOnPrem(ctx context.Context) error
- func (t Test) E2eOrchObservability(ctx context.Context) error
- func (t Test) E2eSreObservability(ctx context.Context) error
- func (t Test) E2eSreObservabilityNoEnic(ctx context.Context) error
- func (t Test) E2eTenancy(ctx context.Context) error
- func (t Test) E2eTenancyApiGw(ctx context.Context) error
- func (t Test) FlexCore() error
- func (t Test) Go() error
- func (Test) ImagePullPolicyCompliance(ctx context.Context) error
- func (Test) Onboarding() error
- func (t Test) Pods() error
- func (Test) PolicyCompliance(ctx context.Context) error
- func (t Test) Stress(ctx context.Context) error
- type Undeploy
- func (Undeploy) EdgeCluster(orgName, projectName string) error
- func (u Undeploy) EdgeNetwork(ctx context.Context) error
- func (Undeploy) EdgeNetworkDNS(ctx context.Context) error
- func (Undeploy) EdgeStoragePool(ctx context.Context) error
- func (Undeploy) Kind() error
- func (u Undeploy) OnPrem(ctx context.Context) error
- func (Undeploy) VEN(ctx context.Context, serialNumber string) error
- type Use
- type Vault
- type Version
Constants ¶
const ( AWSRegion = "us-west-2" InternalRegistryRepoURL = "080137407410.dkr.ecr.us-west-2.amazonaws.com" PublicRegistryRepoURL = "registry-rs.edgeorchestration.intel.com" RepositoryName = "edge-orch" RegistryRepoSubProj = "common" InternalContainerRegistry = InternalRegistryRepoURL + "/" + RepositoryName + "/" + RegistryRepoSubProj PublicContainerRegistry = PublicRegistryRepoURL + "/" + RepositoryName + "/" + RegistryRepoSubProj InternalChartRegistry = InternalRegistryRepoURL + "/" + RepositoryName + "/" + RegistryRepoSubProj + "/charts" //nolint: lll InternalFilesRegistry = InternalRegistryRepoURL + "/" + RepositoryName + "/" + RegistryRepoSubProj + "/files" //nolint: lll PublicFilesRegistry = PublicRegistryRepoURL + "/" + RepositoryName + "/" + RegistryRepoSubProj + "/files" //nolint: lll )
const ( TestOrg = "e2eTestOrg" TestProject = "e2eTestProj" TestUser = "e2eTestUser" TenancyOrg = "tenancyOrg" TenancyProject = "tenancyProject" )
const (
KeycloakRealm = "master"
)
Variables ¶
var EMFRepos = []string{
"https://github.com/open-edge-platform/edge-manageability-framework",
}
Functions ¶
func GetApiToken ¶
func GetBranchName ¶
func GetDebVersion ¶
func GetDefaultOrchPassword ¶
func GetKeycloakSecret ¶
func GetProjectId ¶
func GetRepoVersion ¶
func GetRoleFromKeycloak ¶
func KeycloakLogin ¶
func LookupOrchestratorDomain ¶
LookupOrchestratorDomain returns the domain for the orchestrator By default it will look for the domain in the configmap orchestrator-domain
func LookupOrchestratorIP ¶
LookupOrchestratorIP returns the ip for the orchestrator
func ManageRoles ¶
ManageRoles Assigns roles to a user. Requires an admin token to make the changes in Keycloak. Deprecated: assign Groups instead of roles, see tenantUtils.addUserToGroups
func RuntimeProjUid
deprecated
Types ¶
type Argo ¶
func (Argo) AddGithubRepos ¶
Add public GitHub Orchestrator platform source repos to ArgoCD.
func (Argo) AddLocalRepos ¶
Add repositories to ArgoCD from .mage-local.yaml configuration.
type ClusterConfig ¶
type CoUtils ¶
func (CoUtils) CreateCluster ¶
func (CoUtils) CreateDefaultClusterTemplate ¶
func (CoUtils) DeleteCluster ¶
func (CoUtils) SetDefaultTemplate ¶
type ComponentDetails ¶
type Config ¶
func (Config) CreatePreset ¶
Create a cluster values file using the cluster configuration interface.
type Database ¶
func (Database) GetPassword ¶
Retrieves the admin password for local postgres database.
type Deploy ¶
func (Deploy) AddKyvernoPolicy ¶
func (Deploy) EdgeCluster ¶
Deploys ENiC Edge cluster with sample-project project, input required: mage deploy:edgeCluster <targetEnv>
func (Deploy) EdgeClusterWithLabels ¶
Deploys ENiC Edge cluster with sample-project project: mage deploy:edgeClusterWithLabels <targetEnv> <labels, color=blue,city=hillsboro>
func (Deploy) EdgeClusterWithProject ¶
Deploys ENiC Edge cluster, input required: mage deploy:edgeClusterWithProject <targetEnv> <org-name> <project-name>
func (Deploy) EdgeNetwork ¶
Deploy the edge network locally.
func (Deploy) EdgeNetworkDNS ¶
Sets the edge network DNS resolver as the default resolver on the host machine.
func (Deploy) KindCustom ¶
Deploy kind cluster, Argo CD, and Orchestrator services with customized settings.
func (Deploy) KindMinimal ¶
Deploy kind cluster, Argo CD, and all Orchestrator services except o11y and kyverno.
func (Deploy) KindPreset ¶
Deploy kind cluster, Argo CD, and Orchestrator services with preset settings.
func (Deploy) LEOrchestratorCABundle ¶
func (Deploy) OnPrem ¶
Deploy orchestrator locally using edge-manageability-framework revision defined by local git HEAD.
func (Deploy) Orch ¶
Deploy the Orchestrator using edge-manageability-framework revision defined by the targetEnv config. Should be used for environments based on merged edge-manageability-framework version, e.g. integration, validation, demo, prod.
func (Deploy) OrchCA ¶
OrchCA Saves Orchestrators's CA certificate to `orch-ca.crt` so it can be imported to trust store for web access.
func (Deploy) OrchLocal ¶
Deploy Orchestrator using edge-manageability-framework revision defined by local git HEAD. Should be used for environments based on local edge-manageability-framework version, e.g. dev, coder, fast-pipeline.
func (Deploy) StartGiteaProxy ¶
func (Deploy) StopAllKubectlProxies ¶
func (Deploy) StopGiteaProxy ¶
func (Deploy) VEN ¶
Deploy a local Virtual Edge Node using libvirt. An Orchestrator must be running locally.
func (Deploy) VENWithFlow ¶
VENWithFlow deploys a local Virtual Edge Node using libvirt and returns the serial number of the deployed node.
func (Deploy) VictoriaMetrics ¶
Deploying VictoriaMetrics, <usage with argument "apply" when deploying, "delete" when deleting>
func (Deploy) WaitUntilComplete ¶
Blocks until the applications in the Orchestrator deployment are synced and healthy. If a particular application deployment does not enter the synced and healthy state after the appDeployDefaultMaxDuration, the overall deployment would be considered a failure and this method will return an error.
type Deps ¶
type DevUtils ¶
func (DevUtils) DeployEnic ¶
Deploys the ENiC (indicates the number of instances, optionally set env variables: ORCH_FQDN, ORCH_IP, ORCH_USER, ORCH_PASS, ORCH_ORG, ORCH_PROJECT).
func (DevUtils) GetEnicSerialNumber ¶
GetEnicSerialNumber retrieves the ENiC serial number.
func (DevUtils) GetEnicUUID ¶
GetEnicUUID retrieves the ENiC UUID.
func (DevUtils) ProvisionEnic ¶
ProvisionEnic Provisions ENiC with orchestrator, usage: mage devUtils:provisionEnic enic-0
func (DevUtils) RegisterEnic ¶
RegisterEnic Registers ENiC with orchestrator, usage: mage devUtils:registerEnic enic-0
func (DevUtils) WaitForEnic ¶
WaitForEnic waits for the ENiC pod to be in a running state.
func (DevUtils) WaitForEnicNodeAgent ¶
WaitForEnicNodeAgent waits until node agent in ENiC reports INSTANCE_STATUS_RUNNING.
type Gen ¶
Namespace contains Gen targets.
func (Gen) BiosTraefikhostfile ¶
BiosTraefikhostfile Generates the tinkerbell-haproxy hostfile entry
func (Gen) DockerImageManifest ¶
DockerImageManifest Generates Manifest of Docker Images after deploying Orchestrator to kind cluster.
func (Gen) DumpReleaseImageManifest ¶
Print Release image manifest details to stdout.
func (Gen) DumpReleaseManifest ¶
Print the Release manifest details to stdout.
func (Gen) FirewallDoc ¶
Create a document showing firewall configurationt.
func (Gen) GenericHostfile ¶
func (Gen) GetHostSNICollection ¶
GetHostSNICollection Generates rules to be added/modified to traefik.yml.
func (Gen) GethostSNICollection ¶
func (Gen) Hostfile ¶
Hostfile Generates entries to be added/modified in a REMOTE hostfile via IP specified by the user.
func (Gen) HostfileTraefik ¶
Hostfile Generates entries to be added/modified in a local hostfile (using Traefik svc ExternalIP).
func (Gen) LEOrchestratorCABundle ¶
Creates fullchain CA bundle for Orchestrator. Used for integration testing with autocert deployment
func (Gen) LocalReleaseImageManifest ¶
Create a Release image manifest with local charts
func (Gen) OrchCA ¶
OrchCA Saves Orchestrator's CA certificate to `orch-ca.crt` so it can be imported to trust store for web access.
func (Gen) OrchestratorDomain ¶
Returns domain assigned to orchestrator if using auto cert management
func (Gen) RegistryCacheCert ¶
RegistryCacheCert generates the Registry cache x509 certificate file for a specified target environment.
func (Gen) ReleaseImageManifest ¶
Create a Release image manifest file.
func (Gen) ReleaseManifest ¶
Create a Release manifest file.
type Keycloak ¶
func (Keycloak) GetPassword ¶
func (k Keycloak) GetPassword()
GetPassword retrieves the admin keycloak password
func (Keycloak) ResetPassword ¶
func (k Keycloak) ResetPassword()
Resets the admin keycloak password and restarts keycloak
func (Keycloak) SetPassword ¶
SetPassword '<password>' sets the admin keycloak password, make sure you use quotes around the password
type LogUtils ¶
func (LogUtils) CollectArgoDiags ¶
Collect Argo CD diagnosis information
type Manifest ¶
type Manifest struct {
Components map[string]ComponentDetails `yaml:"components"`
Date string `yaml:"date"`
EdgeNodeGitHash string `yaml:"edgeNodeGitHash"`
EdgeNodeGitOrigin string `yaml:"edgeNodeGitOrigin"`
GitHash string `yaml:"gitHash"`
GitOrigin string `yaml:"gitOrigin"`
Tag string `yaml:"tag"`
Time string `yaml:"time"`
Type string `yaml:"type"`
}
type OnboardingFlow ¶
type OnboardingFlow string
OnboardingFlow defines the onboarding flow type for the edge node.
var ( InteractiveOnboardingFlow OnboardingFlow = "io" NonInteractiveOnboardingFlow OnboardingFlow = "nio" )
func (OnboardingFlow) IsValid ¶
func (flow OnboardingFlow) IsValid() bool
type Publish ¶
Publish is a namespace for publishing artifacts.
func (Publish) ReleaseManifest ¶
Publish release manifest files. Valid authentication with push access to the registry is required for this target. Once published, the files will be available via the Release service with `oras pull $ARTIFACT_NAME e.g., oras pull registry-rs.edgeorchestration.intel.com/edge-orch/common/files/release-manifest:3.0.0-dev-d5ed6ff
type Registry ¶
Namespace contains registry targets.
func (Registry) GetRegistryURL ¶
func (Registry) StartLocalRegistry ¶
Start a local docker container registry.
type Router ¶
func (Router) Restart ¶
Restarts router to pass through external TLS connections to Argo service in k8s.
func (Router) Start ¶
Starts router to pass through external TLS connections to Argo service in k8s.
func (Router) StartSandbox ¶
func (r Router) StartSandbox(externalDomain string, sandboxKeyFile string, sandboxCertFile string) error
StartSandbox Start router for external domain to kind.internal for orchestrator-sandbox. 3 arguments are required: * externalDomain - the name of the external domain e.g. sandbox-1.orchestrator-sandbox.one-edge.intel.com. * sandboxKeyFile An "rsa" Private Key (unencrypted) * sandboxCertFile An x509 Certificate that matches the Private Key and the external Domain and has not expired.
type Tarball ¶
func (Tarball) CloudFull ¶
CloudFull Creates a Tarball of artifacts for Cloud deployment of Full orchestrator
func (Tarball) OnpremFull ¶
OnpremFull Creates a Tarball of artifacts for OnPrem deployment of Full orchestrator
func (Tarball) OnpremFullIntel ¶
OnpremFullIntel Creates a Tarball of artifacts for OnPrem deployment of orchestrator inside Intel
type TarballManifest ¶
type TarballManifest struct {
// contains filtered or unexported fields
}
func NewTarballManifest ¶
func NewTarballManifest(variant, repoName, actualName string, clusterNames []string) *TarballManifest
type TenantUtils ¶
func (TenantUtils) CreateClusterOrchUsers ¶
func (TenantUtils) CreateClusterOrchUsers(ctx context.Context, orgName, projectName, coUserPrefix string) error
CreateClusterOrchUsers creates Cluster Orch users in a given Project: mage tenantUtils:createClusterOrchUsers <org-name> <project-name> <co-user-prefix>
func (TenantUtils) CreateDefaultMtSetup ¶
func (TenantUtils) CreateDefaultMtSetup(ctx context.Context) error
CreateDefaultMtSetup creates one Org, one Project, one Project admin, CO and Edge Infrastructure Manager users in the Project.
func (TenantUtils) CreateEdgeInfraUsers ¶
func (TenantUtils) CreateEdgeInfraUsers(ctx context.Context, orgName, projectName, edgeInfraUserPrefix string) error
CreateEdgeInfraUsers creates Edge Infra Manager users in a given Project: mage tenantUtils:createEdgeInfraUser <org-name> <project-name> <edge-infra-user-prefix>
func (TenantUtils) CreateOrg ¶
func (TenantUtils) CreateOrg(ctx context.Context, org string) error
CreateOrg creates an Org in the system: mage tenantUtils:createOrg <org-name>
func (TenantUtils) CreateProjectAdminInOrg ¶
func (TenantUtils) CreateProjectAdminInOrg(ctx context.Context, orgName string, projectAdminUser string) error
CreateProjectAdminInOrg creates a Project Admin in a given Org: mage tenantUtils:createProjectAdminInOrg <org-name> <project-admin-user>
func (TenantUtils) CreateProjectInOrg ¶
func (TenantUtils) CreateProjectInOrg(ctx context.Context, orgName string, projectName string) error
CreateProjectInOrg creates a Project in a given Org: mage tenantUtils:createProjectInOrg <org-name> <project-name>
func (TenantUtils) DeleteOrg ¶
func (TenantUtils) DeleteOrg(ctx context.Context, org string) error
DeleteOrg deletes an Org in the system
func (TenantUtils) DeleteProject ¶
func (TenantUtils) DeleteProject(ctx context.Context, org, project string) error
DeleteProject deletes an Org in the system
func (TenantUtils) GetOrg ¶
func (TenantUtils) GetOrg(ctx context.Context, orgName string) error
GetOrg gets the Org in the system: mage tenantUtils:getOrg <org-name>
func (TenantUtils) GetProject ¶
func (TenantUtils) GetProject(ctx context.Context, orgName, projectName string) error
GetProject gets the Project in the system: mage tenantUtils:getProject <org-name> <project-name>
func (TenantUtils) WaitUntilProjectReady ¶
func (TenantUtils) WaitUntilProjectWatchersReady ¶
type Test ¶
Namespace contains test targets.
func (Test) ChartsAvailableOnReleaseService ¶
Return nil if all charts necessary to deploy Orchestrator are available in the Release service. TODO: Only cloud orch is tested right now. Update for on-prem or check whether this is good enough for on-prem.
func (Test) ClusterOrchSmokeTest ¶
ClusterOrchSmokeTest Run cluster orch smoke test.
func (Test) ContainersAvailableOnReleaseService ¶
Return nil if all containers necessary to deploy Orchestrator are available in the Release service. TODO: Only cloud orch is tested right now. Update for on-prem or check whether this is good enough for on-prem.
func (Test) Deployment ¶
Test to make sure all k8s Deployments are Ready.
func (Test) E2eAlertsObservability ¶
Test end-to-end functionality of observability alerts.
func (Test) E2eAlertsObservabilityExtended ¶
Test end-to-end functionality of observability alerts (extended, includes long-duration tests).
func (Test) E2eAutocert ¶
Test end-to-end functionality of Autocert deployment.
func (Test) E2eEnObservability ¶
Test end-to-end functionality of Edgenode observability.
func (Test) E2eObservability ¶
Test end-to-end functionality of Observability.
func (Test) E2eOrchObservability ¶
Test end-to-end functionality of Orchestrator observability.
func (Test) E2eSreObservability ¶
Test end-to-end functionality of SRE Exporter.
func (Test) E2eSreObservabilityNoEnic ¶
Test end-to-end functionality of SRE Exporter with No Enic deployed.
func (Test) E2eTenancy ¶
Test end-to-end functionality of Tenancy Services via Nexus Client.
func (Test) E2eTenancyApiGw ¶
Test end-to-end functionality of Tenancy Services via Api-Gw.
func (Test) ImagePullPolicyCompliance ¶
Tests if any Kubernetes pod violates image pull policy.
func (Test) Onboarding ¶
Test end-to-end functionality of onboarding an Edge Node. These tests cannot be executed concurrently due to issues with the underlying virtual Edge Node provisioning logic.
func (Test) PolicyCompliance ¶
Tests if any Kubernetes cluster resources are in violation of a cluster policy. If a resource is in violation, the resource metadata and specific policy violations are printed to stdout. If there are no policy violations, this target returns nil.
type Undeploy ¶
Namespace contains Undeploy targets.
func (Undeploy) EdgeCluster ¶
Deletes ENiC and cluster, input required: mage undeploy:edgeCluster <org-name> <project-name>
func (Undeploy) EdgeNetwork ¶
Destroys the edge network deployed locally.
func (Undeploy) EdgeNetworkDNS ¶
Removes the edge network DNS resolver as the default resolver on the host machine.
func (Undeploy) EdgeStoragePool ¶
Destroys the edge storage pool deployed locally.
type Use ¶
Namespace contains Use targets.
func (Use) EdgeCluster ¶
EdgeCluster Switch kubectl context to ENiC Edge Cluster.
func (Use) EdgeClusterGetNames ¶
EdgeClusterGetNames Show all kubectl contexts.
func (Use) EdgeClusterWithName ¶
EdgeClusterWithName Switch kubectl context to named Edge Cluster (for multiple edges).
type Vault ¶
Namespace contains Vault targets.
type Version ¶
func (Version) CheckVersion ¶
Checks that the Version in the VERSION file and in the Argo Charts is in syn
func (Version) GetVersionTag ¶
Get the Release Tag for the current source version
func (Version) SetVersion ¶
Reads the Version from the Version file and updates the Argo Charts