Documentation ¶
Index ¶
- func NewJobSink(name, namespace string, o ...JobSinkOption) *sinksv1alpha1.JobSink
- func WithInitJobSinkConditions(js *sinksv1alpha1.JobSink)
- type JobSinkOption
- func WithJobSinkAddress(addr *duckv1.Addressable) JobSinkOption
- func WithJobSinkAddressableReady() JobSinkOption
- func WithJobSinkEventPoliciesListed(policyNames ...string) JobSinkOption
- func WithJobSinkEventPoliciesNotReady(reason, message string) JobSinkOption
- func WithJobSinkEventPoliciesReady() JobSinkOption
- func WithJobSinkEventPoliciesReadyBecauseNoPolicyAndOIDCEnabled() JobSinkOption
- func WithJobSinkEventPoliciesReadyBecauseOIDCDisabled() JobSinkOption
- func WithJobSinkFinalizers(finalizers ...string) JobSinkOption
- func WithJobSinkGeneration(gen int64) JobSinkOption
- func WithJobSinkJob(job *batchv1.Job) JobSinkOption
- func WithJobSinkJobStatusSelector() JobSinkOption
- func WithJobSinkResourceVersion(rv string) JobSinkOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobSink ¶ added in v0.42.0
func NewJobSink(name, namespace string, o ...JobSinkOption) *sinksv1alpha1.JobSink
NewJobSink creates a JobSink with JobSinkOptions.
func WithInitJobSinkConditions ¶ added in v0.42.0
func WithInitJobSinkConditions(js *sinksv1alpha1.JobSink)
WithInitJobSinkConditions initializes the JobSink's conditions.
Types ¶
type JobSinkOption ¶ added in v0.42.0
type JobSinkOption func(*sinksv1alpha1.JobSink)
JobSinkOption enables further configuration of a JobSink.
func WithJobSinkAddress ¶ added in v0.42.0
func WithJobSinkAddress(addr *duckv1.Addressable) JobSinkOption
func WithJobSinkAddressableReady ¶ added in v0.42.0
func WithJobSinkAddressableReady() JobSinkOption
func WithJobSinkEventPoliciesListed ¶ added in v0.42.0
func WithJobSinkEventPoliciesListed(policyNames ...string) JobSinkOption
WithJobSinkEventPoliciesListed adds Ready EventPolicies to the JobSink's status.
func WithJobSinkEventPoliciesNotReady ¶ added in v0.42.0
func WithJobSinkEventPoliciesNotReady(reason, message string) JobSinkOption
WithJobSinkEventPoliciesNotReady sets the JobSink's EventPoliciesReady condition to false.
func WithJobSinkEventPoliciesReady ¶ added in v0.42.0
func WithJobSinkEventPoliciesReady() JobSinkOption
WithJobSinkEventPoliciesReady sets the JobSink's EventPoliciesReady condition to true.
func WithJobSinkEventPoliciesReadyBecauseNoPolicyAndOIDCEnabled ¶ added in v0.42.0
func WithJobSinkEventPoliciesReadyBecauseNoPolicyAndOIDCEnabled() JobSinkOption
WithJobSinkEventPoliciesReadyBecauseNoPolicyAndOIDCEnabled() sets the JobSink's EventPoliciesReady condition to true with reason.
func WithJobSinkEventPoliciesReadyBecauseOIDCDisabled ¶ added in v0.42.0
func WithJobSinkEventPoliciesReadyBecauseOIDCDisabled() JobSinkOption
WithJobSinkEventPoliciesReadyBecauseNoPolicy() sets the JobSink's EventPoliciesReady condition to true with reason.
func WithJobSinkFinalizers ¶ added in v0.42.0
func WithJobSinkFinalizers(finalizers ...string) JobSinkOption
func WithJobSinkGeneration ¶ added in v0.42.0
func WithJobSinkGeneration(gen int64) JobSinkOption
func WithJobSinkJob ¶ added in v0.42.0
func WithJobSinkJob(job *batchv1.Job) JobSinkOption
WithJobSinkJob sets the JobSink's Job.
func WithJobSinkJobStatusSelector ¶ added in v0.42.0
func WithJobSinkJobStatusSelector() JobSinkOption
func WithJobSinkResourceVersion ¶ added in v0.42.0
func WithJobSinkResourceVersion(rv string) JobSinkOption