Skip to content

Commit

Permalink
Fixed bk verison
Browse files Browse the repository at this point in the history
  • Loading branch information
tuteng committed Nov 15, 2024
1 parent 98de70a commit d36cdf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloud/data_source_pulsar_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ func dataSourcePulsarClusterRead(ctx context.Context, d *schema.ResourceData, me
return diag.FromErr(fmt.Errorf("ERROR_READ_PULSAR_CLUSTER_CONFIG: %w", err))
}
}
if pulsarInstance.Spec.Type != cloudv1alpha1.PulsarInstanceTypeServerless {
brokerImage := strings.Split(pulsarCluster.Spec.Broker.Image, ":")
_ = d.Set("pulsar_version", brokerImage[1])
if pulsarInstance.Spec.Type != cloudv1alpha1.PulsarInstanceTypeServerless && !pulsarCluster.IsUsingUrsaEngine() {
bookkeeperImage := strings.Split(pulsarCluster.Spec.BookKeeper.Image, ":")
_ = d.Set("bookkeeper_version", bookkeeperImage[1])
}
brokerImage := strings.Split(pulsarCluster.Spec.Broker.Image, ":")
_ = d.Set("pulsar_version", brokerImage[1])
_ = d.Set("type", pulsarInstance.Spec.Type)
releaseChannel := pulsarCluster.Spec.ReleaseChannel
if releaseChannel != "" {
Expand Down

0 comments on commit d36cdf7

Please sign in to comment.