...

Source file src/github.com/fluxcd/pkg/apis/acl/conditions.go

Documentation: github.com/fluxcd/pkg/apis/acl

     1  /*
     2  Copyright 2021 The Flux authors
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package acl
    18  
    19  // These constants define the Condition types for when the GitOps Toolkit components perform ACL assertions.
    20  const (
    21  	// AccessDeniedCondition indicates that access to a resource has been denied by an ACL assertion.
    22  	// The Condition adheres to an "abnormal-true" polarity pattern, and MUST only be present on the resource if the
    23  	// Condition is True.
    24  	AccessDeniedCondition string = "AccessDenied"
    25  )
    26  
    27  // These constants define the Condition reasons for when the GitOps Toolkit components perform ACL assertions.
    28  const (
    29  	// AccessDeniedReason indicates that access to a resource has been denied by an ACL assertion.
    30  	AccessDeniedReason string = "AccessDenied"
    31  )
    32  

View as plain text