mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 13:15:36 +00:00
Remove client from attributes, remove admission control interface, fix-up error codes
This commit is contained in:
@@ -17,21 +17,18 @@ limitations under the License.
|
||||
package admission
|
||||
|
||||
import (
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
)
|
||||
|
||||
type attributesRecord struct {
|
||||
client client.Interface
|
||||
namespace string
|
||||
kind string
|
||||
operation string
|
||||
object runtime.Object
|
||||
}
|
||||
|
||||
func NewAttributesRecord(client client.Interface, object runtime.Object, namespace, kind, operation string) Attributes {
|
||||
func NewAttributesRecord(object runtime.Object, namespace, kind, operation string) Attributes {
|
||||
return &attributesRecord{
|
||||
client: client,
|
||||
namespace: namespace,
|
||||
kind: kind,
|
||||
operation: operation,
|
||||
@@ -39,10 +36,6 @@ func NewAttributesRecord(client client.Interface, object runtime.Object, namespa
|
||||
}
|
||||
}
|
||||
|
||||
func (record *attributesRecord) GetClient() client.Interface {
|
||||
return record.client
|
||||
}
|
||||
|
||||
func (record *attributesRecord) GetNamespace() string {
|
||||
return record.namespace
|
||||
}
|
||||
|
Reference in New Issue
Block a user