networkpolicy

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NetworkPolicyResource describes the CRD networkuration for the
	// NetworkPolicy CRD.
	NetworkPolicyResource = kubekit.CustomResource{
		Name:    "networkpolicy",
		Plural:  "networkpolicies",
		Group:   v1alpha1.GroupName,
		Version: v1alpha1.Version,
		Scope:   v1beta1.NamespaceScoped,

		Aliases:    []string{},
		Object:     &v1alpha1.NetworkPolicy{},
		Validation: v1alpha1.NetworkPolicyValidationSchema,
	}

	// VersioningPolicyResource describes the CRD configuration for the
	// VersioningPolicy CRD.
	VersioningPolicyResource = kubekit.CustomResource{
		Name:    "versioningpolicy",
		Plural:  "versioningpolicies",
		Group:   v1alpha1.GroupName,
		Version: v1alpha1.Version,
		Scope:   v1beta1.NamespaceScoped,
		Aliases: []string{"vp"},
		Object:  &v1alpha1.VersioningPolicy{},
		Validation: &v1beta1.CustomResourceValidation{
			OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
				Properties: map[string]v1beta1.JSONSchemaProps{
					"spec": v1alpha1.VersioningPolicyValidationSchema,
				},
			},
		},
	}
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller represents the MicroserviceController. This controller takes care of creating, updating and deleting lower level Kubernetese components that are associated with a specific Microservice.

func NewController

func NewController(cfg *rest.Config, cs kubernetes.Interface, namespace string) (*Controller, error)

NewController returns a new NetworkPolicy Controller.

func (*Controller) Run

func (c *Controller) Run() error

Run runs the Controller in the background and sets up watchers to take action when the desired state is altered.

type LatestReleaser

type LatestReleaser struct{}

LatestReleaser is able to select a release based on the releasetime date.

func (*LatestReleaser) ExternalRelease

func (r *LatestReleaser) ExternalRelease(releases []v1alpha1.Release) (*v1alpha1.Release, error)

ExternalRelease goes over all releases and releases the latest release based on the releaseTime timestamp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL