Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gitSyncer field in catalog crds #1065

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/elasticsearch_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ type ElasticsearchVersionSpec struct {
SecurityContext ElasticsearchSecurityContext `json:"securityContext"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// ElasticsearchVersionDatabase is the Elasticsearch Database image
Expand Down
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/etcd_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ type EtcdVersionSpec struct {
// Stash defines backup and restore task definitions.
// +optional
Stash appcat.StashAddonSpec `json:"stash,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// EtcdVersionDatabase is the Etcd Database image
Expand Down
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/mariadb_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ type MariaDBVersionSpec struct {
Stash appcat.StashAddonSpec `json:"stash,omitempty"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// MariaDBVersionDatabase is the mariadb image
Expand Down
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/mongodb_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ type MongoDBVersionSpec struct {
Stash appcat.StashAddonSpec `json:"stash,omitempty"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// MongoDBVersionDatabase is the MongoDB Database image
Expand Down
56 changes: 49 additions & 7 deletions apis/catalog/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/perconaxtradb_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ type PerconaXtraDBVersionSpec struct {
Stash appcat.StashAddonSpec `json:"stash,omitempty"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// PerconaXtraDBVersionDatabase is the perconaxtradb image
Expand Down
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/postgres_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ type PostgresVersionSpec struct {
SecurityContext PostgresSecurityContext `json:"securityContext"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// PostgresVersionInitContainer is the Postgres init container image
Expand Down
2 changes: 2 additions & 0 deletions apis/catalog/v1alpha1/redis_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ type RedisVersionSpec struct {
Stash appcat.StashAddonSpec `json:"stash,omitempty"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
GitSyncer GitSyncer `json:"gitSyncer,omitempty"`
}

// RedisVersionInitContainer is the Redis init container image
Expand Down
7 changes: 7 additions & 0 deletions apis/catalog/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions apis/kubedb/v1alpha2/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,3 +691,11 @@ var (
},
}
)

const (
InitFromGit = "init-from-git"
InitFromGitMountPath = "/git"
GitSecretVolume = "git-secret"
GitSecretMountPath = "/etc/git-secret"
GitSyncContainerName = "git-sync"
)
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_elasticsearchversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_etcdversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
stash:
properties:
addon:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_mariadbversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_mongodbversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_perconaxtradbversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_postgresversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
7 changes: 7 additions & 0 deletions crds/catalog.kubedb.com_redisversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ spec:
required:
- image
type: object
gitSyncer:
properties:
image:
type: string
required:
- image
type: object
initContainer:
properties:
image:
Expand Down
Loading
Loading