Documentation ¶
Overview ¶
The MIT License (MIT)
Copyright (c) 2022-2023 Reliza Incorporated (Reliza (tm), https://reliza.io)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)
Copyright (c) 2022-2023 Reliza Incorporated (Reliza (tm), https://reliza.io)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)
Copyright (c) 2022-2023 Reliza Incorporated (Reliza (tm), https://reliza.io)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)
Copyright (c) 2022-2023 Reliza Incorporated (Reliza (tm), https://reliza.io)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- Constants
- Variables
- func CreateNamespaceIfMissing(namespace string)
- func DeleteObsoleteDeployment(groupPath string)
- func DownloadHelmChart(path string, rd *RelizaDeployment, pa *ProjectAuth, helmRepoInfo HelmRepoInfo) error
- func ExtractRlzDigestFromCdxDigest(cdxHash cdx.Hash) string
- func GetChartNameFromDeployment(rd *RelizaDeployment) string
- func GetInstanceCycloneDX() (string, error)
- func GetLastHelmVersion(groupPath string) string
- func GetSealedCert() string
- func InstallApplication(groupPath string, rd *RelizaDeployment) error
- func InstallHelmChart(groupPath string, rd *RelizaDeployment) error
- func InstallSealedCertificates()
- func InstallWatcher(namespacesForWatcher *map[string]bool)
- func IsFirstArgoInstallDone(rd *RelizaDeployment) bool
- func IsFirstHelmInstallDone(rd *RelizaDeployment) bool
- func IsFirstInstallDone(rd *RelizaDeployment) bool
- func IsValuesDiff(groupPath string) bool
- func KubectlApply(path string)
- func MergeHelmValues(groupPath string, rd *RelizaDeployment) error
- func ProduceArgoApplicationYaml(w io.Writer, rd *RelizaDeployment, namespace, groupPath string) error
- func ProduceEcrSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string)
- func ProduceNoCredSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, ...)
- func ProducePlainSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, ...)
- func ProduceSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, ...)
- func RecordDeployedData(groupPath string, rd *RelizaDeployment)
- func RecordHelmChartVersion(groupPath string, rd *RelizaDeployment)
- func ReplaceTagsForDiff(groupPath string, namespace string) error
- func ReplaceTagsForInstall(groupPath string, namespace string) error
- func ResolvePreviousDiffFile(groupPath string) error
- func SetHelmChartAppVersion(groupPath string, rd *RelizaDeployment) error
- func SetSealedCertificateOnTheHub(cert string)
- func StreamHelmChartMetadataToHub(ppn *PathsPerNamespace)
- func WaitUntilSecretCreated(name string, namespace string)
- type ArgoApplicationTemplateResolver
- type ArgoInfo
- type HelmRepoInfo
- type NamespaceImages
- type PathsPerNamespace
- type ProjectAuth
- type RelizaDeployment
- type ResolvedProperty
- type ResolvedSecret
- type SecretPropsCliResponse
- type SecretTemplateResolver
Constants ¶
const ( ShellToUse = "sh" KubesealApp = "tools/kubeseal" RelizaCliApp = "tools/reliza-cli" HelmMimeType = "application/vnd.cncf.helm.config.v1+json" )
const ( StandaloneMode = "STANDALONE" ExistingArgoMode = "EXISTING_ARGO" NewArgoMode = "NEW_ARGO" )
const ( HelmApp = "tools/helm" KubectlApp = "tools/kubectl" WorkValues = "work-values.yaml" ValuesDiff = "values-diff.yaml" ValuesDiffPrev = "values-diff-prev.yaml" LastVersionFile = "last_version" InstallValues = "install-values.yaml" RecordedDeloyedData = "recorded-deployed-data.json" WatcherHelmDataSuffix = "-watcher-helm.json" CustomValuesFile = "reliza-hub-custom-values.yaml" )
Variables ¶
var ( SecretsNamespace string RelizaNamespace string EnvMode string )
Functions ¶
func CreateNamespaceIfMissing ¶
func CreateNamespaceIfMissing(namespace string)
func DeleteObsoleteDeployment ¶
func DeleteObsoleteDeployment(groupPath string)
func DownloadHelmChart ¶
func DownloadHelmChart(path string, rd *RelizaDeployment, pa *ProjectAuth, helmRepoInfo HelmRepoInfo) error
func GetChartNameFromDeployment ¶
func GetChartNameFromDeployment(rd *RelizaDeployment) string
func GetInstanceCycloneDX ¶
func GetLastHelmVersion ¶
func GetSealedCert ¶
func GetSealedCert() string
func InstallApplication ¶
func InstallApplication(groupPath string, rd *RelizaDeployment) error
func InstallHelmChart ¶
func InstallHelmChart(groupPath string, rd *RelizaDeployment) error
func InstallSealedCertificates ¶
func InstallSealedCertificates()
func InstallWatcher ¶
func IsFirstArgoInstallDone ¶
func IsFirstArgoInstallDone(rd *RelizaDeployment) bool
func IsFirstHelmInstallDone ¶
func IsFirstHelmInstallDone(rd *RelizaDeployment) bool
func IsFirstInstallDone ¶
func IsFirstInstallDone(rd *RelizaDeployment) bool
func IsValuesDiff ¶
func KubectlApply ¶
func KubectlApply(path string)
func MergeHelmValues ¶
func MergeHelmValues(groupPath string, rd *RelizaDeployment) error
func ProduceArgoApplicationYaml ¶
func ProduceArgoApplicationYaml(w io.Writer, rd *RelizaDeployment, namespace, groupPath string) error
func ProduceEcrSecretYaml ¶
func ProduceEcrSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string)
func ProduceNoCredSecretYaml ¶
func ProduceNoCredSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, helmInfo HelmRepoInfo)
func ProducePlainSecretYaml ¶
func ProducePlainSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, helmInfo HelmRepoInfo)
func ProduceSecretYaml ¶
func ProduceSecretYaml(w io.Writer, rd *RelizaDeployment, projAuth ProjectAuth, namespace string, helmInfo HelmRepoInfo)
func RecordDeployedData ¶
func RecordDeployedData(groupPath string, rd *RelizaDeployment)
func RecordHelmChartVersion ¶
func RecordHelmChartVersion(groupPath string, rd *RelizaDeployment)
func ReplaceTagsForDiff ¶
func ReplaceTagsForInstall ¶
func ResolvePreviousDiffFile ¶
func SetHelmChartAppVersion ¶
func SetHelmChartAppVersion(groupPath string, rd *RelizaDeployment) error
func SetSealedCertificateOnTheHub ¶
func SetSealedCertificateOnTheHub(cert string)
func StreamHelmChartMetadataToHub ¶
func StreamHelmChartMetadataToHub(ppn *PathsPerNamespace)
func WaitUntilSecretCreated ¶
Types ¶
type HelmRepoInfo ¶
type HelmRepoInfo struct { ChartName string RepoUri string RepoHost string UseOci bool OciUri string }
func GetHelmRepoInfoFromDeployment ¶
func GetHelmRepoInfoFromDeployment(rd *RelizaDeployment) HelmRepoInfo
type NamespaceImages ¶
type PathsPerNamespace ¶
type ProjectAuth ¶
type ProjectAuth struct { Login string `json:"login"` Password string `json:"password"` Type string `json:"type"` Url string }
func GetProjectAuthByArtifactDigest ¶
func GetProjectAuthByArtifactDigest(artDigest, releaseNamespace string) ProjectAuth
func ResolveHelmAuthSecret ¶
func ResolveHelmAuthSecret(secretName string) ProjectAuth
type RelizaDeployment ¶
type RelizaDeployment struct { Name string Namespace string Bundle string ArtUri string ArtVersion string ArtHash cdx.Hash ConfigFile string AppVersion string }
func ParseInstanceCycloneDXIntoDeployments ¶
func ParseInstanceCycloneDXIntoDeployments(cyclonedxManifest string) []RelizaDeployment
type ResolvedProperty ¶
type ResolvedSecret ¶
type SecretPropsCliResponse ¶
type SecretPropsCliResponse struct { Secrets []ResolvedSecret `json:"secrets"` Properties []ResolvedProperty `json:"properties"` }