Skip to content

Commit

Permalink
fix: Rename Service port name from superset to http (#394)
Browse files Browse the repository at this point in the history
* Rename Service port name from `superset` to `http` for consistency reasons

* changelog

* Update CHANGELOG.md
  • Loading branch information
sbernauer committed Aug 11, 2023
1 parent 4a508f4 commit cef750e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,8 +11,13 @@
- `vector` `0.26.0` -> `0.31.0` ([#391]).
- `operator-rs` `0.44.0` -> `0.45.1` ([#390]).

### Fixed

- BREAKING: Rename Service port name from `superset` to `http` for consistency reasons. This change should normally not be breaking, as we only change the name, not the port. However, there might be some e.g. Ingresses that rely on the port name and need to be updated ([#394]).

[#390]: https://github.com/stackabletech/superset-operator/pull/390
[#391]: https://github.com/stackabletech/superset-operator/pull/391
[#394]: https://github.com/stackabletech/superset-operator/pull/394

## [23.7.0] - 2023-07-14

Expand Down
2 changes: 0 additions & 2 deletions rust/crd/src/lib.rs
Expand Up @@ -129,8 +129,6 @@ impl FlaskAppConfigOptions for SupersetConfigOptions {
}
}

pub const HTTP_PORT: &str = "http";

#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
#[kube(
group = "superset.stackable.tech",
Expand Down
4 changes: 2 additions & 2 deletions rust/operator-binary/src/superset_controller.rs
Expand Up @@ -413,7 +413,7 @@ fn build_node_role_service(
.k8s_service_type(),
),
ports: Some(vec![ServicePort {
name: Some("superset".to_string()),
name: Some("http".to_string()),
port: APP_PORT.into(),
protocol: Some("TCP".to_string()),
..ServicePort::default()
Expand Down Expand Up @@ -525,7 +525,7 @@ fn build_node_rolegroup_service(
cluster_ip: Some("None".to_string()),
ports: Some(vec![
ServicePort {
name: Some("superset".to_string()),
name: Some("http".to_string()),
port: APP_PORT.into(),
protocol: Some("TCP".to_string()),
..ServicePort::default()
Expand Down

0 comments on commit cef750e

Please sign in to comment.