Class ApplyAnnotationsToServiceTemplate

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Visitor<io.fabric8.kubernetes.api.builder.VisitableBuilder>, Comparable<io.dekorate.kubernetes.decorator.Decorator>

    public class ApplyAnnotationsToServiceTemplate
    extends io.dekorate.kubernetes.decorator.NamedResourceDecorator<io.fabric8.knative.serving.v1.ServiceFluent<?>>
    This class was created to workaround https://github.com/dekorateio/dekorate/issues/869. Once this issue is fixed, we can delete this and use the provided by Dekorate.
    • Constructor Detail

      • ApplyAnnotationsToServiceTemplate

        public ApplyAnnotationsToServiceTemplate​(String name,
                                                 String... annotations)
      • ApplyAnnotationsToServiceTemplate

        public ApplyAnnotationsToServiceTemplate​(String name,
                                                 Map<String,​String> annotations)
    • Method Detail

      • andThenVisit

        public void andThenVisit​(io.fabric8.knative.serving.v1.ServiceFluent<?> service,
                                 io.fabric8.kubernetes.api.model.ObjectMeta resourceMeta)
        Specified by:
        andThenVisit in class io.dekorate.kubernetes.decorator.NamedResourceDecorator<io.fabric8.knative.serving.v1.ServiceFluent<?>>