apiextensions-apiserver: k8s.io/apiextensions-apiserver/pkg/apihelpers Index | Files

package apihelpers

import "k8s.io/apiextensions-apiserver/pkg/apihelpers"

Index

Package Files

helpers.go

func IsProtectedCommunityGroup Uses

func IsProtectedCommunityGroup(group string) bool

IsProtectedCommunityGroup returns whether or not a group specified for a CRD is protected for the community and needs to have the v1beta1.KubeAPIApprovalAnnotation set.

type APIApprovalState Uses

type APIApprovalState int

APIApprovalState covers the various options for API approval annotation states

const (
    // APIApprovalInvalid means the annotation doesn't have an expected value
    APIApprovalInvalid APIApprovalState = iota
    // APIApproved if the annotation has a URL (this means the API is approved)
    APIApproved
    // APIApprovalBypassed if the annotation starts with "unapproved" indicating that for whatever reason the API isn't approved, but we should allow its creation
    APIApprovalBypassed
    // APIApprovalMissing means the annotation is empty
    APIApprovalMissing
)

func GetAPIApprovalState Uses

func GetAPIApprovalState(annotations map[string]string) (state APIApprovalState, reason string)

GetAPIApprovalState returns the state of the API approval and reason for that state

Package apihelpers imports 4 packages (graph) and is imported by 2 packages. Updated 2019-07-24. Refresh now. Tools for package owners.