pkg-export-helm: Disable addition of operator dep into charts
Until the Helm bug[1] to handle dependencies properly is resolved, let's
not use the dependencies feature and ask users to install habitat-operator
chart themselves.
[1]
@@ -47,7 +47,13 @@ impl Deps {
}
pub fn generate(&mut self, write: &mut Write) -> Result<()> {
- let out = self.into_string()?;
+ // TODO: Until this Helm issue is resolved or has a decent workaround, let's skip the
+ // operator dependency:
+ //
+ // https://github.com/kubernetes/helm/issues/3632
+ //
+ //let out = self.into_string()?;
+ let out = String::new();
write.write(out.as_bytes())?;
Ok(())
@@ -89,6 +95,7 @@ impl Deps {
}
// TODO: Implement TryInto trait instead when it's in stable std crate
+ #[allow(dead_code)]
fn into_string(&self) -> Result<String> {
let json = json!({
"operator_version": self.operator_version,
