Skip to content

Commit

Permalink
fix: no_secret is inverted (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Mar 28, 2024
1 parent d7991fc commit e272556
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [MAJOR.MINOR.PATCH] - YYYY-MM-DD

- Add `ClickhouseDatabase` kind
- Fix secret creation for kinds with no secrets
- Replace `Database` kind validations and default values with CRD validation rules
- Perform upgrade tasks to check if PG service can be upgraded before updating the service
- Expose project CA certificate to service secrets: `REDIS_CA_CERT`, `MYSQL_CA_CERT`, etc.
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/clickhousedatabase_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type ClickhouseDatabase struct {
var _ AivenManagedObject = &ClickhouseDatabase{}

func (*ClickhouseDatabase) NoSecret() bool {
return false
return true
}

func (in *ClickhouseDatabase) AuthSecretRef() *AuthSecretReference {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/database_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Database struct {
var _ AivenManagedObject = &Database{}

func (*Database) NoSecret() bool {
return false
return true
}

func (in *Database) AuthSecretRef() *AuthSecretReference {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/kafkaacl_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (in *KafkaACL) Conditions() *[]metav1.Condition {
}

func (*KafkaACL) NoSecret() bool {
return false
return true
}

// +kubebuilder:object:root=true
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/kafkaconnect_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type KafkaConnect struct {
var _ AivenManagedObject = &KafkaConnect{}

func (*KafkaConnect) NoSecret() bool {
return false
return true
}

func (in *KafkaConnect) AuthSecretRef() *AuthSecretReference {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/kafkaconnector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (in *KafkaConnector) Conditions() *[]metav1.Condition {
}

func (*KafkaConnector) NoSecret() bool {
return false
return true
}

//+kubebuilder:object:root=true
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/kafkaschema_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type KafkaSchema struct {
var _ AivenManagedObject = &KafkaSchema{}

func (*KafkaSchema) NoSecret() bool {
return false
return true
}

func (in *KafkaSchema) AuthSecretRef() *AuthSecretReference {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/kafkatopic_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (in *KafkaTopic) Conditions() *[]metav1.Condition {
}

func (*KafkaTopic) NoSecret() bool {
return false
return true
}

// +kubebuilder:object:root=true
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/projectvpc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type ProjectVPC struct {
var _ AivenManagedObject = &ProjectVPC{}

func (*ProjectVPC) NoSecret() bool {
return false
return true
}

func (in *ProjectVPC) AuthSecretRef() *AuthSecretReference {
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/serviceintegration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type ServiceIntegration struct {
var _ AivenManagedObject = &ServiceIntegration{}

func (*ServiceIntegration) NoSecret() bool {
return false
return true
}

func (in *ServiceIntegration) AuthSecretRef() *AuthSecretReference {
Expand Down

0 comments on commit e272556

Please sign in to comment.