Skip to content

Commit

Permalink
Update Kubernetes v1.18.9 dependencies (#77)
Browse files Browse the repository at this point in the history
Signed-off-by: 1gtm <1gtm@appscode.com>
  • Loading branch information
1gtm committed Nov 24, 2020
1 parent 1b453f8 commit b1207ec
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 282 deletions.
2 changes: 0 additions & 2 deletions go.mod
Expand Up @@ -16,8 +16,6 @@ require (
k8s.io/kubectl v0.18.9
kmodules.xyz/client-go v0.0.0-20201105071625-0b277310b9b8
kmodules.xyz/custom-resources v0.0.0-20201105075444-3c6af51b4f79
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a // indirect
kmodules.xyz/offshoot-api v0.0.0-20201105074700-8675f5f686f2 // indirect
kubevault.dev/operator v0.4.0-beta.0.0.20201010072813-60cfdc6820a6
)

Expand Down
4 changes: 0 additions & 4 deletions go.sum
Expand Up @@ -1512,12 +1512,8 @@ kmodules.xyz/custom-resources v0.0.0-20201105075444-3c6af51b4f79 h1:BKPPUY/w0ac4
kmodules.xyz/custom-resources v0.0.0-20201105075444-3c6af51b4f79/go.mod h1:/r3/eJ3LIfwGyBEVaobqUZRZGh7GJv5RJojj/bdD14Q=
kmodules.xyz/monitoring-agent-api v0.0.0-20201007104803-408a1ff2de8d h1:HFdWHhAkJZpoyMkp0kayKPf896IEkI7fWIpeJK4sY1o=
kmodules.xyz/monitoring-agent-api v0.0.0-20201007104803-408a1ff2de8d/go.mod h1:ySvogFmyMVUNEFdUYnHp9T4njsB7o661ClfwNLcBWVo=
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a h1:3uwHtoj4msqYEoAJ7lyS7z3OFeQPF9v3J4Iv8shs86U=
kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a/go.mod h1:r8b8lckYt5Gc5tiF3NSBPJmUrxPILerNRdozcaX7grI=
kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab h1:d/4AFAN0TfKgwhjbQYzwXXHT/5/vTP7SAAvS4uJX+wQ=
kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab/go.mod h1:Wy3/mWK2lWQOviKVpBtiCEYtLaYIaSiym8leZNKBUd4=
kmodules.xyz/offshoot-api v0.0.0-20201105074700-8675f5f686f2 h1:JVuNeHhVq/iRRM2yRF7nuYUdq1necfAPGpA5JjUcBuk=
kmodules.xyz/offshoot-api v0.0.0-20201105074700-8675f5f686f2/go.mod h1:RMHLigHILAk04wMAuMqBerskKdWlLyjqb0zLLL68cBM=
kmodules.xyz/openshift v0.0.0-20200922211657-1ece16d36c18/go.mod h1:kOnEGdrj+DxTYJWHftqEHeYywCgh9tEiBOD5kPhVbCc=
kmodules.xyz/webhook-runtime v0.0.0-20200922211931-8337935590de/go.mod h1:5A8s2nvrNAZGrt0OlsiiuZIik3xWyKW6+ZSwgljIm78=
kubevault.dev/operator v0.4.0-beta.0.0.20201010072813-60cfdc6820a6 h1:Tv3F6Axt4cV6B8vLRhEnl/Gc0FbN4rCpgZADa3b5+gI=
Expand Down
3 changes: 3 additions & 0 deletions vendor/kmodules.xyz/monitoring-agent-api/api/v1/types.go
Expand Up @@ -41,6 +41,9 @@ const (
)

func (at AgentType) Vendor() string {
if !strings.ContainsRune(string(at), '/') {
return ""
}
return strings.SplitN(string(at), "/", 2)[0]
}

Expand Down
340 changes: 120 additions & 220 deletions vendor/kmodules.xyz/offshoot-api/api/v1/generated.pb.go

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions vendor/kmodules.xyz/offshoot-api/api/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions vendor/kmodules.xyz/offshoot-api/api/v1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 1 addition & 18 deletions vendor/kmodules.xyz/offshoot-api/api/v1/types.go
Expand Up @@ -158,21 +158,6 @@ type PodSpec struct {
// Cannot be updated.
// +optional
Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,16,opt,name=lifecycle"`

// Set DNS policy for the pod.
// Defaults to "ClusterFirst".
// Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
// To have DNS options set along with hostNetwork, you have to specify DNS policy
// explicitly to 'ClusterFirstWithHostNet'.
// +optional
DNSPolicy core.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,17,opt,name=dnsPolicy,casttype=k8s.io/api/core/v1.DNSPolicy"`

// Specifies the DNS parameters of a pod.
// Parameters specified here will be merged to the generated DNS
// configuration based on DNSPolicy.
// +optional
DNSConfig *core.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,18,opt,name=dnsConfig"`
}

// ServiceTemplateSpec describes the data a service should have when created from a template
Expand Down Expand Up @@ -291,9 +276,7 @@ type ServicePort struct {
NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,3,opt,name=nodePort"`
}

// Beware of MergeServicePorts
// ref: https://github.com/kmodules/client-go/blob/03dac1aea5084354127990a10d0b0e7529460dd5/core/v1/service.go#L103-L136
func PatchServicePorts(cur []core.ServicePort, desired []ServicePort) []core.ServicePort {
func MergeServicePorts(cur []core.ServicePort, desired []ServicePort) []core.ServicePort {
if len(desired) == 0 {
return cur
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions vendor/modules.txt
Expand Up @@ -457,11 +457,9 @@ kmodules.xyz/custom-resources/apis/appcatalog
kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1
kmodules.xyz/custom-resources/client/clientset/versioned/scheme
kmodules.xyz/custom-resources/crds
# kmodules.xyz/monitoring-agent-api v0.0.0-20201105074044-be7a1044891a
## explicit
# kmodules.xyz/monitoring-agent-api v0.0.0-20201007104803-408a1ff2de8d
kmodules.xyz/monitoring-agent-api/api/v1
# kmodules.xyz/offshoot-api v0.0.0-20201105074700-8675f5f686f2
## explicit
# kmodules.xyz/offshoot-api v0.0.0-20200922211229-36acc531abab
kmodules.xyz/offshoot-api/api/v1
# kubevault.dev/operator v0.4.0-beta.0.0.20201010072813-60cfdc6820a6
## explicit
Expand Down

0 comments on commit b1207ec

Please sign in to comment.