feat: enable running ZITADEL offline (#1894)

* feat: enable running ZITADEL offline

* refactor: move operator image to common images

* test: remove empty test
This commit is contained in:
Elio Bischof
2021-06-25 10:56:22 +02:00
committed by GitHub
parent c6c60d1d2a
commit b2b53ae9e1
44 changed files with 408 additions and 127 deletions

View File

@@ -1,7 +1,7 @@
package kubernetes
import (
"fmt"
"github.com/caos/zitadel/operator/common"
"gopkg.in/yaml.v3"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
@@ -23,7 +23,7 @@ func EnsureZitadelOperatorArtifacts(
version string,
nodeselector map[string]string,
tolerations []core.Toleration,
imageRegistry string,
customImageRegistry string,
gitops bool,
) error {
@@ -268,7 +268,7 @@ status:
Containers: []core.Container{{
Name: "zitadel",
ImagePullPolicy: core.PullIfNotPresent,
Image: fmt.Sprintf("%s/caos/zitadel-operator:%s", imageRegistry, version),
Image: common.ZITADELOperatorImage.Reference(customImageRegistry, version),
Command: cmd,
Args: []string{},
Ports: []core.ContainerPort{{
@@ -329,7 +329,7 @@ func EnsureDatabaseArtifacts(
version string,
nodeselector map[string]string,
tolerations []core.Toleration,
imageRegistry string,
customImageRegistry string,
gitops bool) error {
monitor.WithFields(map[string]interface{}{
@@ -566,7 +566,7 @@ status:
Containers: []core.Container{{
Name: "database",
ImagePullPolicy: core.PullIfNotPresent,
Image: fmt.Sprintf("%s/caos/zitadel-operator:%s", imageRegistry, version),
Image: common.ZITADELOperatorImage.Reference(customImageRegistry, version),
Command: cmd,
Args: []string{},
Ports: []core.ContainerPort{{