Skip to content

Commit

Permalink
Allow only AllNamespaces install, add requiredCRDs in @CSVMetadata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar committed Dec 12, 2024
1 parent c45fa3e commit e2a3f84
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.InstallMode;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.Link;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.Provider;
import io.quarkiverse.operatorsdk.annotations.CSVMetadata.RequiredCRD;
import io.strimzi.api.kafka.model.kafka.Kafka;
import io.strimzi.api.kafka.model.user.KafkaUser;

@ControllerConfiguration(
maxReconciliationInterval = @MaxReconciliationInterval(
Expand Down Expand Up @@ -171,13 +174,17 @@
displayName = "StreamsHub Console Operator",
keywords = {"kafka", "messaging", "kafka-streams", "data-streaming", "data-streams", "streaming", "streams", "web", "console", "ui", "user interface"},
maturity = "stable",
requiredCRDs = {
@RequiredCRD(kind = Kafka.RESOURCE_KIND, name = Kafka.CRD_NAME, version = Kafka.V1BETA2),
@RequiredCRD(kind = KafkaUser.RESOURCE_KIND, name = KafkaUser.CRD_NAME, version = KafkaUser.V1BETA2),
},
installModes = {
@InstallMode(type = "AllNamespaces", supported = true),
@InstallMode(type = "OwnNamespace", supported = true),
@InstallMode(type = "SingleNamespace", supported = true),
@InstallMode(type = "OwnNamespace", supported = false),
@InstallMode(type = "SingleNamespace", supported = false),
@InstallMode(type = "MultiNamespace", supported = false),
},
minKubeVersion = "1.19.0",
minKubeVersion = "1.25.0", // Corresponds to OpenShift 4.12
links = {
@Link(name = "GitHub", url = "https://github.com/streamshub/console"),
@Link(name = "Documentation", url = "https://github.com/streamshub/console/blob/main/README.md")
Expand Down

0 comments on commit e2a3f84

Please sign in to comment.