OpenshiftAliases.

OpenshiftDelete(ICakeContext, OpenshiftDeleterSettings) Method

Summary

Deletes an openshift resource.
Assembly
Cake.Openshift.dll
Namespace
Cake.Openshift
Containing Type
OpenshiftAliases

Syntax

public static void OpenshiftDelete(this ICakeContext context, OpenshiftDeleterSettings settings)

Examples

Cake task:
Task("Openshift-Delete")
        .Does(() =>
        {
            OpenshiftDelete(buildConfig, new OpenshiftDeleterSettings
            {
                ObjectType = "pod",
                ObjectName = "node-1-vsjnm",
                All = true,
                Label = "app=appName",
                IgnoreNotFound = true
            });
        });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings OpenshiftDeleterSettings The settings

Return Value

Type Description
void