stackabletech / stackabletech/operator-rs

feat(stackable-operator): Add a utility for creating Java runtime arguments

Aperta
#839 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@NickLarsenNZ ci sta già lavorando.

Dal 16/8/2024.

Lingua principale
Rust
Stelle
167
Fork
19
Merge medio
1g 6h
PR unite (30g)
9

Descrizione

idea (non-blocker): we could have a utility type for making properties. It might make this a little easier for humans to parse.

Originally posted by @NickLarsenNZ in https://github.com/stackabletech/spark-k8s-operator/pull/451#discussion_r1719540578

Maybe we already have something available, but this helps close the comment on the linked PR so it can be merged.

I'm thinking something like:

pub struct Properties(BTreeMap);

impl Display for JreProperties {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        todo!("iterate over the properties in self.0 and make -Dproperty=value joined by space");
        // write!(f, "{}", self.0)
    }
}

impl DerefMut for Properties {
   ...
}

See: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html#BABDJJFI

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.